-
Notifications
You must be signed in to change notification settings - Fork 4k
🏗 Migrate amphtml
package management from yarn
to npm
#30694
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
Conversation
Hey @estherkim! These files were changed:
Hey @wassgha! These files were changed:
Hey @danielrozenberg! These files were changed:
|
This PR is now ready for preliminary review. Once reviewed and approved, I'll coordinate the merging of this PR with internal release system changes. |
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.
A few minor comments, but overall looks great!
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.
Excellent comments all around! All addressed, except for the python deprecation and Java removal changes, which are out of scope here.
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.
Updated comment re: flamegraph gitignore
@honeybadgerdontcare for owners approval of changes in |
|
We don't run the link-checker for all files, all the time on amphtml/build-system/pr-check/checks.js Lines 87 to 90 in 4ef897f
I can fix this URL though. Would https://amp.dev/documentation/guides-and-tutorials/start/create work as a reasonable substitute? Edit: This guide is a better option. I've sent out #30732 with a fix and will rebase this PR once it's merged. |
Latest version of this PR has been verified on Linux, macOS, and Windows. Internal release code has been updated to work through the transition from yarn to npm. Merging this now 🤞. Edit: So far so good. Release system has been verified to work through this transition. Renovate PRs are updating the correct lockfile. |
Congrats on getting this through so quickly! ⭐ |
This PR changes AMP's package manager from
yarn
tonpm
. For a detailed discussion of why, see #30518.PR highlights:
yarn.lock
files in the repo withpackage-lock.json
yarn
check-package-manager.js
to error out whenyarn
is used to install dependenciesyarn
integrity check for a stalenode_modules
withcheck-dependencies
, which runs in O(milliseconds)package-lock.json
validator/
scripts to usenpm install
instead ofyarn
amphtml
developer docsTested the following workflows:
gulp
task without installing packages (prompted to runnpm install
,yarn
used to error out)yarn
has been fixed bynpm
)Notes for developers (after syncing past this PR):
yarn
will now result in an error. Usenpm install
instead. All other dev commands have been updated, there's nothing new to do.npm install
once. (An in-place reinstall is sufficient, no need to deletenode_modules/
.)yarn.lock
and updatingpackage-lock.json
(by invokingnpm install
)node-gyp
(part ofnodejs
) may print verbose logs with expected error messages during first-time install. Foramphtml
development, they are harmless and can be ignored.Fixes #30518