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

Move the task runner to ESM #27247

Merged
merged 8 commits into from
Jun 25, 2024
Merged

Move the task runner to ESM #27247

merged 8 commits into from
Jun 25, 2024

Conversation

mxdvl
Copy link
Contributor

@mxdvl mxdvl commented Jun 21, 2024

What is the value of this and can you measure success?

Enable bumping ESM-only dependencies of the task runner, such as cpy

What does this change?

Refactor all the CommonJS of the task runner to use ESM instead.

Note

This does not yet use ESM for the tasks themselves

Screenshots

image

Checklist

@mxdvl mxdvl requested review from a team as code owners June 21, 2024 14:53
@mxdvl mxdvl marked this pull request as draft June 24, 2024 08:55
@mxdvl
Copy link
Contributor Author

mxdvl commented Jun 24, 2024

We could improve the typing of tasks with something like:

/** @type {import('../../task-runner/task.mjs').Task} */
/** @typedef {{
    description: string;
    task: Array<() => Promise<void> | Task>;
    concurrent?: boolean;
}} Task */

@mxdvl mxdvl force-pushed the mxdvl/esm branch 3 times, most recently from ac2adf1 to b0d1445 Compare June 24, 2024 16:18
@mxdvl mxdvl mentioned this pull request Jun 24, 2024
@mxdvl mxdvl changed the base branch from main to mxdvl/prepare-task-runner June 24, 2024 16:35
@mxdvl mxdvl force-pushed the mxdvl/esm branch 2 times, most recently from 3593f69 to 79caf05 Compare June 24, 2024 16:38
Base automatically changed from mxdvl/prepare-task-runner to main June 24, 2024 16:50
@mxdvl mxdvl marked this pull request as ready for review June 24, 2024 16:52
.github/workflows/build.yml Outdated Show resolved Hide resolved
)
.demand(1)
.help()
.alias('h', 'help') // eslint-disable-line newline-per-chained-call
.alias('h', 'help')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as requested by @JamieB-gu in #27256

@mxdvl mxdvl merged commit 2b874f4 into main Jun 25, 2024
6 checks passed
@mxdvl mxdvl deleted the mxdvl/esm branch June 25, 2024 15:07
@prout-bot
Copy link
Collaborator

Seen on FRONTS-PROD (merged by @mxdvl 12 minutes and 2 seconds ago)

@prout-bot
Copy link
Collaborator

Seen on ADMIN-PROD (merged by @mxdvl 12 minutes and 8 seconds ago)

@mxdvl mxdvl added this to the Health milestone Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants