You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting compilerOptions.declaration=true in tsconfig.json with output.path defined in webpack.config.js incorrectly nests resulting *.d.ts file within output path.
Try ls -R dist to view the output directory. The output files are output.js and a weirdly nested *.d.ts file whose location can be described as follows:
If the global location of the ts-loader-declarations-bug directory is $PACKAGE, the *.d.ts file is located at $PACKAGE/dist/$PACKAGE/input.d.ts.
Expected output
The *.d.ts file should be located at $PACKAGE/dist/input.d.ts.
Miscellaneous
There is also currently no way to change the name of the resulting *.d.ts file.
Environment
ts-loader: 0.8.2
typescript: 1.8.10
webpack: 1.13.1
node: 6.2.2
Operating System: Mac OSX 10.11.5
The text was updated successfully, but these errors were encountered:
Setting
compilerOptions.declaration=true
intsconfig.json
withoutput.path
defined inwebpack.config.js
incorrectly nests resulting *.d.ts file within output path.Minimal example
ts-loader-declarations-bug.zip
package.json
tsconfig.json
webpack.config.js
input.ts
To build:
Current output
Try
ls -R dist
to view the output directory. The output files areoutput.js
and a weirdly nested *.d.ts file whose location can be described as follows:If the global location of the
ts-loader-declarations-bug
directory is$PACKAGE
, the *.d.ts file is located at$PACKAGE/dist/$PACKAGE/input.d.ts
.Expected output
The *.d.ts file should be located at
$PACKAGE/dist/input.d.ts
.Miscellaneous
There is also currently no way to change the name of the resulting *.d.ts file.
Environment
The text was updated successfully, but these errors were encountered: