Skip to content

Commit

Permalink
Import with file extensions
Browse files Browse the repository at this point in the history
Setting the tsconfig properly makes TSC also throw an error / warning for the extensionless imports too.
  • Loading branch information
joehoyle committed Mar 5, 2024
1 parent 00b3e26 commit 8ec8a50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lambda-handler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Args, getS3File, resizeBuffer, Config } from './lib';
import { Args, getS3File, resizeBuffer, Config } from './lib.js';
/**
*
* @param event
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"strict": true,
"preserveConstEnums": true,
"sourceMap": false,
"module": "ES2022",
"moduleResolution": "node",
"module": "Node16",
"moduleResolution": "node16",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
Expand Down

0 comments on commit 8ec8a50

Please sign in to comment.