Skip to content

Commit 7a8fe4a

Browse files
committed
Setting up wireit
1 parent 68d8c70 commit 7a8fe4a

File tree

2 files changed

+153
-98
lines changed

2 files changed

+153
-98
lines changed

package-lock.json

Lines changed: 126 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,35 @@
2121
"scripts": {
2222
"test": "npm run build && jest",
2323
"test:cov": "npm run build && jest --coverage",
24-
"build": "rimraf ./dist && npm run lint && tsc --noEmit && pkgroll",
25-
"lint": "eslint \"./src/**/*.{js,ts}\" --quiet --fix",
24+
"build": "wireit",
25+
"lint": "wireit",
2626
"prepare": "npm run build",
2727
"version": "npm run format && git add -A src",
2828
"postversion": "git push && git push --tags"
2929
},
30+
"wireit": {
31+
"lint": {
32+
"command": "eslint \"./src/**/*.{js,ts}\" --quiet --fix",
33+
"files": [
34+
"src/**/*.ts",
35+
"src/**/*.js"
36+
],
37+
"output": []
38+
},
39+
"build": {
40+
"command": "tsc --noEmit --pretty && pkgroll",
41+
"dependencies": [
42+
"lint"
43+
],
44+
"files": [
45+
"src/**/*.ts",
46+
"tsconfig.json"
47+
],
48+
"output": [
49+
"dist"
50+
]
51+
}
52+
},
3053
"author": "Cesar Parra",
3154
"license": "MIT",
3255
"repository": {
@@ -45,10 +68,10 @@
4568
"lint-staged": "^15.2.7",
4669
"pkgroll": "^2.4.2",
4770
"prettier": "^3.3.2",
48-
"rimraf": "^6.0.1",
4971
"ts-jest": "^29.2.0",
5072
"typescript": "^5.5.3",
51-
"typescript-eslint": "^7.16.0"
73+
"typescript-eslint": "^7.16.0",
74+
"wireit": "^0.14.10"
5275
},
5376
"husky": {
5477
"hooks": {

0 commit comments

Comments
 (0)