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(web-styles): publish the dist subdirectory #152

Merged
merged 1 commit into from Jul 1, 2022

Conversation

driimus
Copy link
Contributor

@driimus driimus commented Jun 29, 2022

Fixes the release workflow, which currently fails for the web-styles package because the publish command targets the dist folder, and dist/package.json points to /dist/dist, a directory that doesn't exist. Haven't looked into why looking for a package.json file in dist/dist doesn't produce an error, but transforming dist/package.json should fix the issue.

I have tried it out locally against verdaccio and changeset publish worked as expected. Feel free to close the PR if you have different plans for fixing the issue, I'm more interested in letting you know what went wrong.

Why only web-styles?

Not 100% sure as to why swisspost-intranet-header doesn't have the same issue, but my guess is:
https://github.com/swisspost/common-web-frontend/blob/9203419db831f4eca3fca92b3f6b55194e0701e4/packages/angular-components/projects/swisspost-intranet-header/package.json#L9
When the publish command runs in dist/swisspost-intranet-header, it will end up pointing to the current directory, meaning that the relative path ends up being correct.

Context

I had a similar issue as the one described in changesets/action#191 (in my case, the failure was TypeScript compilation errors).

The difference is that mine would be fixable by changesets/changesets#844, because pnpm does redirect compilation errors to stdout by default (can be overridden by use-stderr in .npmrc).

@changeset-bot
Copy link

changeset-bot bot commented Jun 29, 2022

⚠️ No Changeset found

Latest commit: 1f2f264

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@gfellerph
Copy link
Member

@driimus absolutely amazing, thank you so much for taking the time to investigate and fix the issue. Also, you are our first external contributor. Please accept my humble offering of 💯 fake internet points.

We're planning to improve the web-styles situation with #143, but until then, I'm glad to try your fix.

@driimus
Copy link
Contributor Author

driimus commented Jul 1, 2022

Whoops, forgot to commit the imports. Should be good now.

@sonarcloud
Copy link

sonarcloud bot commented Jul 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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

2 participants