|
this.$projectConfigService.writeDefaultConfig(projectDir, appId); |
After creating a new project based on a template, we write the default config. In some cases, the appPath is different for a template, in those cases we need to update/write the correct appPath to the config.
For example a project created with ns create myNGApp --ng will have a src/main.ts file, and the appPath should be set to src for it to work, but currently it's not set to anything, and defaults to app - causing App entry not found crash.
nativescript-cli/lib/services/project-service.ts
Line 165 in 87c8463
After creating a new project based on a template, we write the default config. In some cases, the
appPathis different for a template, in those cases we need to update/write the correctappPathto the config.For example a project created with
ns create myNGApp --ngwill have asrc/main.tsfile, and theappPathshould be set tosrcfor it to work, but currently it's not set to anything, and defaults toapp- causingApp entry not foundcrash.