Skip to content

tsc --emitDeclarationOnly argument is ignored #33

Description

@thebanjomatic

Using "typescript": "npm:typescript-native-bridge@^v6.0.3-bridge.6.tsgo.7.0.2" and invoking tsc --emitDeclarationOnly results in .js files being generated along-side of the src files.

tsconfig.json options:

{
  "compilerOptions": {
    "declaration": true,
    "declarationDir": "dist",
    "module": "preserve",
    "moduleResolution": "bundler",
    "noUncheckedIndexedAccess": true,
    "rootDir": "src",
    "skipLibCheck": true,
  },
  "include": ["src/**/*.ts"]
}

--noEmit appears to work fine as does adding "noEmit": true in the tsconfig.json, but this is still an unexpected divergence in behavior from both typescript 6.0.3 and 7.0.2 versions.

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