Skip to content

Commit 25d5ba7

Browse files
committed
Fixed TypeScript definition file name
1 parent 78c809a commit 25d5ba7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.4.1",
2+
"version": "1.4.2",
33
"scripts": {
44
"clean": "rimraf dist test/*/dist test/*/dist-jsdoc",
55
"build:prod": "NODE_ENV=production webpack",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default class {
143143
configBase.plugins = [exportDefaultModulePath]
144144

145145
if (!this.options.tsdOutputFile) {
146-
this.options.autoTsdOutputFile = path.join(tempDir, `${compilation.chunks[0].name}.d.ts`)
146+
this.options.autoTsdOutputFile = path.join(tempDir, `${compilation.chunks[0].files[0]}.d.ts`)
147147
}
148148

149149
const [htmlConfigPath, tsdConfigPath] = await Promise.all([

0 commit comments

Comments
 (0)