create-o2s-app 4.1.5 → 4.1.6
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.
- package/CHANGELOG.md +6 -0
- package/README.md +2 -0
- package/dist/scaffold/install.d.ts.map +1 -1
- package/dist/scaffold/install.js +4 -0
- package/package.json +1 -1
- package/src/scaffold/install.ts +4 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -89,3 +89,5 @@ The `.env.local` file is generated automatically with all required environment v
|
|
|
89
89
|
- [O2S Documentation](https://openselfservice.com/docs)
|
|
90
90
|
- `@o2s/framework` — Core framework types and services
|
|
91
91
|
- `@o2s/telemetry` — Anonymous usage telemetry
|
|
92
|
+
|
|
93
|
+
Scaffolded apps should keep **`@o2s/utils.frontend`** and **`@o2s/utils.api-harmonization`** as direct dependencies in `apps/frontend` and `apps/api-harmonization`. Blocks expect these from the app (peer dependencies), not from nested installs under each block.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/scaffold/install.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAAU,YAAY,MAAM,EAAE,sBAAsB,MAAM,EAAE,KAAG,OAAO,CAAC,IAAI,CAkDvG,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAU,YAAY,MAAM,EAAE,sBAAsB,MAAM,EAAE,KAAG,OAAO,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/scaffold/install.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAAU,YAAY,MAAM,EAAE,sBAAsB,MAAM,EAAE,KAAG,OAAO,CAAC,IAAI,CAkDvG,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAU,YAAY,MAAM,EAAE,sBAAsB,MAAM,EAAE,KAAG,OAAO,CAAC,IAAI,CAsB1G,CAAC"}
|
package/dist/scaffold/install.js
CHANGED
|
@@ -103,6 +103,10 @@ const installDependencies = async (projectDir, selectedIntegrations) => {
|
|
|
103
103
|
cwd: projectDir,
|
|
104
104
|
stdio: 'inherit',
|
|
105
105
|
});
|
|
106
|
+
(0, child_process_1.execSync)('npm dedupe', {
|
|
107
|
+
cwd: projectDir,
|
|
108
|
+
stdio: 'inherit',
|
|
109
|
+
});
|
|
106
110
|
console.log('Dependencies installed successfully.');
|
|
107
111
|
}
|
|
108
112
|
catch (error) {
|
package/package.json
CHANGED
package/src/scaffold/install.ts
CHANGED
|
@@ -76,6 +76,10 @@ export const installDependencies = async (projectDir: string, selectedIntegratio
|
|
|
76
76
|
cwd: projectDir,
|
|
77
77
|
stdio: 'inherit',
|
|
78
78
|
});
|
|
79
|
+
execSync('npm dedupe', {
|
|
80
|
+
cwd: projectDir,
|
|
81
|
+
stdio: 'inherit',
|
|
82
|
+
});
|
|
79
83
|
console.log('Dependencies installed successfully.');
|
|
80
84
|
} catch (error) {
|
|
81
85
|
console.error('Error while installing dependencies.');
|