We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v 3.3.0 has broken the source paths in the dts files
dts({ entryRoot: resolve(__dirname, 'src'), tsconfigPath: resolve(__dirname, 'tsconfig.json'), })
This would, with 3.2.0 provide declaration maps that looked like
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,YAEjB,CAAC"}
But with 3.3.0 they look like
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/src/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,YAEjB,CAAC"}
Which doesn't work at all. There is no src/src directory.
src/src
I guess technically both are wrong? tsc alone would have the path be ../src/index.ts
../src/index.ts
https://github.com/ekwoka/create-kwoka-pkg
In above repo, the focus is the nested project under kwoka-pkg directory. It's basically just a scaffold.
kwoka-pkg
Just add src/index.ts in the source with whatever.
src/index.ts
Run build.
Then update vite-plugin-dts and run build again.
vite-plugin-dts
The source paths are different.
But if you do pnpm exec tsc the source paths are also different...
pnpm exec tsc
So something is wrong here, but 3.3.0 of this plugin is definitely most wrong.
System: OS: macOS 13.4.1 CPU: (8) arm64 Apple M1 Pro Memory: 104.64 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.3.1 - ~/Library/pnpm/node Yarn: 1.22.19 - ~/Library/pnpm/yarn npm: 9.6.7 - ~/Library/pnpm/npm pnpm: 8.6.7 - ~/Library/pnpm/pnpm Browsers: Chrome: 114.0.5735.198 Edge: 114.0.1823.82 Safari: 16.5.2
The text was updated successfully, but these errors were encountered:
Could you provide a reproduction?
Sorry, something went wrong.
0d84180
Beautiful! Thank you!!
No branches or pull requests
Describe the bug
v 3.3.0 has broken the source paths in the dts files
This would, with 3.2.0 provide declaration maps that looked like
But with 3.3.0 they look like
Which doesn't work at all. There is no
src/src
directory.I guess technically both are wrong? tsc alone would have the path be
../src/index.ts
Reproduction
https://github.com/ekwoka/create-kwoka-pkg
Steps to reproduce
In above repo, the focus is the nested project under
kwoka-pkg
directory. It's basically just a scaffold.Just add
src/index.ts
in the source with whatever.Run build.
Then update
vite-plugin-dts
and run build again.The source paths are different.
But if you do
pnpm exec tsc
the source paths are also different...So something is wrong here, but 3.3.0 of this plugin is definitely most wrong.
System Info
Validations
The text was updated successfully, but these errors were encountered: