Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: simplify monorepo with package.json publishConfig overrides #101

Merged
merged 3 commits into from
Aug 27, 2023

Conversation

manzt
Copy link
Owner

@manzt manzt commented Aug 27, 2023

Right now you need to run TypeScript in watch mode with vitest to see changes updated across packages. This PR uses the publishConfig in the package.json to link TypeScript (and vitest) to the TypeScript subpackage source within the monorepo. This means that we don't need to recompile TypeScript for vitest to work, and instead vitest will be tracking changes across all files in the repo. However, when we publish to NPM we update the package.json package exports to point to the build typescript code.

@manzt manzt changed the title feat: use publishConfig to alias typescript types feat: simplify monorepo with package.json publishConfig overrides Aug 27, 2023
@manzt manzt merged commit c4d9d73 into main Aug 27, 2023
2 checks passed
@manzt manzt deleted the tsconfig branch September 26, 2023 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant