Update build and test commands

This commit is contained in:
Zihua Li 2023-07-30 23:17:04 +08:00
parent 1e91af346c
commit 60ebe7a397
2 changed files with 3 additions and 4 deletions

View File

@ -18,6 +18,4 @@ jobs:
node-version: 16
- run: npm ci
- run: npm run lint
- run: npm run test:types
- run: npm test
timeout-minutes: 10

View File

@ -37,10 +37,11 @@
"url": "https://github.com/quilljs/parchment"
},
"scripts": {
"build": "vite build",
"build": "npm run build:bundle && npm run build:types",
"build:bundle": "vite build",
"build:types": "tsc --emitDeclarationOnly && api-extractor run && del-cli dist/typings",
"lint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
"prepare": "npm run build && npm run build:types",
"prepare": "npm run build",
"test": "npm run test:unit && npm run test:types",
"test:unit": "vitest",
"test:types": "vitest typecheck"