Skip to content

Commit 050ff34

Browse files
committed
build: add prepare/index for repo install
1 parent 384f598 commit 050ff34

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"author": "Kamil Mysliwiec",
66
"license": "MIT",
77
"repository": "https://github.com/nestjs/swagger",
8+
"main": "dist/index.js",
9+
"types": "dist/index.d.ts",
810
"scripts": {
911
"build": "tsc -p tsconfig.build.json",
1012
"format": "prettier \"lib/**/*.ts\" --write",
@@ -13,6 +15,7 @@
1315
"publish:next": "npm publish --access public --tag next",
1416
"prepublish:npm": "npm run build",
1517
"publish:npm": "npm publish --access public",
18+
"prepare": "npm run build",
1619
"test": "jest",
1720
"test:dev": "jest --watch",
1821
"test:e2e": "jest --config e2e/jest-e2e.json",

0 commit comments

Comments
 (0)