Skip to content

Commit

Permalink
chore: set module and moduleResolution to nodenext
Browse files Browse the repository at this point in the history
This enforces presence of file extension in imports
  • Loading branch information
faergeek committed Feb 13, 2024
1 parent 1d03fdd commit f34f23f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/async.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, expectTypeOf, it } from 'vitest';

import { Async } from './async';
import { Async } from './async.js';

describe('Async', () => {
it('.Pending', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/maybe.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, expectTypeOf, it } from 'vitest';

import { Maybe } from './maybe';
import { Maybe } from './maybe.js';

describe('Maybe', () => {
it('.None', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/result.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, expectTypeOf, it } from 'vitest';

import { Result } from './result';
import { Result } from './result.js';

describe('Result', () => {
it('.Err', () => {
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"lib": ["dom", "dom.iterable", "esnext"],
"module": "esnext",
"moduleResolution": "bundler",
"module": "nodenext",
"moduleResolution": "nodenext",
"noErrorTruncation": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
Expand Down

0 comments on commit f34f23f

Please sign in to comment.