replace package.json scripts with just.
This commit is contained in:
parent
da59e3ce90
commit
3710866430
|
@ -12,9 +12,9 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- run: yarn --ignore-engines
|
||||
- run: node build.js
|
||||
- run: yarn test
|
||||
- uses: extractions/setup-just@v1
|
||||
- run: just install-and-build
|
||||
- run: just test
|
||||
- uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
|
|
|
@ -11,6 +11,6 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- run: yarn --ignore-engines
|
||||
- run: node build.js
|
||||
- run: yarn test
|
||||
- uses: extractions/setup-just@v1
|
||||
- run: just install-and-build
|
||||
- run: just test
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
export PATH := "./node_modules/.bin:" + env_var('PATH')
|
||||
|
||||
install-dependencies:
|
||||
yarn --ignore-engines
|
||||
|
||||
deps-installed := `ls node_modules`
|
||||
|
||||
install-and-build:
|
||||
if deps-installed != "node_modules" { install-dependencies }
|
||||
build
|
||||
|
||||
build:
|
||||
node build.js
|
||||
|
||||
test: build
|
||||
jest
|
||||
|
||||
testOnly file: build
|
||||
jest {{file}}
|
|
@ -38,10 +38,5 @@
|
|||
"tsd": "^0.22.0",
|
||||
"typescript": "^4.9.4",
|
||||
"websocket-polyfill": "^0.0.3"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "node build.js",
|
||||
"pretest": "node build.js",
|
||||
"test": "jest"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue