Steps to reproduce:
- Run
npx gts init
- Use default options
- Add the following code at the top of
index.ts
import * as gts from 'gts';
- Run
npm run lint
Expected behaviour
It throws an error:
1:22 error "gts" is not published n/no-unpublished-import
Actual behaviour
There is no error being thrown.
Additional information
When adding src to the files array in the package.json, the behaviour is fixed, though it is debatable whether this is a desirable fix.
"files": [
"build/src",
"src"
],