Skip to content

Commit 7d5992f

Browse files
authored
chore: add prepublishOnly scripts to package.json (#20)
1 parent f2f3142 commit 7d5992f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@
33
"private": true,
44
"version": "0.0.1",
55
"description": "Codemods for updating express servers.",
6-
"main": "build/index.js",
76
"contributors": ["Sebastian Beltran <[email protected]>", "Filip Kudla <[email protected]>"],
87
"license": "MIT",
9-
"bin": "build/index.js",
10-
"files": ["build/transforms/*.js", "build/commands/*.js", "build/utils/*.js", "build/config.js", "build/index.js"],
8+
"bin": {
9+
"express-codemod": "build/index.js"
10+
},
11+
"files": ["build/**/*.js"],
1112
"scripts": {
13+
"clean": "rm -rf build",
1214
"dev": "tsc -d -w -p tsconfig.json",
1315
"build": "tsc -d -p tsconfig.json",
1416
"lint": "biome check",
1517
"lint:fix": "biome check --fix",
1618
"test": "jest",
17-
"test:ci": "jest --ci"
19+
"test:ci": "jest --ci",
20+
"prepublishOnly": "npm run clean && npm run build"
1821
},
1922
"dependencies": {
2023
"commander": "^12.1.0",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"outDir": "build"
1212
},
1313
"include": ["**/*.ts"],
14-
"exclude": ["node_modules", "build", "transforms/__testfixtures__/**", "__test__", "**/*.spec.ts"]
14+
"exclude": ["node_modules", "build", "**/__testfixtures__", "**/__test__", "**/*.spec.ts"]
1515
}

0 commit comments

Comments
 (0)