Closed Bug 1957988 Opened 23 days ago Closed 15 days ago

Automate Storybook upgrade dependencies with mach command

Categories

(Toolkit :: UI Widgets, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: mkennedy, Assigned: mkennedy)

References

Details

(Whiteboard: [recomp])

Attachments

(1 file)

It was suggested in the patch for the work in Bug 1950988 that batch upgrading Storybook dependencies, we should create a mach storybook upgrade command that does it automatically. So creating a separate ticket to keep work scoped.

See Also: → 1950988
Whiteboard: [recomp]

This command was used to update the dependencies in bug 1950988 rm -rf browser/components/storybook/node_modules browser/components/storybook/package-lock.json && ./mach npm install --prefix=browser/components/storybook

We should be able to formalize this into Python in our mach command

Adds a new mach storybook upgrade command that
will forcefully upgrade all Storybook npm
dependencies to their highest versions allowed in
the package.json by performing the following tasks:

  1. Remove the node_modules directory
  2. Remove the package-lock.json file
  3. Run npm install
Attachment #9477782 - Attachment description: WIP: Bug 1957988 - Add Storybook upgrade mach command =#recomp-reviewers → Bug 1957988 - Add Storybook upgrade mach command =#recomp-reviewers
Assignee: nobody → mkennedy
Attachment #9477782 - Attachment description: Bug 1957988 - Add Storybook upgrade mach command =#recomp-reviewers → Bug 1957988 - Add Storybook upgrade mach command r=#recomp-reviewers
Status: NEW → ASSIGNED
Pushed by mkennedy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1efed2e12041 Add Storybook upgrade mach command r=reusable-components-reviewers,mstriemer
Status: ASSIGNED → RESOLVED
Closed: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: