-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
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
issues: When the content of the entry file is export * from "path/to/file", the output declaration file is empty #167
Comments
Additional remarks: {
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"declaration": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": "./",
"strict": false,
"noImplicitAny": false,
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"#kernel": [
"./dist/kernel/#kernel.d.ts"
],
"#src": [
"./src/index.ts"
]
},
"rootDirs": [
"."
],
"types": [
"node"
],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
} |
@aaaaaajie can you create a repro for that please? (so I can run dts-bundle-generator locally without guessing package versions, source files code, etc) |
Sorry,I provided a repro: https://github.com/aaaaaajie/dts-bundle-generator-demo 😋 |
I think you must have known const dtsBundle = require("dts-bundle");
const path = require("path");
dtsBundle.bundle({
name: "#kernel",
main: path.join(__dirname, "../dts-build/server/kernel/", "index.d.ts"),
out: path.join(__dirname, "../dist", "kernel.d.ts")
}); |
@aaaaaajie thanks! As I can see, you use As for |
Example:
kernel/utils.ts
kernel/index.ts
dts-bundle.config.json
command
dts-bundle-generator --config ./dts-bundle.config.json
Output file: ./dist/kernel/kernel.d.ts
This is my first time using this tool. I don't know if the method is wrong or the tool does not support this feature. I hope to get your help. Thanks a lot
The text was updated successfully, but these errors were encountered: