google / google/gts

no-unpublished-import no longer throws an error by default

Open
#887 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.3k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

## Steps to reproduce:

1. Run `npx gts init`
2. Use default options
3. Add the following code at the top of `index.ts`
``` ts
import * as gts from 'gts';
```
4. 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.

```json
"files": [
"build/src",
"src"
],
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.