gts
gts copied to clipboard
no-unpublished-import no longer throws an error by default
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"
],
I'll look into this.
It seems like this is the proper fix: https://stackoverflow.com/questions/67551956/node-no-unpublished-import-chai-is-not-published/78616594#78616594
Interesting but in my initial test that doesn't seem to work in our case