Skip to content

Commit 56fbe6a

Browse files
Install all dependencies on create
When `tns create <app>` is executed, install all dependencies, so typescript compilation will be enabled immediately when using tsc template.
1 parent 0edeec5 commit 56fbe6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/services/project-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export class ProjectService implements IProjectService {
8080
// Delete app/package.json file, its just causing confusion.
8181
// Also its dependencies and devDependencies are already merged in project's package.json.
8282
this.$fs.deleteFile(path.join(projectDir, constants.APP_FOLDER_NAME, constants.PACKAGE_JSON_FILE_NAME)).wait();
83+
this.$npm.install(projectDir, projectDir, { "ignore-scripts": this.$options.ignoreScripts }).wait();
8384
} catch (err) {
8485
this.$fs.deleteDirectory(projectDir).wait();
8586
throw err;

0 commit comments

Comments
 (0)