1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00

Run pro bootstrap if submodule exists

This commit is contained in:
adrinr 2023-04-12 18:36:58 +01:00
parent 77a96b41a0
commit 181d0ee236
2 changed files with 8 additions and 1 deletions

View file

@ -23,7 +23,7 @@
},
"scripts": {
"setup": "node ./hosting/scripts/setup.js && yarn && yarn bootstrap && yarn build && yarn dev",
"bootstrap": "lerna bootstrap && cd packages/pro && lerna bootstrap && yarn setup",
"bootstrap": "./scripts/bootstrap.sh",
"postbootstrap": "lerna link && ./scripts/link-dependencies.sh",
"build": "lerna run --stream build",
"build:dev": "lerna run --stream prebuild && tsc --build --watch --preserveWatchOutput",

7
scripts/bootstrap.sh Executable file
View file

@ -0,0 +1,7 @@
lerna bootstrap
if [ -d "packages/pro/src" ]; then
cd packages/pro
lerna bootstrap
yarn setup
fi