atom-typescript icon indicating copy to clipboard operation
atom-typescript copied to clipboard

tsconfig.json "declaration": true but d.ts files not generated

Open jeffschwartz opened this issue 10 years ago • 5 comments

Atom v1.6.0

atom-typescript v8.4.0

My complete tsconfig.json:

{
    "compilerOptions": {
        "target": "es5",
        "module": "commonjs",
        "moduleResolution": "node",
        "isolatedModules": false,
        "jsx": "react",
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true,
        "declaration": true,
        "noImplicitAny": false,
        "removeComments": true,
        "noLib": false,
        "preserveConstEnums": true,
        "suppressImplicitAnyIndexErrors": true,
        "sourceMap": true,
        "outDir": "dist"
    }
}

jeffschwartz avatar Mar 22 '16 00:03 jeffschwartz

same issue, win 10, tsc Version 1.8.10. Pure tsc run from console

{
  "compilerOptions": {
    "rootDir": "./src/ts",
    "outDir": "./local_build/js",
    "outFile": "local_build/js/app.js",
    "declaration": true
  }
}

UPDATE I have no d.ts if I have errors in project. Without compilation errors file apperas

Busyrev avatar Aug 11 '16 14:08 Busyrev

I have same problem (using gulp-typescript and createProject("tsconfig.json")) so I must run tsc manually and all is ok after that ...

scippio avatar Nov 15 '16 00:11 scippio

@scippio are you manually piping tsProject.dts in your gulpfile? See gulp-typescript's readme

dylanrenwick avatar Nov 20 '19 16:11 dylanrenwick

This issue has been marked as stale because it did not have any activity for the last 90 days or more. Remove the stale label or comment or this will be closed in 14 days

github-actions[bot] avatar Feb 19 '20 00:02 github-actions[bot]

Pretty sure this issue is long outdated.

lierdakil avatar Feb 20 '20 13:02 lierdakil