-
Notifications
You must be signed in to change notification settings - Fork 403
chore(repo): Add DTS generation as separate script #5189
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
chore(repo): Add DTS generation as separate script #5189
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 9752719 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
| "compilerOptions": { | ||
| "allowSyntheticDefaultImports": true, | ||
| "baseUrl": ".", | ||
| "declaration": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When touching the existing tsconfig.json I removed properties that are defined in tsconfig.declarations.json, just cleaning things up
| "build": "tsup --env.NODE_ENV production", | ||
| "build:analyze": "tsup --env.NODE_ENV production --metafile; open https://esbuild.github.io/analyze/", | ||
| "build:declarations": "tsc --env.NODE_ENV production -p tsconfig.json", | ||
| "build:declarations": "tsc -p tsconfig.declarations.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--env.NODE_ENV isn't valid for tsc
Co-authored-by: Jacek Radko <jacek@clerk.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎
Description
This is a replacement for #5122
In this PR I'm not changing the published output of our packages but rather add a separate build script to our root
package.json(and adjusting the respective scripts in the individual packages).It's on purpose that the script isn't integrated into our CI yet and only touches a couple of SDKs, this and other things will follow in another PR.
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change