Skip to content

Commit

Permalink
chore(tsconfig): set moduleResolution to nodenext
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jan 5, 2024
1 parent 0298867 commit e56b285
Show file tree
Hide file tree
Showing 4 changed files with 582 additions and 406 deletions.
2 changes: 1 addition & 1 deletion src/main/ts/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './foo'
export * from './foo.ts'
2 changes: 1 addition & 1 deletion src/test/ts/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as assert from 'node:assert'
import { describe, it } from 'node:test'
import { foo } from '../../main/ts'
import { foo } from '../../main/ts/index.ts'

describe('foo()', () => {
it('is callable', () => {
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"rootDir": "./src/main/ts/",
"baseUrl": "./src/main/ts/",
"esModuleInterop": true,
"module": "esnext",
"allowImportingTsExtensions": true,
"moduleResolution": "nodenext",
"module": "nodenext",
"target": "esnext",
"strict": true,
"noImplicitAny": true,
Expand All @@ -22,4 +24,4 @@
"node_modules",
"src/test"
]
}
}
Loading

0 comments on commit e56b285

Please sign in to comment.