Skip to content

Commit de39ff3

Browse files
committed
Script updated
1 parent b6045d8 commit de39ff3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ tap-html.html
1212
coverage
1313
.env
1414
.dccache
15-
dist/*
15+
dist/*
16+
*.log

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"./package.json": "./package.json"
2121
},
2222
"scripts": {
23-
"prepare": "husky && chmod +x .husky/pre-commit && npm run build",
23+
"prepare": "npm run build",
2424
"test": "jest ./test/unit",
2525
"test:unit": "jest ./test/unit",
2626
"test:api": "jest ./test/api",
@@ -30,7 +30,8 @@
3030
"build": "NODE_OPTIONS='--max-old-space-size=16384' tsup",
3131
"build:cjs": "node tools/cleanup cjs && tsc -p config/tsconfig.cjs.json && node tools/rename-cjs.cjs",
3232
"build:esm": "node tools/cleanup esm && tsc -p config/tsconfig.esm.json",
33-
"build:types": "node tools/cleanup types && tsc -p config/tsconfig.types.json"
33+
"build:types": "node tools/cleanup types && tsc -p config/tsconfig.types.json",
34+
"husky-check": "npm run build && husky && chmod +x .husky/pre-commit"
3435
},
3536
"dependencies": {
3637
"@contentstack/core": "^1.2.0",

0 commit comments

Comments
 (0)