From 1eab4b4661069162dbe198330f566dc71ca39a8c Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 27 Jun 2023 22:30:08 +0800 Subject: [PATCH] chore(pnpm): add npx only-allow pnpm --- packages/nc-gui/package.json | 3 ++- packages/nocodb-sdk/package.json | 3 ++- packages/nocodb/package.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/package.json b/packages/nc-gui/package.json index 3e058427dd..9c25087109 100644 --- a/packages/nc-gui/package.json +++ b/packages/nc-gui/package.json @@ -28,7 +28,8 @@ "coverage": "vitest -c test/vite.config.ts run --coverage", "build:copy": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/", "build:copy:publish": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/; pnpm publish ../nc-lib-gui", - "ci:run": "export NODE_OPTIONS=\"--max_old_space_size=16384\"; pnpm install; pnpm run build; NUXT_PAGE_TRANSITION_DISABLE=true NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080 pnpm run start" + "ci:run": "export NODE_OPTIONS=\"--max_old_space_size=16384\"; pnpm install; pnpm run build; NUXT_PAGE_TRANSITION_DISABLE=true NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080 pnpm run start", + "preinstall": "npx only-allow pnpm" }, "dependencies": { "@ckpack/vue-color": "^1.2.0", diff --git a/packages/nocodb-sdk/package.json b/packages/nocodb-sdk/package.json index 59801e0ec4..d29e03a38c 100644 --- a/packages/nocodb-sdk/package.json +++ b/packages/nocodb-sdk/package.json @@ -31,7 +31,8 @@ "test:prettier": "prettier \"src/**/*.ts\" --list-different", "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"", "watch:build": "tsc -p tsconfig.json -w", - "generate:sdk": "npx --yes swagger-typescript-api@10.0.3 -r -p ../nocodb/src/schema/swagger.json -o ./src/lib/ --axios --unwrap-response-data --module-name-first-tag --type-suffix=Type --templates ../../scripts/sdk/templates" + "generate:sdk": "npx --yes swagger-typescript-api@10.0.3 -r -p ../nocodb/src/schema/swagger.json -o ./src/lib/ --axios --unwrap-response-data --module-name-first-tag --type-suffix=Type --templates ../../scripts/sdk/templates", + "preinstall": "npx only-allow pnpm" }, "dependencies": { "axios": "^0.21.1", diff --git a/packages/nocodb/package.json b/packages/nocodb/package.json index 981b81138b..2b3209e7d8 100644 --- a/packages/nocodb/package.json +++ b/packages/nocodb/package.json @@ -44,7 +44,8 @@ "watch:run:playwright:pg:cyquick": "rm -f ./test_noco.db; cp ../../tests/playwright/fixtures/noco_0_91_7.db ./test_noco.db; cross-env NC_DISABLE_TELE=true EE=true nodemon -e ts,js -w ./src -x \"ts-node src/run/dockerRunPG_CyQuick.ts --log-error --project tsconfig.json\"", "test:unit": "cross-env TS_NODE_PROJECT=./tests/unit/tsconfig.json mocha -r ts-node/register tests/unit/index.test.ts --recursive --timeout 300000 --exit --delay", "test:unit:pg": "cp tests/unit/.pg.env tests/unit/.env; cross-env TS_NODE_PROJECT=./tests/unit/tsconfig.json mocha -r ts-node/register tests/unit/index.test.ts --recursive --timeout 300000 --exit --delay", - "docker:build": "EE=\"true-xc-test\" webpack --config docker/webpack.config.js" + "docker:build": "EE=\"true-xc-test\" webpack --config docker/webpack.config.js", + "preinstall": "npx only-allow pnpm" }, "dependencies": { "@google-cloud/storage": "^5.7.2",