create-squire-workspace 0.0.6 → 0.0.7
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/create-workspace.d.ts +1 -0
- package/create-workspace.js +5 -1
- package/create-workspace.js.map +1 -1
- package/package.json +1 -1
package/create-workspace.d.ts
CHANGED
package/create-workspace.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env tsx
|
|
2
|
-
import { SqFolderUtils, SqPathUtils, SqProcessManager } from "@code-squire/utils";
|
|
2
|
+
import { SqFileUtils, SqFolderUtils, SqPathUtils, SqProcessManager } from "@code-squire/utils";
|
|
3
3
|
import { instance } from "@code-squire/ioc";
|
|
4
4
|
import { FeatureModuleRegistry } from "@code-squire/feature-modules";
|
|
5
5
|
import { SquireModule } from "@code-squire/squire";
|
|
@@ -20,10 +20,14 @@ export class CreateSquireSpace {
|
|
|
20
20
|
SqFolderUtils.create(workspacePath);
|
|
21
21
|
process.chdir(workspacePath);
|
|
22
22
|
await this.processManager.execute(`npm install -D ${packagesToInstall.join(' ')}`);
|
|
23
|
+
SqFileUtils.save(`${process.cwd()}/workspace.json`, '{}');
|
|
24
|
+
}
|
|
25
|
+
async setup() {
|
|
23
26
|
instance(FeatureModuleRegistry).broadcastSpecific({ module: SquireModule, parameters: [] });
|
|
24
27
|
await this.processManager.execute(`npx squire help`);
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
const space = new CreateSquireSpace();
|
|
28
31
|
await space.create();
|
|
32
|
+
await space.setup();
|
|
29
33
|
//# sourceMappingURL=create-workspace.js.map
|
package/create-workspace.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-workspace.js","sourceRoot":"","sources":["../../../../squire/create-workspace/src/create-workspace.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":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