Skip to content

Commit f26e033

Browse files
committed
fix(init): add ws-config write to postinstall for external package manager mode
1 parent 267d281 commit f26e033

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scopes/harmony/host-initializer/create-consumer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export async function createConsumer(
7575
const content = { ...existingPackageJson.packageJsonObject };
7676
content.type = 'module';
7777
content.scripts = content.scripts || {};
78-
content.scripts.postinstall = 'bit link && bit compile';
78+
content.scripts.postinstall = 'bit link && bit compile && bit ws-config write';
7979

8080
const packageJson = PackageJsonFile.create(consumer.projectPath, undefined, content);
8181
consumer.setPackageJson(packageJson);
@@ -84,7 +84,7 @@ export async function createConsumer(
8484
const jsonContent = {
8585
type: 'module',
8686
scripts: {
87-
postinstall: 'bit link && bit compile',
87+
postinstall: 'bit link && bit compile && bit ws-config write',
8888
},
8989
};
9090
const packageJson = PackageJsonFile.create(consumer.projectPath, undefined, jsonContent);

0 commit comments

Comments
 (0)