Skip to content

Commit

Permalink
Removed wrong extension from TypeScript definition file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaid committed Jan 28, 2019
1 parent 25d5ba7 commit f17cd7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.4.2",
"version": "1.4.3",
"scripts": {
"clean": "rimraf dist test/*/dist test/*/dist-jsdoc",
"build:prod": "NODE_ENV=production webpack",
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ export default class {
configBase.plugins = [exportDefaultModulePath]

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

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

0 comments on commit f17cd7a

Please sign in to comment.