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

Use npm workspaces #822

Merged

Conversation

ChristianMurphy
Copy link
Member

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

Leverage npm's built in workspaces feature https://docs.npmjs.com/cli/v7/using-npm/workspaces to manage the monorepo.

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Aug 25, 2021
@ChristianMurphy
Copy link
Member Author

Test failure also happens on current main version.
And is likely related to one of the recent micromark updates.

@ChristianMurphy ChristianMurphy added the 🏗 area/tools This affects tooling label Aug 25, 2021
Copy link
Member

@wooorm wooorm left a comment

Choose a reason for hiding this comment

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

Fix on main: 5c79b32

Also: probably needs an npm install -g npm in main.yml to get Erbium to work

package.json Outdated Show resolved Hide resolved
@ChristianMurphy ChristianMurphy force-pushed the build/replace-lerna-with-workspaces branch from 73d0c10 to 5e3cd43 Compare August 26, 2021 13:42
Comment on lines +32 to +37
"workspaces": [
"packages/remark-parse",
"packages/remark-stringify",
"packages/remark",
"packages/remark-cli"
],
Copy link
Member Author

Choose a reason for hiding this comment

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

build order matters here, when specified as packages/* it goes out of order https://github.com/remarkjs/remark/runs/3433219485?check_suite_focus=true#step:6:16

@codecov-commenter

This comment has been minimized.

"packages/remark-parse",
"packages/remark-stringify",
"packages/remark",
"packages/remark-cli"
Copy link
Member

Choose a reason for hiding this comment

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

Oh so this fixes order?!
So that’s it! I had similar problems before: https://twitter.com/wooorm/status/1416491869488492546. PR to fix it linked from there: npm/arborist#303

@wooorm wooorm changed the title build: replace lerna with npm workspaces Use npm workspaces Aug 26, 2021
@wooorm wooorm merged commit 35811dc into remarkjs:main Aug 26, 2021
@wooorm wooorm added the 💪 phase/solved Post is done label Aug 26, 2021
@ChristianMurphy ChristianMurphy deleted the build/replace-lerna-with-workspaces branch August 26, 2021 13:45
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Aug 26, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏗 area/tools This affects tooling 💪 phase/solved Post is done
Development

Successfully merging this pull request may close these issues.

3 participants