Skip to content

Commit 22a29ce

Browse files
committed
Just build carbon-react-native-elements after install (postinstall)
1 parent 4d25d84 commit 22a29ce

2 files changed

Lines changed: 1 addition & 17 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "eslint .",
1010
"packages-builder:carbon-react-native": "npx @packages-builder/carbon-react-native",
1111
"packages-builder:carbon-react-native-elements": "npx @packages-builder/carbon-react-native-elements",
12-
"postinstall": "npm run packages-builder:carbon-react-native",
12+
"postinstall": "npm run packages-builder:carbon-react-native-elements && npm run packages-builder:carbon-react-native",
1313
"storybook-build": "node ./scripts/storybook-build.mjs",
1414
"type-check": "tsc --build --emitDeclarationOnly",
1515
"validate-color-token": "node ./scripts/validate-color-token.mjs"

scripts/storybook-build.mjs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@ const
66
root =
77
node_path.join(import.meta.dirname, "..")
88

9-
node_childProcess.execSync(
10-
"npm run packages-builder:carbon-react-native-elements",
11-
{
12-
cwd: root,
13-
stdio: "inherit",
14-
},
15-
)
16-
17-
node_childProcess.execSync(
18-
"npm run packages-builder:carbon-react-native",
19-
{
20-
cwd: root,
21-
stdio: "inherit",
22-
},
23-
)
24-
259
node_childProcess.execSync(
2610
"npx storybook build --disable-telemetry --output-dir .dist",
2711
{

0 commit comments

Comments
 (0)