-
-
Notifications
You must be signed in to change notification settings - Fork 434
Closed
Description
I am creating a new issue here as discussed in typescript Issue
I am using typescript version 1.9.0-dev.20160412 and ts-loader version 0.8.2 as below
My tsconfig.json is as below:
{
"compileOnSave": false,
"buildOnSave": false,
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"moduleResolution": "node",
"preserveConstEnums": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noImplicitAny": false,
"noEmitOnError": false,
"forceConsistentCasingInFileNames": true,
"removeComments": false,
"sourceMap": true,
"jsx": "react",
"outDir": "./lib",
"declaration": true
},
"exclude": [
"node_modules",
"dist",
"typings/browser",
"typings/browser.d.ts"
]
}My project folder structure is as below:
work/
`-- projects
`-- projectx
|-- dist
|-- src
`-- tsconfig.jsonI am trying to compile and generate .d.ts files inside the 'lib' dir but this creates the .d.ts file inside folder with parent attached to lib i.e
work/
`-- projects
`-- projectx
|-- src
|-- dist
| `-- work
| `-- projects
| `-- projectx
| `-- dist
| `-- lib
| `-- src
| `-- index.d.ts
`-- tsconfig.jsonI was expecting it to be as :
work/
`-- projects
`-- projectx
|-- dist
| `-- lib
| `-- src
| `-- index.d.ts
|-- src
`-- tsconfig.json dist dir above is given in the webpack.config.js as below:
output: {
path: path.join(__dirname, '/dist'),
filename: outputFile,
library: libraryName,
libraryTarget: 'umd',
umdNamedDefine: true
}Sample project with the above mentioned error Sample Project.
It works as expected with the version 0.8.0 of ts-loader
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels