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

Switch JS package manager to pnpm #44167

Merged
merged 23 commits into from
Jul 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5b68ffc
Adjust `package.json`s to pnpm
gzdunek Jul 12, 2024
ba4c7db
Convert resolutions (pnpm doesn't support `**/` syntax)
gzdunek Jul 12, 2024
786e8cb
Convert `yarn.lock` to `pnpm-lock.yaml` with `pnpm import`
gzdunek Jul 12, 2024
36a5c81
Always add `e/web/teleport` workspace to the lockfile
gzdunek Jul 12, 2024
501f69d
Adjust `jest` to new node_modules structure
gzdunek Jul 12, 2024
d0317fd
Adjust `storybook` to new node_modules structure
gzdunek Jul 12, 2024
573ab05
Replace `toHaveStyleRule` with `toHaveStyle`
gzdunek Jul 12, 2024
1b7570c
Adjust README files
gzdunek Jul 12, 2024
8fe8df7
Adjust GHA workflows
gzdunek Jul 12, 2024
77aa17f
Adjust build assets
gzdunek Jul 12, 2024
0412ded
Remove remaining `yarn` mentions
gzdunek Jul 12, 2024
f5b21db
`corepack enable` -> `corepack enable pnpm`
gzdunek Jul 16, 2024
fe09f71
Automatically enable pnpm when running `make build/teleport`
gzdunek Jul 16, 2024
c2b76a9
Merge branch 'refs/heads/master' into gzdunek/pnpm
gzdunek Jul 16, 2024
50536f7
Run `pnpm import` again
gzdunek Jul 16, 2024
f2f17e2
Run `pnpm dedupe`
gzdunek Jul 16, 2024
5012524
Add `yarn.lock` to .gitignore
gzdunek Jul 16, 2024
1440b8f
Link to pnpm installation docs
gzdunek Jul 16, 2024
1c4c344
Add a better comment for `transformIgnorePatterns`
gzdunek Jul 16, 2024
4369088
Make pattern for `shared` stories more specific
gzdunek Jul 16, 2024
46a346a
Change `corepack enable pnpm` in readmes
gzdunek Jul 16, 2024
9181509
Merge branch 'refs/heads/master' into gzdunek/pnpm
gzdunek Jul 19, 2024
d020d8d
Run `pnpm import && pnpm dedupe` again
gzdunek Jul 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ const esModules = [
'd3-color',
'd3-scale',
'd3-interpolate',
'd3-time-format',
'd3-array',
'd3-format',
'd3-time',
'd3-shape',
'd3-path',
'internmap',
'@nivo/bar',
].join('|');

/** @type {import('@jest/types').Config.InitialOptions} */
Expand All @@ -27,7 +29,8 @@ module.exports = {
// '**/packages/design/src/**/*.jsx',
'**/packages/shared/components/**/*.jsx',
],
transformIgnorePatterns: [`/node_modules/(?!${esModules})`],
// https://jestjs.io/docs/configuration#transformignorepatterns-arraystring
transformIgnorePatterns: [`node_modules/(?!.pnpm|${esModules})`],
gzdunek marked this conversation as resolved.
Show resolved Hide resolved
coverageReporters: ['text-summary', 'lcov'],
testPathIgnorePatterns: ['e2e'],
setupFilesAfterEnv: [
Expand Down