Skip to content

Divergence from tsc wrt importing package.json #61

@shellscape

Description

@shellscape

Using tsc in the raw, when we have an import of package.json within the code, tsc will copy that package.json file to the appropriate relative path in outPath.

e.g. if I have import pkg from '../../package.json' within src/thing/index.ts and "outDir": "dist" in tsconfig.json, dist/package.json will be created by tsc.

That behavior is not emulated with tshy and the file must be copied in a build step.

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