Skip to content

Commit f17cd7a

Browse files
committed
Removed wrong extension from TypeScript definition file
1 parent 25d5ba7 commit f17cd7a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-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.2",
2+
"version": "1.4.3",
33
"scripts": {
44
"clean": "rimraf dist test/*/dist test/*/dist-jsdoc",
55
"build:prod": "NODE_ENV=production webpack",

src/index.js

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

145145
if (!this.options.tsdOutputFile) {
146-
this.options.autoTsdOutputFile = path.join(tempDir, `${compilation.chunks[0].files[0]}.d.ts`)
146+
const tsdFileName = path.basename(compilation.chunks[0].files[0], ".js")
147+
this.options.autoTsdOutputFile = path.join(tempDir, `${tsdFileName}.d.ts`)
147148
}
148149

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

0 commit comments

Comments
 (0)