switch to npm

This commit is contained in:
silverwind 2021-08-23 09:44:25 +02:00
parent 0dfbb166a8
commit ca91850f65
Signed by untrusted user: silverwind
GPG Key ID: 2E62B41C93869443
7 changed files with 15380 additions and 4824 deletions

2
.gitignore vendored

@ -1,6 +1,6 @@
/.vscode /.vscode
/node_modules /node_modules
/npm-debug.log* /npm-debug.log*
/package-lock.json
/updates.cjs /updates.cjs
/yarn-error.log /yarn-error.log
/yarn.lock

5
.npmrc

@ -1,2 +1,5 @@
package-lock=false audit=false
fund=false
package-lock=true
save-exact=true save-exact=true
update-notifier=false

@ -1 +0,0 @@
save-prefix ""

@ -1,20 +1,20 @@
node_modules: yarn.lock node_modules: package-lock.json
@yarn -s --pure-lockfile npm install --no-save
@touch node_modules @touch node_modules
deps: node_modules deps: node_modules
lint: node_modules lint: node_modules
yarn -s run eslint --color . npx eslint --color .
test: node_modules lint build test: node_modules lint build
NODE_OPTIONS="--experimental-vm-modules --no-warnings" yarn -s run jest --color NODE_OPTIONS="--experimental-vm-modules --no-warnings" npx jest --color
unittest: node_modules unittest: node_modules
NODE_OPTIONS="--experimental-vm-modules --no-warnings" yarn -s run jest --color --watchAll NODE_OPTIONS="--experimental-vm-modules --no-warnings" npx jest --color --watchAll
build: node_modules build: node_modules
yarn -s run ncc build updates.js -q -m -o . npx ncc build updates.js -q -m -o .
@mv index.js updates.cjs @mv index.js updates.cjs
@rm -rf updates @rm -rf updates
@chmod +x updates.cjs @chmod +x updates.cjs
@ -25,20 +25,20 @@ publish: node_modules
update: node_modules build update: node_modules build
node updates.cjs -cu node updates.cjs -cu
@rm yarn.lock rm package-lock.json
@yarn -s npm install
@touch node_modules @touch node_modules
patch: node_modules test patch: node_modules test
yarn -s run versions -Cc 'make build' patch npx versions -Cc 'make build' patch
@$(MAKE) --no-print-directory publish @$(MAKE) --no-print-directory publish
minor: node_modules test minor: node_modules test
yarn -s run versions -Cc 'make build' minor npx versions -Cc 'make build' minor
@$(MAKE) --no-print-directory publish @$(MAKE) --no-print-directory publish
major: node_modules test major: node_modules test
yarn -s run versions -Cc 'make build' major npx versions -Cc 'make build' major
@$(MAKE) --no-print-directory publish @$(MAKE) --no-print-directory publish
.PHONY: lint test unittest build publish deps update patch minor major .PHONY: lint test unittest build publish deps update patch minor major

15361
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

@ -50,7 +50,9 @@
"versions": "8.4.7" "versions": "8.4.7"
}, },
"jest": { "jest": {
"setupFilesAfterEnv": ["jest-extended"], "setupFilesAfterEnv": [
"jest-extended"
],
"testTimeout": 60000, "testTimeout": 60000,
"transform": {}, "transform": {},
"verbose": false "verbose": false

4809
yarn.lock

File diff suppressed because it is too large Load Diff