Bundle legacy CLI to internal/legacy-cli.mjs

This commit is contained in:
fisker committed 2025-04-14 23:15:10 +08:00
1 parent 0a0a16cb97
commit f1abd1cffc
1 file changed
+2 -2
+2 -2
View File
@@ -792,14 +792,14 @@ const nodejsFiles = [
{
module: path.join(PROJECT_ROOT, "bin/prettier.cjs"),
process: (text) =>
text.replace("../src/cli/index.js", "../internal/cli.mjs"),
text.replace("../src/cli/index.js", "../internal/legacy-cli.mjs"),
},
],
external: ["@prettier/cli"],
},
{
input: "src/cli/index.js",
outputBaseName: "internal/cli",
outputBaseName: "internal/legacy-cli",
external: ["tinybench"],
// TODO: Remove this when we drop support for Node.js v16
replaceModule: [