feat: remove release script, add check to pretest

This commit is contained in:
Yarmo Mackenbach 2024-06-15 20:30:41 +02:00
parent 2a36699ffa
commit 182db01312
No known key found for this signature in database
GPG key ID: C248C28D432560ED

View file

@ -57,7 +57,6 @@
"rollup-plugin-visualizer": "^5.9.2" "rollup-plugin-visualizer": "^5.9.2"
}, },
"scripts": { "scripts": {
"release": "node ./prerelease.js && npm test && npm run build",
"build": "rm -rf ./dist/ && npm run build:bundle && npm 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",
@ -67,7 +66,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",
"pretest": "npm run lint && npm run license:check", "pretest": "node ./prerelease.js && npm run lint && npm run license:check",
"test": "mocha", "test": "mocha",
"prepare": "husky install" "prepare": "husky install"
}, },