chore: use npm in npm scripts

This commit is contained in:
EGOIST 2021-12-02 21:06:20 +08:00
parent 5939e6b282
commit 11f57e2dd6
2 changed files with 6 additions and 5 deletions

View File

@ -45,7 +45,7 @@ jobs:
# Runs a set of commands using the runners shell
- name: Build and Test
run: pnpm test
run: npm test
release:
runs-on: ubuntu-latest
@ -68,6 +68,7 @@ jobs:
${{ runner.os }}-${{ matrix.node-version }}-release-
${{ runner.os }}-
- run: npm i -g pnpm
- run: pnpm i
- run: pnpx -y semantic-release --branches main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -17,12 +17,12 @@
"url": "https://github.com/egoist/tsup.git"
},
"scripts": {
"dev": "pnpm run build-fast -- --watch",
"dev": "npm run build-fast -- --watch",
"build": "tsup src/cli-*.ts src/index.ts src/rollup.ts --clean --splitting",
"prepublishOnly": "pnpm run build-fast",
"test": "pnpm run build && pnpm run test-only",
"prepublishOnly": "npm run build-fast",
"test": "npm run build && npm run test-only",
"test-only": "ava test/*.test.ts --fail-fast --timeout 60s",
"build-fast": "pnpm run build -- --no-dts"
"build-fast": "npm run build -- --no-dts"
},
"ava": {
"extensions": [