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

Build/pnpm #21

Merged
merged 2 commits into from
Jan 27, 2024
Merged

Build/pnpm #21

merged 2 commits into from
Jan 27, 2024

Conversation

matijs
Copy link
Member

@matijs matijs commented Jan 25, 2024

  • Add .npmrc with save-exact=true and save-prefix=
  • Convert to pnpm from npm
    • Remove package-lock.json
    • Add pnpm-lock.yaml
  • Update workflows/continuous-integration.yml
    • Replace the use of npm with pnpm
    • Update actions to their latest versions where possible
    • Precede the actions/setup-node step by the pnpm/setup-action step so the actions/setup-node can automatically set up the cache for this step
  • Remove and re-add all dependencies that were not saved with their exact version
  • wp-prettier is a drop-in replacement for prettier and should be called as prettier instead of wp-prettier
  • Fix all linting issues

@matijs matijs requested a review from Robbert January 25, 2024 10:18
@matijs matijs force-pushed the build/pnpm branch 2 times, most recently from 61c4738 to 6811ed6 Compare January 25, 2024 11:38
.npmrc Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
.npmrc Outdated Show resolved Hide resolved
- Add `save-exact=true` and `save-prefix=` to .npmrc
- Add `public-hoist-pattern[]` to .npmrc
- Convert to pnpm from npm
  - Remove package-lock.json
  - Add pnpm-lock.yaml
- Update workflows/continuous-integration.yml
  - Replace the use of npm with pnpm
  - Update actions to their latest versions where possible
  - Precede the `actions/setup-node` step by the `pnpm/setup-action`
    step so the `actions/setup-node` can automatically set up the cache
    for this step

Something about hoisting
- Remove and re-add all dependencies that were not saved with their
  exact version
- wp-prettier is a drop-in replacement for prettier and should be called
  as prettier instead of wp-prettier
- Fix all linting issues
- Update .npmpackagejsonlintrc.json to allow
  `@nl-design-system-community`
@Robbert Robbert merged commit b8e7093 into main Jan 27, 2024
8 checks passed
@Robbert Robbert deleted the build/pnpm branch January 27, 2024 09:33
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.

2 participants