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