Skip to content

Commit 50ad571

Browse files
committed
build: prepublishOnly npm script
1 parent ea77934 commit 50ad571

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
"build": "npm run build:cjs && npm run build:esm",
6464
"build:esm": "tsc -p tsconfig.build.json --outDir dist/esm --declarationDir dist/types",
6565
"build:cjs": "tsc -p tsconfig.build.json --outDir dist/cjs --module commonjs --declarationDir dist/types",
66-
"test": "jest"
66+
"test": "jest",
67+
"prepublishOnly": "npm run lint && npm run test && npm run build"
6768
},
6869
"devDependencies": {
6970
"@types/jest": "^27.4.1",

0 commit comments

Comments
 (0)