|
@@ -53,9 +53,11 @@ if (fs.existsSync(path.join(packagePath, 'node_modules'))) {
|
|
|
|
|
|
// Make sure composite is set to true in the new package.
|
|
|
let packageTsconfigPath = path.join(packagePath, 'tsconfig.json');
|
|
|
-let packageTsconfig = utils.readJSONFile(packageTsconfigPath);
|
|
|
-packageTsconfig.compilerOptions.composite = true;
|
|
|
-utils.writeJSONFile(packageTsconfigPath, packageTsconfig);
|
|
|
+if (fs.existsSync(packageTsconfigPath)) {
|
|
|
+ let packageTsconfig = utils.readJSONFile(packageTsconfigPath);
|
|
|
+ packageTsconfig.compilerOptions.composite = true;
|
|
|
+ utils.writeJSONFile(packageTsconfigPath, packageTsconfig);
|
|
|
+}
|
|
|
|
|
|
// Get the package.json of the extension.
|
|
|
let pkgJSONPath = path.join(packagePath, 'package.json');
|