Skip to content

Commit

Permalink
chore: update preversion script to include linting, building, formatt…
Browse files Browse the repository at this point in the history
…ing, and generating docs
  • Loading branch information
msudgh committed Aug 18, 2024
1 parent 8c2e7c6 commit 740c827
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"scripts": {
"prepare": "is-ci || husky",
"build": "rm -rf ./dist && tsc -p tsconfig.build.json",
"build": "pnpm run clean && tsc -p tsconfig.build.json",
"build:watch": "tsc -p tsconfig.build.json -w",
"build:type-check": "tsc -p tsconfig.build.json --noEmit",
"test": "node --trace-warnings --experimental-vm-modules 'node_modules/jest/bin/jest.js'",
Expand All @@ -34,8 +34,9 @@
"lint:fix": "eslint . --fix",
"docs:build": "pnpm run build && rm -rf ./docs && ./node_modules/.bin/jsdoc -c jsdoc.json",
"docs:start": "pnpm run docs:build && ./node_modules/.bin/http-server -c-1 -o docs",
"preversion": "pnpm run build && pnpm run format",
"cat-code": "cat package.json README.md > scs-code-prompt && find ./src ./test -type f -name '*.ts' -exec cat {} + >> scs-code-prompt"
"preversion": "pnpm run lint && pnpm run build && pnpm run format && pnpm run docs:build",
"clean": "rm -rf ./dist ./docs",
"start": "node dist/esm/index.js"
},
"lint-staged": {
"(/test/.*\\.test\\.ts)$": [
Expand Down

0 comments on commit 740c827

Please sign in to comment.