Skip to content

Commit 8e7ac81

Browse files
authored
Merge pull request #4759 from NativeScript/tachev/skip-tns-config-shared
fix(migrate): do not delete the tns tsconfig for shared apps as it contains a lot of custom code.
2 parents 2a9d433 + 7cb1e37 commit 8e7ac81

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/controllers/migrate-controller.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ export class MigrateController extends UpdateControllerBase implements IMigrateC
129129
this.$fs.deleteDirectory(path.join(projectData.projectDir, constants.NODE_MODULES_FOLDER_NAME));
130130
this.$fs.deleteFile(path.join(projectData.projectDir, constants.WEBPACK_CONFIG_NAME));
131131
this.$fs.deleteFile(path.join(projectData.projectDir, constants.PACKAGE_LOCK_JSON_FILE_NAME));
132-
this.$fs.deleteFile(path.join(projectData.projectDir, constants.TSCCONFIG_TNS_JSON_NAME));
132+
if (!projectData.isShared) {
133+
this.$fs.deleteFile(path.join(projectData.projectDir, constants.TSCCONFIG_TNS_JSON_NAME));
134+
}
135+
133136
this.$logger.info("Clean old project artefacts complete.");
134137
}
135138

0 commit comments

Comments
 (0)