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

Fix monorepo release build #1186

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Fix monorepo release build #1186

merged 1 commit into from
Jun 26, 2023

Conversation

drwpow
Copy link
Contributor

@drwpow drwpow commented Jun 26, 2023

Changes

Fixes #1185. The build triggered by the autorelease is different than the build script dictated by each package. While openapi-typescript was unaffected, openapi-fetch had missing files in the latest release.

How to Review

Will have to release to check 🤞

@changeset-bot
Copy link

changeset-bot bot commented Jun 26, 2023

🦋 Changeset detected

Latest commit: d176dc9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openapi-fetch Patch

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

@@ -9,8 +9,8 @@
},
"scripts": {
"build": "run-p -s build:*",
"build:clean": "del packages/openapi-typescript/dist && del packages/openapi-fetch/dist",
"build:ts": "tsc -b packages/openapi-typescript/tsconfig.build.json packages/openapi-fetch/tsconfig.build.json",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tsc -b is a nice little optimization, but when we’re only building 2 packages, this won’t have much impact at all. Just let each package decide how it builds, even if it’s a second or two slower.

@drwpow drwpow merged commit cd0a653 into main Jun 26, 2023
@drwpow drwpow deleted the fix-release-build branch June 26, 2023 23:10
@github-actions github-actions bot mentioned this pull request Jun 26, 2023
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.

CJS not in bundle after latest PR
1 participant