|
9 | 9 | }, |
10 | 10 | "main": "dist/index.js", |
11 | 11 | "scripts": { |
12 | | - "format": "npx prettier --write .", |
| 12 | + "bundle": "npm run format:write && npm run package", |
| 13 | + "ci-test": "npm run test:bash && NODE_OPTIONS='--experimental-vm-modules' npx jest --coverage", |
| 14 | + "coverage": "npx @joshjohanning/make-coverage-badge-better --label-color '#333' --output-path ./badges/coverage.svg", |
| 15 | + "format:write": "npx prettier --write .", |
13 | 16 | "format:check": "npx prettier --check .", |
14 | | - "lint": "npx eslint src/**/*.js", |
15 | | - "test": "npm run test:bash && npm run test:js", |
| 17 | + "lint": "npx eslint .", |
| 18 | + "package": "npx @vercel/ncc build src/index.js -o dist --source-map --license licenses.txt", |
| 19 | + "package:watch": "npm run package -- --watch", |
| 20 | + "test": "npm run test:bash && NODE_OPTIONS='--experimental-vm-modules' npx jest", |
16 | 21 | "test:bash": "./__tests__/action.test.sh", |
17 | | - "test:js": "NODE_OPTIONS=--experimental-vm-modules npx jest", |
18 | | - "test:watch": "NODE_OPTIONS=--experimental-vm-modules npx jest --watch", |
19 | | - "test:coverage": "NODE_OPTIONS=--experimental-vm-modules npx jest --coverage", |
20 | | - "coverage": "npx @joshjohanning/make-coverage-badge-better --label-color '#333' --output-path ./badges/coverage.svg", |
21 | | - "package": "npx @vercel/ncc build --source-map --license licenses.txt src/index.js -o dist", |
22 | | - "all": "npm run format && npm run lint && npm run test:coverage && npm run coverage && npm run package" |
| 22 | + "test:watch": "NODE_OPTIONS='--experimental-vm-modules' npx jest --watch", |
| 23 | + "all": "npm run format:write && npm run lint && npm run ci-test && npm run coverage && npm run package" |
23 | 24 | }, |
24 | 25 | "repository": { |
25 | 26 | "type": "git", |
|
0 commit comments