forked from Mirrors/doipjs
feat: migrate from yarn to npm
This commit is contained in:
parent
fa57e7b538
commit
2c91935862
7 changed files with 7482 additions and 4312 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn test
|
||||
npm test
|
|
@ -15,7 +15,7 @@ examples
|
|||
\.woodpecker
|
||||
|
||||
package.json
|
||||
yarn.lock
|
||||
package-lock.json
|
||||
rollup.config.js
|
||||
\.editorconfig
|
||||
\.gitignore
|
||||
|
|
|
@ -5,8 +5,7 @@ steps:
|
|||
prepare:
|
||||
image: node
|
||||
commands:
|
||||
- yarn --pure-lockfile
|
||||
- yarn run prepare
|
||||
- npm ci
|
||||
|
||||
publish-npm:
|
||||
when:
|
||||
|
|
|
@ -2,6 +2,5 @@ steps:
|
|||
test:
|
||||
image: node
|
||||
commands:
|
||||
- yarn --pure-lockfile
|
||||
- yarn run prepare
|
||||
- yarn run test
|
||||
- npm ci
|
||||
- npm run test
|
7474
package-lock.json
generated
Normal file
7474
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -15,7 +15,6 @@
|
|||
"default": "./src/fetcher/index.minimal.js"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@1.22.19",
|
||||
"dependencies": {
|
||||
"@openpgp/hkp-client": "^0.0.3",
|
||||
"@openpgp/wkd-client": "^0.0.4",
|
||||
|
@ -58,8 +57,8 @@
|
|||
"rollup-plugin-visualizer": "^5.9.2"
|
||||
},
|
||||
"scripts": {
|
||||
"release": "node ./prerelease.js && yarn run test && yarn run build",
|
||||
"build": "rm -rf ./dist/ && yarn run build:bundle && yarn run build:minify",
|
||||
"release": "node ./prerelease.js && npm run test && npm run build",
|
||||
"build": "rm -rf ./dist/ && npm run build:bundle && npm run build:minify",
|
||||
"build:bundle": "rollup -c",
|
||||
"build:minify": "minify ./dist/doip.core.js > ./dist/doip.core.min.js && minify ./dist/doip.fetchers.js > ./dist/doip.fetchers.min.js && minify ./dist/doip.fetchers.minimal.js > ./dist/doip.fetchers.minimal.min.js",
|
||||
"license:check": "license-check-and-add check",
|
||||
|
@ -68,7 +67,7 @@
|
|||
"docs:lib": "jsdoc -c jsdoc-lib.json -r -d ./docs -P package.json",
|
||||
"lint": "eslint ./src",
|
||||
"lint:fix": "eslint ./src --fix",
|
||||
"test": "yarn lint && yarn run license:check && yarn run mocha",
|
||||
"test": "npm run lint && npm run license:check && mocha",
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"repository": {
|
||||
|
|
Loading…
Reference in a new issue