Skip to content

Commit 82a690b

Browse files
authored
chore(bin): deprecate yari bins + test rari bins (#12517)
* chore(bin): add deprecation warnings to yari-{build,content,tool} * chore(workflows/npm-published-simulation): test rari-{build,tool}
1 parent 8cd0bd2 commit 82a690b

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

Diff for: .github/workflows/npm-published-simulation.yml

+8
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ jobs:
7070
yarn add file:$TARBALL
7171
yarn install
7272
73+
- name: (mdn/content) yarn rari-build --help
74+
working-directory: mdn/content
75+
run: yarn rari-build --help
76+
77+
- name: (mdn/content) yarn rari-tool --help
78+
working-directory: mdn/content
79+
run: yarn rari-tool --help
80+
7381
- name: (mdn/content) yarn yari-build --help
7482
working-directory: mdn/content
7583
run: yarn yari-build --help

Diff for: build/cli.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ if (SENTRY_DSN_BUILD) {
464464
}
465465

466466
program
467-
.name("build")
467+
.name("[DEPRECATED] build")
468468
.option("-i, --interactive", "Ask what to do when encountering flaws", {
469469
default: false,
470470
})
@@ -600,6 +600,8 @@ program
600600
}
601601
});
602602

603+
console.warn("\n🗑️ This command is deprecated, and will be removed soon.\n");
604+
603605
program.run();
604606
function compareBigInt(a: bigint, b: bigint): number {
605607
if (a < b) {

Diff for: server/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,8 @@ app.use(staticMiddlewares);
608608

609609
app.get("/*", async (_, res) => await send404(res));
610610

611+
console.warn("\n🗑️ This command is deprecated, and will be removed soon.\n");
612+
611613
if (!fs.existsSync(path.resolve(CONTENT_ROOT))) {
612614
throw new Error(`${path.resolve(CONTENT_ROOT)} does not exist!`);
613615
}

Diff for: tool/cli.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function tryOrExit<T extends ActionParameters>(
233233

234234
program
235235
.bin("yarn tool")
236-
.name("tool")
236+
.name("[DEPRECATED] tool")
237237
.version("0.0.0")
238238
.disableGlobalOption("--silent")
239239
.cast(false)
@@ -1104,4 +1104,6 @@ program
11041104
})
11051105
);
11061106

1107+
console.warn("\n🗑️ This command is deprecated, and will be removed soon.\n");
1108+
11071109
program.run();

0 commit comments

Comments
 (0)