Skip to content

Commit

Permalink
fix: tsconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Tilman Vatteroth <[email protected]>
  • Loading branch information
mrdrogdrog committed Jul 30, 2023
1 parent b44773a commit 9e4bf22
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"parser" : "@typescript-eslint/parser",
"parserOptions" : {
"project" : [
"./tsconfig.esm.json"
"./tsconfig.test.json"
]
},
"plugins" : [
Expand Down
2 changes: 1 addition & 1 deletion jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"^.+\\.tsx?$" : [
"ts-jest",
{
"tsconfig" : "tsconfig.esm.json",
"tsconfig" : "tsconfig.test.json",
"useESM" : true
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: MIT
*/

import { Optional } from './index'
import { Optional } from './index.js'
import { describe, expect, it } from '@jest/globals'

describe('Optional', () => {
Expand Down
4 changes: 1 addition & 3 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"lib": [
Expand All @@ -11,11 +10,10 @@
"strict": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"esModuleInterop": true,
"allowJs": true,
"sourceMap": true
},
"include": ["src"],
"exclude": ["dist"]
"exclude": ["dist", "**/*.test.ts"]
}
3 changes: 2 additions & 1 deletion tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"module": "CommonJS",
"target": "ES2015",
"outDir": "dist/cjs",
"declarationDir": "dist/cjs"
"declarationDir": "dist/cjs",
"moduleResolution": "node"
}
}
1 change: 1 addition & 0 deletions tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"module": "ESNext",
"target" : "esnext",
"outDir": "dist/esm",
"moduleResolution": "NodeNext",
"declarationDir": "dist/esm"
}
}
4 changes: 4 additions & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends" : "./tsconfig.esm.json",
"exclude": ["dist"]
}

0 comments on commit 9e4bf22

Please sign in to comment.