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 pnpm autoinstall #8788

Merged
merged 3 commits into from Mar 25, 2023
Merged

Fix pnpm autoinstall #8788

merged 3 commits into from Mar 25, 2023

Conversation

mischnic
Copy link
Member

@mischnic mischnic commented Jan 24, 2023

Closes #8304
Closes #8782

pnpm 7 (release May 2022) removed the -W flag and instead added -w which always installs in the workspace root (regardless of cwd).

https://pnpm.io/workspaces:

A workspace must have a pnpm-workspace.yaml file in its root

So I've used that to determine if -w should be added.

This does break backwards compatibility of autoinstall with pnpm <7 in monorepos, though there are probably not many people on older versions? Similar to our Yarn handling, check the major version of pnpm and add the correct flag based on that

@parcel-benchmark
Copy link

parcel-benchmark commented Jan 24, 2023

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 2.06s +43.00ms
Cached 433.00ms +10.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 326.00ms +23.00ms ⚠️
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 327.00ms +24.00ms ⚠️
dist/modern/parcel.7cdb0fad.webp 102.94kb +0.00b 327.00ms +24.00ms ⚠️
dist/legacy/index.7d75205b.js 1.63kb +0.00b 552.00ms +53.00ms ⚠️
dist/legacy/index.d20f91ee.js 1.19kb +0.00b 552.00ms +53.00ms ⚠️
dist/modern/index.1ee30fe4.js 1.12kb +0.00b 552.00ms +55.00ms ⚠️
dist/legacy/index.html 826.00b +0.00b 632.00ms +68.00ms ⚠️
dist/modern/index.html 749.00b +0.00b 631.00ms +68.00ms ⚠️
dist/legacy/index.b8ae99ba.css 94.00b +0.00b 339.00ms +25.00ms ⚠️
dist/modern/index.31cedca9.css 94.00b +0.00b 338.00ms +24.00ms ⚠️

Cached Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 331.00ms +17.00ms ⚠️
dist/legacy/index.7d75205b.js 1.63kb +0.00b 558.00ms +46.00ms ⚠️
dist/legacy/index.d20f91ee.js 1.19kb +0.00b 559.00ms +46.00ms ⚠️
dist/modern/index.1ee30fe4.js 1.12kb +0.00b 558.00ms +46.00ms ⚠️
dist/legacy/index.html 826.00b +0.00b 634.00ms +60.00ms ⚠️
dist/modern/index.html 749.00b +0.00b 633.00ms +59.00ms ⚠️
dist/legacy/index.b8ae99ba.css 94.00b +0.00b 345.00ms +18.00ms ⚠️

React HackerNews ✅

Timings

Description Time Difference
Cold 9.08s -157.00ms
Cached 561.00ms -6.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/index.js 463.02kb +0.00b 1.35s -88.00ms 🚀
dist/logo.c5bb83f1.png 246.00b +0.00b 439.00ms -27.00ms 🚀

Cached Bundles

