Skip to content

Commit

Permalink
fix: use declarationMap
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Mar 20, 2023
1 parent 70c9b00 commit 6de2ace
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
"tsx": "^3.12.3",
"typescript": "^4.9.4"
},
"files": [
"src",
"dist"
],
"engines": {
"node": ">=12.0"
},
Expand All @@ -58,19 +62,19 @@
"json"
],
"license": "BSD-3-Clause",
"main": "./dist/src/Roarr.js",
"main": "./dist/Roarr.js",
"name": "roarr",
"repository": {
"type": "git",
"url": "[email protected]:gajus/roarr.git"
},
"scripts": {
"benchmark": "ROARR_LOG=true tsx test/benchmark.ts",
"build": "rm -fr ./dist && tsc",
"dev": "tsc --watch",
"lint": "eslint ./src ./test && tsc --noEmit",
"build": "rm -fr ./dist && tsc --project tsconfig.build.json",
"dev": "tsc --watch --project tsconfig.build.json",
"lint": "eslint ./src ./test && tsc",
"test": "NODE_ENV=test ava --serial --verbose"
},
"types": "./dist/src/Roarr.d.ts",
"types": "./dist/Roarr.d.ts",
"version": "1.0.0"
}
9 changes: 9 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"noEmit": false
},
"extends": "./tsconfig.json",
"include": [
"src"
]
}
7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"module": "commonjs",
"moduleResolution": "node",
"noEmit": true,
"noImplicitAny": false,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": false,
"outDir": "dist",
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "es2018"
},
"exclude": [
"dist",
"node_modules"
],
"include": [
"src",
"test"
Expand Down

0 comments on commit 6de2ace

Please sign in to comment.