aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/packages/turbo-workspaces/src/cli.ts
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-11-03 21:25:40 +0800
committer简律纯 <i@jyunko.cn>2023-11-03 21:25:40 +0800
commit9029588590bea8b10451575c5142dcde77ecd1b5 (patch)
tree04cf8aee56c23fd225ff19d340f7cee621d874ef /packages/turbo-workspaces/src/cli.ts
parent94071d7ce16c56641d67d488e2bac6be84ffe731 (diff)
downloadHydroRoll-9029588590bea8b10451575c5142dcde77ecd1b5.tar.gz
HydroRoll-9029588590bea8b10451575c5142dcde77ecd1b5.zip
chore: delete useless files
Diffstat (limited to 'packages/turbo-workspaces/src/cli.ts')
-rw-r--r--packages/turbo-workspaces/src/cli.ts53
1 files changed, 0 insertions, 53 deletions
diff --git a/packages/turbo-workspaces/src/cli.ts b/packages/turbo-workspaces/src/cli.ts
deleted file mode 100644
index 3ae7a45..0000000
--- a/packages/turbo-workspaces/src/cli.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/usr/bin/env node
-
-import chalk from "chalk";
-import { Command } from "commander";
-
-import { summary, convert } from "./commands";
-import cliPkg from "../package.json";
-import { ConvertError } from "./errors";
-
-const workspacesCli = new Command();
-
-workspacesCli
- .name("@turbo/workspaces")
- .description("Tools for working with package manager workspaces")
- .version(cliPkg.version, "-v, --version", "output the current version");
-
-// convert
-workspacesCli
- .command("convert")
- .description("Convert project between workspace managers")
- .argument("[path]", "Project root")
- .argument("[package-manager]", "Package manager to convert to")
- .option(
- "--skip-install",
- "Do not run a package manager install after conversion",
- false
- )
- .option("--dry", "Dry run (no changes are made to files)", false)
- .option(
- "--force",
- "Bypass Git safety checks and forcibly run conversion",
- false
- )
- .action(convert);
-
-// summary
-workspacesCli
- .command("summary")
- .description("Display a summary of the specified project")
- .argument("[path]", "Project root")
- .action(summary);
-
-workspacesCli.parseAsync().catch((error) => {
- console.log();
- if (error instanceof ConvertError) {
- console.log(chalk.red(error.message));
- } else {
- console.log(chalk.red("Unexpected error. Please report it as a bug:"));
- console.log(error.message);
- }
- console.log();
- process.exit(1);
-});