We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
npx gts init
index.ts
import * as gts from 'gts';
npm run lint
It throws an error:
1:22 error "gts" is not published n/no-unpublished-import
There is no error being thrown.
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.
src
package.json
"files": [ "build/src", "src" ],
The text was updated successfully, but these errors were encountered:
I'll look into this.
Sorry, something went wrong.
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
No branches or pull requests
Steps to reproduce:
npx gts init
index.ts
npm run lint
Expected behaviour
It throws an error:
Actual behaviour
There is no error being thrown.
Additional information
When adding
src
to the files array in thepackage.json
, the behaviour is fixed, though it is debatable whether this is a desirable fix.The text was updated successfully, but these errors were encountered: