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
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
yarn test
|
npm test
|
|
@ -15,7 +15,7 @@ examples
|
||||||
\.woodpecker
|
\.woodpecker
|
||||||
|
|
||||||
package.json
|
package.json
|
||||||
yarn.lock
|
package-lock.json
|
||||||
rollup.config.js
|
rollup.config.js
|
||||||
\.editorconfig
|
\.editorconfig
|
||||||
\.gitignore
|
\.gitignore
|
||||||
|
|
|
@ -5,8 +5,7 @@ steps:
|
||||||
prepare:
|
prepare:
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn --pure-lockfile
|
- npm ci
|
||||||
- yarn run prepare
|
|
||||||
|
|
||||||
publish-npm:
|
publish-npm:
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -2,6 +2,5 @@ steps:
|
||||||
test:
|
test:
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- yarn --pure-lockfile
|
- npm ci
|
||||||
- yarn run prepare
|
- npm run test
|
||||||
- yarn 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"
|
"default": "./src/fetcher/index.minimal.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@1.22.19",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@openpgp/hkp-client": "^0.0.3",
|
"@openpgp/hkp-client": "^0.0.3",
|
||||||
"@openpgp/wkd-client": "^0.0.4",
|
"@openpgp/wkd-client": "^0.0.4",
|
||||||
|
@ -58,8 +57,8 @@
|
||||||
"rollup-plugin-visualizer": "^5.9.2"
|
"rollup-plugin-visualizer": "^5.9.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"release": "node ./prerelease.js && yarn run test && yarn run build",
|
"release": "node ./prerelease.js && npm run test && npm run build",
|
||||||
"build": "rm -rf ./dist/ && yarn run build:bundle && yarn run build:minify",
|
"build": "rm -rf ./dist/ && npm run build:bundle && npm run build:minify",
|
||||||
"build:bundle": "rollup -c",
|
"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",
|
"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",
|
"license:check": "license-check-and-add check",
|
||||||
|
@ -68,7 +67,7 @@
|
||||||
"docs:lib": "jsdoc -c jsdoc-lib.json -r -d ./docs -P package.json",
|
"docs:lib": "jsdoc -c jsdoc-lib.json -r -d ./docs -P package.json",
|
||||||
"lint": "eslint ./src",
|
"lint": "eslint ./src",
|
||||||
"lint:fix": "eslint ./src --fix",
|
"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"
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in a new issue