No bundle changes detected.

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 1.35m -42.00ms
Cached 2.62s -64.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/index.0976f9cb.js 3.83mb +0.00b 21.05s -1.21s 🚀
dist/pdfRenderer.4f3765de.js 1.11mb +0.00b 16.00s -955.00ms 🚀
dist/editorView.19055bae.js 622.48kb +0.00b 17.13s -932.00ms 🚀
dist/refractor.c460668c.js 601.81kb +0.00b 14.42s -759.00ms 🚀
dist/media-viewer.bd165005.js 542.15kb +0.00b 14.42s +3.39s ⚠️
dist/popup.2cbde099.js 329.78kb +0.00b 14.42s -756.00ms 🚀
dist/ConfigPanelFieldsLoader.f06a6b36.js 312.08kb +0.00b 10.47s -568.00ms 🚀
dist/EmojiPickerComponent.a25bd8e7.js 196.67kb +0.00b 14.42s -743.00ms 🚀
dist/card.501ecffa.js 143.52kb +0.00b 10.46s -571.00ms 🚀
dist/ConfigPanelFieldsLoader.e1ae433f.js 83.45kb +0.00b 10.47s -567.00ms 🚀
dist/ElementBrowser.3bcad544.js 65.85kb +0.00b 10.47s -566.00ms 🚀
dist/esm.6df2a542.js 64.51kb +0.00b 14.42s -757.00ms 🚀
dist/archive.503fa405.js 61.48kb +0.00b 14.42s -759.00ms 🚀
dist/esm.945b66be.js 60.94kb +0.00b 10.46s -570.00ms 🚀
dist/DatePicker.3a60f244.js 48.38kb +0.00b 7.94s -417.00ms 🚀
dist/esm.bd488cd8.js 40.24kb +0.00b 14.42s -755.00ms 🚀
dist/DatePicker.b0a4d8f4.js 25.21kb +0.00b 7.94s -417.00ms 🚀
dist/smartMediaEditor.8713e5a6.js 22.24kb +0.00b 14.42s -755.00ms 🚀
dist/esm.a10f92b5.js 21.06kb +0.00b 14.42s -755.00ms 🚀
dist/ConfigPanelFieldsLoader.ef739802.js 16.14kb +0.00b 10.47s -568.00ms 🚀
dist/ui.2de0ef21.js 14.88kb +0.00b 10.47s -567.00ms 🚀
dist/ConfigPanelFieldsLoader.c68d84ab.js 14.25kb +0.00b 10.47s -568.00ms 🚀
dist/dropzone.4b8113c9.js 14.00kb +0.00b 14.42s -756.00ms 🚀
dist/pdfRenderer.187ba54d.js 12.21kb +0.00b 10.46s -575.00ms 🚀
dist/dropzone.ae8c8d79.js 11.95kb +0.00b 14.42s -756.00ms 🚀
dist/Toolbar.7fda8a1b.js 9.30kb +0.00b 14.42s -755.00ms 🚀
dist/clipboard.ef3ddc39.js 8.22kb +0.00b 14.42s -756.00ms 🚀
dist/mobile-upload.136dd5cb.js 8.08kb +0.00b 10.47s -567.00ms 🚀
dist/mobile-upload.0bdb676c.js 8.08kb +0.00b 10.47s -566.00ms 🚀
dist/mobile-upload.31f0e326.js 8.08kb +0.00b 14.42s -755.00ms 🚀
dist/browser.0a7fd453.js 7.48kb +0.00b 14.42s -756.00ms 🚀
dist/index.6d0e3617.js 7.32kb +0.00b 14.42s -754.00ms 🚀
dist/media-viewer-analytics-error-boundary.e6109a6a.js 3.46kb +0.00b 14.42s -756.00ms 🚀
dist/media-picker-analytics-error-boundary.627962a5.js 3.46kb +0.00b 14.42s -755.00ms 🚀
dist/media-card-analytics-error-boundary.ec5ff8ee.js 3.45kb +0.00b 14.42s -760.00ms 🚀
dist/ru.896915b9.js 2.94kb +0.00b 10.46s -570.00ms 🚀
dist/uk.48c97550.js 2.89kb +0.00b 10.47s -567.00ms 🚀
dist/codeViewerRenderer.915ef6b3.js 2.84kb +0.00b 10.46s -575.00ms 🚀
dist/th.31044730.js 2.73kb +0.00b 10.47s -568.00ms 🚀
dist/ResourcedEmojiComponent.04d67e5e.js 2.69kb +0.00b 7.94s -417.00ms 🚀
dist/pl.5f36d63e.js 2.38kb +0.00b 7.94s -417.00ms 🚀
dist/cs.971d1d60.js 2.36kb +0.00b 7.94s -419.00ms 🚀
dist/de.6efbb375.js 2.30kb +0.00b 7.94s -419.00ms 🚀
dist/fr.af2c92ae.js 2.25kb +0.00b 7.94s -417.00ms 🚀
dist/es.23f0c164.js 2.25kb +0.00b 7.94s -418.00ms 🚀
dist/hu.8323f36b.js 2.23kb +0.00b 7.94s -417.00ms 🚀
dist/fi.7ed4b1b5.js 2.22kb +0.00b 7.94s -418.00ms 🚀
dist/ja.5653161c.js 2.22kb +0.00b 7.94s -417.00ms 🚀
dist/vi.d8dcb67a.js 2.22kb +0.00b 10.47s -567.00ms 🚀
dist/pt_BR.eccfad73.js 2.19kb +0.00b 7.94s -2.79s 🚀
dist/tr.46f26598.js 2.16kb +0.00b 10.47s -568.00ms 🚀
dist/ko.2cf2bbda.js 2.11kb +0.00b 7.94s -417.00ms 🚀
dist/sv.13d93533.js 2.10kb +0.00b 10.46s -570.00ms 🚀
dist/it.601d375a.js 2.10kb +0.00b 7.94s -417.00ms 🚀
dist/nb.b300dd3e.js 2.09kb +0.00b 7.94s -417.00ms 🚀
dist/da.21385cf2.js 2.07kb +0.00b 7.94s -418.00ms 🚀
dist/nl.3999ea58.js 2.07kb +0.00b 7.94s -417.00ms 🚀
dist/zh_TW.afaf6222.js 1.98kb +0.00b 10.47s -567.00ms 🚀
dist/zh.fcdc32bb.js 1.96kb +0.00b 10.47s -567.00ms 🚀
dist/feedback.fd1f6260.js 1.89kb +0.00b 7.94s -418.00ms 🚀
dist/workerHasher.ef49a7fc.js 1.72kb +0.00b 10.47s -566.00ms 🚀
dist/workerHasher.9d5fe27b.js 1.72kb +0.00b 10.47s -566.00ms 🚀
dist/workerHasher.13de9709.js 1.72kb +0.00b 14.42s -756.00ms 🚀
dist/workerHasher.99c37306.js 1.72kb +0.00b 14.42s -755.00ms 🚀
dist/workerHasher.c5ba46bc.js 1.72kb +0.00b 14.42s -755.00ms 🚀
dist/heading6.974f167d.js 1.49kb +0.00b 7.94s -417.00ms 🚀
dist/heading5.023a8f1f.js 1.36kb +0.00b 7.94s -417.00ms 🚀
dist/expand.801fc3a0.js 1.31kb +0.00b 7.94s -418.00ms 🚀
dist/sk.101f1705.js 786.00b +0.00b 10.46s -570.00ms 🚀
dist/pt_PT.402f9c4e.js 765.00b +0.00b 7.95s -416.00ms 🚀
dist/et.69382942.js 763.00b +0.00b 7.94s -418.00ms 🚀
dist/simpleHasher.f1f58b0a.js 687.00b +0.00b 10.47s -567.00ms 🚀
dist/simpleHasher.09f4d713.js 687.00b +0.00b 10.47s -566.00ms 🚀
dist/simpleHasher.a19114f9.js 687.00b +0.00b 14.42s -756.00ms 🚀
dist/simpleHasher.023b58fa.js 687.00b +0.00b 14.42s -755.00ms 🚀
dist/simpleHasher.97222d8a.js 687.00b +0.00b 14.42s -755.00ms 🚀
dist/is.5b945719.js 625.00b +0.00b 7.94s -417.00ms 🚀
dist/ro.a6eff34a.js 612.00b +0.00b 7.95s -2.79s 🚀
dist/en_GB.61f7112a.js 602.00b +0.00b 7.94s -418.00ms 🚀
dist/en.41261459.js 599.00b +0.00b 7.94s -418.00ms 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/media-viewer.bd165005.js 542.15kb +0.00b 10.61s -3.98s 🚀

Three.js ✅

Timings

Description Time Difference
Cold 6.34s +71.00ms
Cached 339.00ms -26.00ms 🚀

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

Click here to view a detailed benchmark overview.

@devongovett
Copy link
Member

Looks like pnpm 6 might still get a significant number of downloads (> 100k per week)? https://www.npmjs.com/package/pnpm?activeTab=versions

@devongovett devongovett merged commit 379e02c into v2 Mar 25, 2023
11 of 16 checks passed
@devongovett devongovett deleted the fix-pnpm-autoinstall branch March 25, 2023 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants