-
Notifications
You must be signed in to change notification settings - Fork 35
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
Swap out yarn for pnpm #795
Open
daniel-heppner-ibigroup
wants to merge
39
commits into
opentripplanner:master
Choose a base branch
from
ibi-group:pnpm-workspaces
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
e855947
pnpm workspaces and new lerna
daniel-heppner-ibigroup 45338ad
add react-intl decorators
daniel-heppner-ibigroup 9cf10e4
docs: update readme
daniel-heppner-ibigroup 20d5471
Merge branch 'master' into pnpm-workspaces
daniel-heppner-ibigroup ffbb59a
update action
daniel-heppner-ibigroup e33390e
replace yarn references with pnpm
daniel-heppner-ibigroup 56aa1ea
add pnpm to cache
daniel-heppner-ibigroup 7ab6a19
add install pnpm step
daniel-heppner-ibigroup d700b2f
add install deps step
daniel-heppner-ibigroup 564abe9
use correct version of pnpm
daniel-heppner-ibigroup 3090f8c
add pnpm to codespell exclude
daniel-heppner-ibigroup cc86b9a
add build packages step
daniel-heppner-ibigroup 3dfbf79
fix issues with chroma and unit tests
daniel-heppner-ibigroup 29bf375
delete unneeded snapshots
daniel-heppner-ibigroup 13438ed
downgrade test runner and update snapshots
daniel-heppner-ibigroup 8a1483c
Merge branch 'master' into pnpm-workspaces
danielhep 431cfc8
add preinstall command to build packages
danielhep 3a8ba11
change preinstall to postinstall
danielhep 09221f7
remove build packages step
danielhep d1ae0f7
feat(package.json): move maplibre-gl to peer dependencies
miles-grant-ibigroup cfe8a5a
chore: ignore .tgz package archives in .gitignore
danielhep db5e491
docs: update README with pnpm commands and package dependency workflow
danielhep 0a88030
Merge branch 'master' into pnpm-workspaces
danielhep 656c9ce
chore: enforce pnpm usage with preinstall script
danielhep 887c7ff
add pnpm pack-all script
danielhep 9ab4097
Merge branch 'master' into pnpm-workspaces
danielhep 7b05648
update snapshots
danielhep 7a18f67
replace semantic-release-npm with pnpm
danielhep ec9fed0
fix: fix typo in releaserc
danielhep 8643ba3
try a different pnpm plugin
danielhep 93fb2c5
fix: try upgrading semantic-release
danielhep ab791ce
fix: upgrade all semantic release stuff
danielhep 566fe24
semantic release config not working right
danielhep e9e0988
move semantic release extends to config
danielhep ff33863
fix: attempt to get semantic release to read its config
danielhep 98234f9
try adding npm token to npmrc
danielhep dbab2b5
add fallback for npm token
danielhep 3adf999
try random solution from github
danielhep b76824a
fix: use -e cli arugment to add monorepo support
danielhep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node-linker=hoisted | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"packages": ["packages/*"], | ||
"npmClient": "yarn", | ||
"userWorkspaces": true, | ||
"npmClient": "pnpm", | ||
"version": "independent" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,10 @@ | |
"version": "0.0.1", | ||
"private": true, | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=12", | ||
"pnpm": ">=8" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"packageManager": "[email protected]", | ||
"resolutions": { | ||
"react": "18.2.0", | ||
"react-animate-height": "3.0.4" | ||
|
@@ -17,7 +16,10 @@ | |
"@babel/core": "^7.10", | ||
"@babel/plugin-proposal-class-properties": "^7.10", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", | ||
"@babel/plugin-proposal-private-property-in-object": "^7.14.0", | ||
"@babel/plugin-proposal-private-methods": "^7.18.6", | ||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11", | ||
"@babel/plugin-transform-private-methods": "^7.23.3", | ||
"@babel/plugin-transform-private-property-in-object": "^7.23.4", | ||
"@babel/plugin-transform-runtime": "^7.14.5", | ||
"@babel/preset-env": "^7.10", | ||
"@babel/preset-react": "^7.10", | ||
|
@@ -39,7 +41,7 @@ | |
"@storybook/react": "7.6.17", | ||
"@storybook/react-webpack5": "7.6.17", | ||
"@storybook/storybook-deployer": "^2.8.10", | ||
"@storybook/test-runner": "^0.17.0", | ||
"@storybook/test-runner": "^0.16.0", | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^15.0.0", | ||
"@types/styled-components": "^5.1.9", | ||
|
@@ -74,15 +76,16 @@ | |
"jest-styled-components": "^7.0.5", | ||
"js-yaml": "^4.1.0", | ||
"json-loader": "^0.5.7", | ||
"lerna": "^3.18.4", | ||
"lerna": "^8.1.9", | ||
"lint-staged": "^8.2.0", | ||
"msw": "^2.3.1", | ||
"nock": "^11.7.0", | ||
"prettier": "^1.19.1", | ||
"puppeteer": "^10.2.0", | ||
"querystring-es3": "^0.2.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-intl": "^5.24.6", | ||
"react-intl": "^6.8.4", | ||
"react-test-renderer": "^16.14.0", | ||
"semantic-release": "^17.1.1", | ||
"semantic-release-monorepo": "^7.0.2", | ||
|
@@ -103,32 +106,33 @@ | |
"yaml-sort": "^2.0.0" | ||
}, | ||
"scripts": { | ||
"bootstrap": "lerna bootstrap --use-workspaces", | ||
"bootstrap": "pnpm install", | ||
"build:cjs": "lerna exec --parallel -- babel --extensions '.js,.ts,.tsx,.snap' --ignore **/*.story.js,**/*.story.ts,**/*.story.d.ts,**/*.story.tsx,**/*.spec.js,**/*.spec.ts,**/*.test.js,**/*.test.ts,**/__tests__/**,**/__unpublished__/**,**/*.snap --ignore **/__tests__/** -D --no-copy-ignored --root-mode upward --source-maps true src -d lib", | ||
"build:esm": "lerna exec --parallel -- cross-env BABEL_ENV=esm babel --extensions '.js,.ts,.tsx,.snap' --ignore **/*.story.js,**/*.story.ts,**/*.story.d.ts,**/*.story.tsx,**/*.spec.js,**/*.spec.ts,**/*.test.js,**/*.test.ts,**/__tests__/**,**/__unpublished__/**,**/*.snap --ignore **/__tests__/** -D --no-copy-ignored --root-mode upward --source-maps true src -d esm", | ||
"check:i18n-all": "node packages/scripts/lib/run-validate-i18n.js packages/**/src packages/**/i18n", | ||
"check:i18n-en-fr": "node packages/scripts/lib/run-validate-i18n.js packages/**/src packages/**/i18n/en-US.yml packages/**/i18n/fr.yml", | ||
"clean": "git clean -Xdf", | ||
"prepublish": "yarn typescript && yarn build:cjs && yarn build:esm", | ||
"prepublish": "pnpm typescript && pnpm build:cjs && pnpm build:esm", | ||
"check-eslint-config": "eslint --print-config jestconfig.js | eslint-config-prettier-check", | ||
"coverage": "jest --coverage", | ||
"deploy-storybook": "storybook-to-ghpages", | ||
"dev": "storybook dev -p 5555", | ||
"predev": "yarn", | ||
"postinstall": "pnpm prepublish", | ||
"predev": "pnpm install", | ||
"build-storybook": "storybook build", | ||
"lint:js": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-pattern esm --ignore-pattern lib --ignore-pattern node_modules --ignore-pattern storybook-static --quiet", | ||
"lint:graphql": "eslint . --ext .graphql --ignore-pattern esm --ignore-pattern lib --ignore-pattern node_modules --ignore-pattern storybook-static", | ||
"lint:fixjs": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-pattern esm --ignore-pattern lib --ignore-pattern node_modules --ignore-pattern storybook-static --fix", | ||
"lint:styles": "stylelint \"packages/**/!(*.d).{j,t}s{,x}\"", | ||
"lint": "yarn lint:js && yarn lint:styles && yarn lint:graphql", | ||
"lint": "pnpm lint:js && pnpm lint:styles && pnpm lint:graphql", | ||
"prettier": "prettier --write \"**/*.{json,md,yml}\"", | ||
"semantic-release": "lerna exec --concurrency 1 -- semantic-release -e semantic-release-monorepo", | ||
"test": "yarn lint:js && yarn lint:styles && yarn check:i18n-en-fr && yarn typescript && yarn unit && yarn test-storybook && yarn a11y-test", | ||
"test": "pnpm lint:js && pnpm lint:styles && pnpm check:i18n-en-fr && pnpm typescript && pnpm unit && pnpm test-storybook && pnpm a11y-test", | ||
"typescript": "lerna run tsc", | ||
"unit": "jest --testPathIgnorePatterns a11y .d.ts", | ||
"update-internal-dependencies": "node scripts/update-internal-dependencies.js", | ||
"test-storybook": "test-storybook --url http://localhost:5555", | ||
"update-snapshots": "yarn build-storybook; npx concurrently -k -s first -n \"SB,TEST\" \"npx http-server storybook-static --port 5555 --silent\" \"npx wait-on tcp:5555 && yarn test-storybook --url http://localhost:5555 -u\"" | ||
"update-snapshots": "pnpm build-storybook; npx concurrently -k -s first -n \"SB,TEST\" \"npx http-server storybook-static --port 5555 --silent\" \"npx wait-on tcp:5555 && pnpm test-storybook --url http://localhost:5555 -u\"" | ||
}, | ||
"eslintConfig": { | ||
"env": { | ||
|
@@ -255,7 +259,7 @@ | |
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged", | ||
"pre-push": "yarn check-eslint-config && yarn lint" | ||
"pre-push": "pnpm check-eslint-config && pnpm lint" | ||
} | ||
}, | ||
"lint-staged": { | ||
|
@@ -270,7 +274,7 @@ | |
], | ||
"*.graphql": [ | ||
"prettier --write", | ||
"yarn lint:graphql --fix", | ||
"pnpm lint:graphql --fix", | ||
"git add" | ||
], | ||
"!(.github/**).{yml,yaml}": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,13 @@ | |
"private": false, | ||
"dependencies": { | ||
"mapbox-gl": "npm:[email protected]", | ||
"maplibre-gl": "^2.1.9", | ||
"react-map-gl": "^7.0.15", | ||
"@opentripplanner/building-blocks": "^2.0.0" | ||
"@opentripplanner/building-blocks": "workspace:*" | ||
}, | ||
"peerDependencies": { | ||
"maplibre-gl": "^2.1.9", | ||
"react": "^18.2.0", | ||
"@opentripplanner/types": "^6.5.2", | ||
"@opentripplanner/types": "workspace:*", | ||
"styled-components": "^5.3.0" | ||
}, | ||
"repository": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite a few missing reference changes in here, especially around workspace package version management