Skip to content

Type-only/Emit-less TS files aren't being checked #725

@aomader

Description

@aomader

Current Behavior

After creating a simple react-with-storybook tsdx project (using create), add the following files:

src/interfaces/test.ts:

export interface Foo {
  bar: asd; // should not compile!
}

src/interfaces/index.ts:

export * from './test';

src/index.tsx:

// ...
export * from './interfaces';

Using this setup, running npm run start "successfully" builds the package, although it should error out due to the above error.

In contrast, when I run tsc --noEmit, the error is successfully recognized.

Expected behavior

When running npm run start, I expect it to catch the error.

Your environment

Software Version(s)
TSDX 0.13.2
TypeScript 3.9.3
npm 6.14.4
Node 14.1.10
Operating System Win10

Find the minimal example from above here:
lib2.zip

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions