Browse Source

chore: use pnpm

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
204842cabd
  1. 10
      build-local-docker-image.sh

10
build-local-docker-image.sh

@ -26,8 +26,8 @@ function remove_image() {
function build_sdk(){
# build nocodb-sdk
cd ${SCRIPT_DIR}/packages/nocodb-sdk
npm ci || ERROR="sdk build failed"
npm run build || ERROR="sdk build failed"
pnpm install --prod || ERROR="sdk build failed"
pnpm run build || ERROR="sdk build failed"
}
function build_gui(){
@ -35,8 +35,8 @@ function build_gui(){
export NODE_OPTIONS="--max_old_space_size=16384"
# generate static build of nc-gui
cd ${SCRIPT_DIR}/packages/nc-gui
npm ci || ERROR="gui build failed"
npm run generate || ERROR="gui build failed"
pnpm install --prod || ERROR="gui build failed"
pnpm run generate || ERROR="gui build failed"
}
function copy_gui_artifacts(){
@ -48,7 +48,7 @@ function package_nocodb(){
#build nocodb
# build nocodb ( pack nocodb-sdk and nc-gui )
cd ${SCRIPT_DIR}/packages/nocodb
npm install || ERROR="package_nocodb failed"
pnpm install --prod || ERROR="package_nocodb failed"
EE=true ./node_modules/.bin/webpack --config webpack.local.config.js || ERROR="package_nocodb failed"
}

Loading…
Cancel
Save