@open-mova/cli 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,9 +13,6 @@ export function configureDownloadedMicrofrontend(destination, name, port, profil
|
|
|
13
13
|
writeFileSync(join(destination, 'src/app/app.routes.ts'), minimalRoutes(name));
|
|
14
14
|
writeFileSync(join(destination, 'src/app/app.config.ts'), minimalAppConfig());
|
|
15
15
|
}
|
|
16
|
-
else {
|
|
17
|
-
packageJson.dependencies['@open-mova/core'] = '^0.1.9';
|
|
18
|
-
}
|
|
19
16
|
writeFileSync(packagePath, `${JSON.stringify(packageJson, null, 2)}\n`);
|
|
20
17
|
const angularPath = join(destination, 'angular.json');
|
|
21
18
|
const angular = readFileSync(angularPath, 'utf8')
|
|
@@ -74,14 +74,9 @@ export function configureDownloadedShell(destination, applicationName, includesS
|
|
|
74
74
|
packageJson.version = '0.1.0';
|
|
75
75
|
packageJson.private = true;
|
|
76
76
|
writeFileSync(packagePath, `${JSON.stringify(packageJson, null, 2)}\n`);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
packageLock.version = packageJson.version;
|
|
81
|
-
packageLock.packages[''].name = applicationName;
|
|
82
|
-
packageLock.packages[''].version = packageJson.version;
|
|
83
|
-
writeFileSync(packageLockPath, `${JSON.stringify(packageLock, null, 2)}\n`);
|
|
84
|
-
}
|
|
77
|
+
// A lockfile from the framework checkout may contain local development links.
|
|
78
|
+
// The generated application must resolve every dependency from its own package.json.
|
|
79
|
+
rmSync(packageLockPath, { force: true });
|
|
85
80
|
const capacitorPath = join(destination, 'capacitor.config.ts');
|
|
86
81
|
if (existsSync(capacitorPath)) {
|
|
87
82
|
const originalConfig = readFileSync(capacitorPath, 'utf8');
|