Browse Source

feat(nocodb-sdk): add postinstall

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
7f9f072c6e
  1. 5
      packages/nocodb-sdk/package.json

5
packages/nocodb-sdk/package.json

@ -35,7 +35,8 @@
"test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"", "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"",
"watch:build": "tsc -p tsconfig.json -w", "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" "preinstall": "npx only-allow pnpm",
"postinstall": "pnpm build"
}, },
"dependencies": { "dependencies": {
"axios": "^0.21.1", "axios": "^0.21.1",
@ -69,4 +70,4 @@
"prettier": { "prettier": {
"singleQuote": true "singleQuote": true
} }
} }

Loading…
Cancel
Save