Skip to content

Commit

Permalink
fix: export main and types (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto authored Apr 20, 2020
1 parent c94fb0e commit fd719ef
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
"name": "nest-raven",
"version": "6.0.0",
"description": "Sentry Raven Module for Nest Framework",
"directories": {
"lib": "lib"
},
"files": ["dist"],
"scripts": {
"build": "rm -rf dist && tsc -p tsconfig.json && cp *.md dist && cp LICENSE dist && cp package.json dist",
"build": "rm -rf dist && tsc -p tsconfig.build.json",
"format": "prettier \"{example,lib,test}/**/*.ts\" --write",
"lint": "prettier \"{example,lib,test}/**/*.ts\" --check",
"coverage": "cat ./coverage/lcov.info | coveralls",
"prepublish": "npm run build",
"test": "jest",
"start": "ts-node -r tsconfig-paths/register example/src/main.ts"
},
Expand Down Expand Up @@ -64,6 +63,8 @@
"tsconfig-paths": "^3.9.0",
"typescript": "^3.7.5"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"prettier": {
"singleQuote": true,
"trailingComma": "all"
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"example",
"test"
]
}
7 changes: 1 addition & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,5 @@
"skipLibCheck": true,
"noUnusedLocals": true,
"noUnusedParameters": true
},
"exclude": [
"node_modules",
"**/*.spec.ts",
"example"
]
}
}

0 comments on commit fd719ef

Please sign in to comment.