Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Declaration file sub-folder issue #193

Open
@MeirionHughes

Description

@MeirionHughes

I have an entry ./source/index.ts,
which correctly compiles to ./dist/index.js,
but for some reason when enable declarations I get ./dist/source/index.d.ts

Is there a way to fix this to ./dist/index.d.ts ? :)

"awesome-typescript-loader": "^2.0.2",
"typescript": "^2.0.0",
"webpack": "^2.1.0-beta.17"

module.exports = {
  entry: {
    index: __dirname + '/source/index'
  },
  output: {
    path: __dirname + '/dist',
    filename: 'index.js'
  },
  resolve: {
    root: __dirname,
    extensions: ['', '.ts', '.js']
  },
  module: {
    loaders: [
      { test: /\.ts$/, loaders: ['awesome-typescript-loader'] }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions