Only build pro after bootstrapping and after backend-core build (#9130)
* Update .npmignore path to include all subdirectories of dist The dist/* pattern was including only the first level of files inside the dist folder. Update to no longer wildcard to include all the folder contents * Only build pro after bootstrapping and after backend-core build This protects against the scenario of a breaking change in backend-core that is relied on by the pro package. Introducing to fix the current build as the published backend-core package is corrupted. This change ensures the local filsystem version of core will be used. * Debug line * Debug lines * Update build script
This commit is contained in:
parent
38fda12288
commit
5aa7291677
|
@ -15,6 +15,8 @@
|
|||
"prebuild": "rimraf dist/",
|
||||
"prepack": "cp package.json dist",
|
||||
"build": "tsc -p tsconfig.build.json",
|
||||
"build:pro": "../../scripts/pro/build.sh",
|
||||
"postbuild": "yarn run build:pro",
|
||||
"build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
|
||||
"test": "jest --coverage --maxWorkers=2",
|
||||
"test:watch": "jest --watchAll"
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script is designed for building the pro repo after the backend-core build has completed.
|
||||
# This ensures that any changes in core that are required by pro are done in the correct order.
|
||||
|
||||
set -e
|
||||
|
||||
# Go to parent of budibase
|
||||
cd ../../../
|
||||
|
||||
if [[ -d "budibase-pro" ]]; then
|
||||
cd budibase-pro
|
||||
echo "Building pro"
|
||||
yarn build
|
||||
fi
|
|
@ -35,5 +35,5 @@ if [[ -d "budibase-pro" ]]; then
|
|||
git pull
|
||||
|
||||
echo "Initializing pro repo..."
|
||||
yarn setup
|
||||
yarn
|
||||
fi
|
Loading…
Reference in New Issue