Skip to content

Commit 015a9e5

Browse files
authored
TSConfig udpates (#4)
1 parent 6703563 commit 015a9e5

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.github/
2+
.vscode/

package-lock.json

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ragnarpa/quantity",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "A lib to convert quantities to real numbers",
55
"repository": {
66
"type": "git",
@@ -11,7 +11,7 @@
1111
"lint": "eslint src test --ext .ts",
1212
"test": "npm run lint && npm run test:run",
1313
"test:run": "jest",
14-
"build": "tsc --build && tsc --declaration --declarationMap",
14+
"build": "tsc --build",
1515
"clean": "tsc --build --clean"
1616
},
1717
"keywords": [
@@ -29,7 +29,6 @@
2929
},
3030
"license": "MIT",
3131
"devDependencies": {
32-
"@tsconfig/recommended": "^1.0.1",
3332
"@types/jest": "^26.0.20",
3433
"@typescript-eslint/eslint-plugin": "^4.15.2",
3534
"@typescript-eslint/parser": "^4.15.2",

tsconfig.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{
2-
"extends": "@tsconfig/recommended/tsconfig.json",
32
"include": ["src/**/*"],
4-
"exclude": ["node_modules", "**/*.spec.ts"],
3+
"exclude": ["node_modules", "**/*.spec.ts", "dist"],
54
"compilerOptions": {
5+
"rootDir": "src",
66
"outDir": "dist",
7-
"sourceMap": true
8-
}
7+
"declaration": true,
8+
"sourceMap": true,
9+
"target": "ES2015",
10+
"module": "commonjs",
11+
"strict": true,
12+
"esModuleInterop": true,
13+
"skipLibCheck": true,
14+
"forceConsistentCasingInFileNames": true
15+
},
16+
"$schema": "https://json.schemastore.org/tsconfig"
917
}

0 commit comments

Comments
 (0)