-
Notifications
You must be signed in to change notification settings - Fork 514
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(cloud-function): add libs/play as dependency #12291
Conversation
Bundle StatsHey there, this message comes from a github action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
.github/workflows/testing.yml
Outdated
- name: Install all npm packages (libs/play) | ||
working-directory: libs/play | ||
run: npm ci |
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.
Why is this necessary, given that yarn install
should also run npm install
there via the prepare
script?
Lines 35 to 40 in f194598
"install:all": "find . -mindepth 2 -name 'yarn.lock' ! -wholename '**/node_modules/**' -print0 | xargs -n1 -0 sh -cx 'yarn --cwd $(dirname $0) install'", | |
"install:all:npm": "find . -mindepth 2 -name 'package-lock.json' ! -wholename '**/node_modules/**' -print0 | xargs -n1 -0 sh -cx 'npm --prefix $(dirname $0) install'", | |
"jest": "node --experimental-vm-modules --expose-gc ./node_modules/.bin/jest --logHeapUsage", | |
"m2h": "cross-env NODE_OPTIONS=\"--no-warnings=ExperimentalWarning --loader ts-node/esm\" node markdown/m2h/cli.ts", | |
"prepack": "yarn render:html && yarn build:dist", | |
"prepare": "(husky || true) && yarn install:all && yarn install:all:npm", |
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.
Ah right, it was an ordering issue: the install happened in cloud-function
first, before play
, and so play
was copied sans node_modules
: adding @yari-internal/play
as a dep in cloud-function
seems to hoist its dependencies into cloud-function
's lockfile, avoiding that problem
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.
LGTM, just one nit: IMO the PR title should preferably describe the change / solution , not the problem it solves. Something like: fix(cloud-Function): add libs/play as dependency
.
Summary
Problem
Our lint job is failing: https://github.com/mdn/yari/actions/runs/12275409047/job/34250396498
Solution
Install the missing dependencies
How did you test this change?
In this PR: the lint job succeeds!