kentcdodds / kentcdodds/kcd-scripts

tsconfig conflicts with build

Open
#197 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
889
Forks
205
PR merge metrics
No merged PRs in 30d

Description

`shared-tsconfig` allow importing modules from `src` per module name.

https://github.com/kentcdodds/kcd-scripts/blob/5c6994534ab4438d4b7cf3ee9cea6981740f2298/shared-tsconfig.json#L13

The IDE picks this up and suggests using non-relative imports.

`kcd-scripts build` does not support the import from `baseUrl` and resulting build is corrupt.

### Suggested solution:

Remove the `baseURL`.

Contributor guide

Open the contributing guide

Research direction

Open shared-tsconfig.json at line 13 and inspect how baseUrl enables non-relative imports. Remove baseUrl, then run kcd-scripts build and confirm the build no longer produces corrupt output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
build-system, cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.