Use ncc and clean workflows

This commit is contained in:
CrazyMax
2020-04-09 02:32:42 +02:00
parent 74111003d6
commit 2d97075bcc
13 changed files with 27138 additions and 151 deletions

View File

@@ -5,6 +5,13 @@
"directories": {
"lib": "lib"
},
"scripts": {
"build": "tsc && ncc build",
"test": "jest",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"pre-checkin": "npm run format && npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/crazy-max/ghaction-upx.git"
@@ -26,6 +33,7 @@
"@types/jest": "^25.2.1",
"@types/node": "^13.11.0",
"@types/download": "^6.2.4",
"@zeit/ncc": "^0.22.1",
"jest": "^25.2.7",
"jest-circus": "^25.2.7",
"jest-runtime": "^25.2.7",
@@ -33,13 +41,5 @@
"ts-jest": "^25.3.1",
"typescript": "^3.8.3",
"typescript-formatter": "^7.2.2"
},
"scripts": {
"build-dep": "npm install -g removeNPMAbsolutePaths",
"build": "tsc",
"test": "jest",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"prune": "npm prune --production && removeNPMAbsolutePaths \"./\" --force --fields _where _args"
}
}
}