ReviewOS

stacks/ts-starter

Extension lack in dts

#102
Closed tomaswrobel-fastest opened this 9 days ago ·
9 days ago

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch ts-vat@0.1.1 for the project I'm working on.

When using "module": "NodeNext" in tsconfig.json, TypeScript won't resolve .d.ts correctly. Ensuring .js extensions will help as it is compatible with all of the module resolutions.

Here is the diff that solved my problem:

diff --git a/node_modules/ts-vat/dist/index.d.ts b/node_modules/ts-vat/dist/index.d.ts
index a92949c..8fcfbac 100644
--- a/node_modules/ts-vat/dist/index.d.ts
+++ b/node_modules/ts-vat/dist/index.d.ts
@@ -1,4 +1,4 @@
-export * from './config'
-export * from './exceptions'
-export * from './types'
-export * from './vat-calculator'
\ No newline at end of file
+export * from './config.js'
+export * from './exceptions.js'
+export * from './types.js'
+export * from './vat-calculator.js'

This issue body was partially generated by patch-package.

Sign in to comment on this issue.