@rrlab/cli 0.0.1-git-62447c5.0 → 0.0.2-git-06ed46c.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  // @generated by @usage-spec/commander from Commander.js metadata
2
2
  name rr
3
3
  bin rr
4
- version "0.0.1-git-62447c5.0"
4
+ version "0.0.2-git-06ed46c.0"
5
5
  usage "<command...> [options...]"
6
6
  flag --usage help="print KDL spec for this CLI (https://kdl.dev)"
7
7
  cmd completion help="print shell completion script (usage)" {
package/dist/run.mjs CHANGED
@@ -366,7 +366,7 @@ const SUGGESTIONS = {
366
366
  };
367
367
  function missingPluginError(kind) {
368
368
  const aliases = SUGGESTIONS[kind] ?? [];
369
- const officialList = aliases.map((a) => `@rrlab/plugin-${a}`).join(", ");
369
+ const officialList = aliases.map((a) => `@rrlab/${a}-plugin`).join(", ");
370
370
  const addList = aliases.map((a) => `rr plugins add ${a}`).join(" | ");
371
371
  return /* @__PURE__ */ new Error(`No plugin provides the '${kind}' capability.` + (officialList ? `\n Install one of: ${officialList}.` : "") + (addList ? `\n Try: ${addList}.` : ""));
372
372
  }
@@ -709,27 +709,28 @@ function deepEqual(a, b) {
709
709
  * is imported as inside `run-run.config.{ts,mts}`.
710
710
  *
711
711
  * Third-party plugins use their full package name; the binding is derived
712
- * by stripping a `@scope/plugin-` (or `@scope/run-run-plugin-`) prefix.
712
+ * by stripping a `@scope/<tool>-plugin` (or `@scope/<tool>-run-run-plugin`)
713
+ * suffix and using the tool segment.
713
714
  */
714
715
  const OFFICIAL_PLUGINS = {
715
716
  ts: {
716
- pkg: "@rrlab/plugin-ts",
717
+ pkg: "@rrlab/ts-plugin",
717
718
  exportName: "ts"
718
719
  },
719
720
  eslint: {
720
- pkg: "@rrlab/plugin-eslint",
721
+ pkg: "@rrlab/eslint-plugin",
721
722
  exportName: "eslint"
722
723
  },
723
724
  biome: {
724
- pkg: "@rrlab/plugin-biome",
725
+ pkg: "@rrlab/biome-plugin",
725
726
  exportName: "biome"
726
727
  },
727
728
  oxc: {
728
- pkg: "@rrlab/plugin-oxc",
729
+ pkg: "@rrlab/oxc-plugin",
729
730
  exportName: "oxc"
730
731
  },
731
732
  tsdown: {
732
- pkg: "@rrlab/plugin-tsdown",
733
+ pkg: "@rrlab/tsdown-plugin",
733
734
  exportName: "tsdown"
734
735
  }
735
736
  };
@@ -867,6 +868,7 @@ async function runAdd(ctx, alias, opts) {
867
868
  if (installedNow) try {
868
869
  await removeDependency(pkgName, {
869
870
  cwd: ctx.appPkg.dirPath,
871
+ silent: true,
870
872
  workspace
871
873
  });
872
874
  } catch {}
@@ -961,6 +963,7 @@ async function runRemove(ctx, alias, opts) {
961
963
  for (const dep of depsToRemove) await withSpinner(`Uninstalling ${dep}`, async () => {
962
964
  await removeDependency(dep, {
963
965
  cwd: ctx.appPkg.dirPath,
966
+ silent: true,
964
967
  workspace
965
968
  });
966
969
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rrlab/cli",
3
- "version": "0.0.1-git-62447c5.0",
3
+ "version": "0.0.2-git-06ed46c.0",
4
4
  "description": "The CLI toolbox to fullstack common scripts in Variable Land",
5
5
  "homepage": "https://github.com/variableland/dx/tree/main/run-run/cli#readme",
6
6
  "bugs": {
@@ -56,12 +56,12 @@
56
56
  "memoize": "10.2.0",
57
57
  "nypm": "0.6.0",
58
58
  "rimraf": "6.1.3",
59
- "@vlandoss/clibuddy": "0.6.1-git-62447c5.0",
60
- "@vlandoss/loggy": "0.2.1-git-62447c5.0"
59
+ "@vlandoss/clibuddy": "0.6.1",
60
+ "@vlandoss/loggy": "0.2.1"
61
61
  },
62
62
  "devDependencies": {
63
63
  "tsdown": "0.22.0",
64
- "@rrlab/tsdown-config": "^0.0.1-git-62447c5.0"
64
+ "@rrlab/tsdown-config": "^0.0.1-git-06ed46c.0"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "tsdown && pnpm build:kdl",
@@ -141,7 +141,7 @@ async function runAdd(ctx: Context, alias: OfficialAlias, opts: AddOptions) {
141
141
  } catch (err) {
142
142
  if (installedNow) {
143
143
  try {
144
- await removeDependency(pkgName, { cwd: ctx.appPkg.dirPath, workspace });
144
+ await removeDependency(pkgName, { cwd: ctx.appPkg.dirPath, silent: true, workspace });
145
145
  } catch {
146
146
  // best-effort rollback — don't mask the original error
147
147
  }
@@ -253,7 +253,7 @@ async function runRemove(ctx: Context, alias: OfficialAlias, opts: RemoveOptions
253
253
  }
254
254
  for (const dep of depsToRemove) {
255
255
  await withSpinner(`Uninstalling ${dep}`, async () => {
256
- await removeDependency(dep, { cwd: ctx.appPkg.dirPath, workspace });
256
+ await removeDependency(dep, { cwd: ctx.appPkg.dirPath, silent: true, workspace });
257
257
  });
258
258
  }
259
259
 
@@ -8,7 +8,7 @@ const SUGGESTIONS: Record<string, string[]> = {
8
8
 
9
9
  export function missingPluginError(kind: string): Error {
10
10
  const aliases = SUGGESTIONS[kind] ?? [];
11
- const officialList = aliases.map((a) => `@rrlab/plugin-${a}`).join(", ");
11
+ const officialList = aliases.map((a) => `@rrlab/${a}-plugin`).join(", ");
12
12
  const addList = aliases.map((a) => `rr plugins add ${a}`).join(" | ");
13
13
  return new Error(
14
14
  `No plugin provides the '${kind}' capability.` +
@@ -5,9 +5,9 @@ import { builders, generateCode, loadFile, type ProxifiedModule, parseModule, wr
5
5
  const CONFIG_FILENAMES = ["run-run.config.ts", "run-run.config.mts"] as const;
6
6
 
7
7
  export type PluginEntry = {
8
- /** Local binding (e.g. `biome` for `import biome from "@rrlab/plugin-biome"`). */
8
+ /** Local binding (e.g. `biome` for `import biome from "@rrlab/biome-plugin"`). */
9
9
  exportName: string;
10
- /** Full npm package name (e.g. `@rrlab/plugin-biome`). */
10
+ /** Full npm package name (e.g. `@rrlab/biome-plugin`). */
11
11
  pkgName: string;
12
12
  };
13
13
 
@@ -4,14 +4,15 @@
4
4
  * is imported as inside `run-run.config.{ts,mts}`.
5
5
  *
6
6
  * Third-party plugins use their full package name; the binding is derived
7
- * by stripping a `@scope/plugin-` (or `@scope/run-run-plugin-`) prefix.
7
+ * by stripping a `@scope/<tool>-plugin` (or `@scope/<tool>-run-run-plugin`)
8
+ * suffix and using the tool segment.
8
9
  */
9
10
  export const OFFICIAL_PLUGINS = {
10
- ts: { pkg: "@rrlab/plugin-ts", exportName: "ts" },
11
- eslint: { pkg: "@rrlab/plugin-eslint", exportName: "eslint" },
12
- biome: { pkg: "@rrlab/plugin-biome", exportName: "biome" },
13
- oxc: { pkg: "@rrlab/plugin-oxc", exportName: "oxc" },
14
- tsdown: { pkg: "@rrlab/plugin-tsdown", exportName: "tsdown" },
11
+ ts: { pkg: "@rrlab/ts-plugin", exportName: "ts" },
12
+ eslint: { pkg: "@rrlab/eslint-plugin", exportName: "eslint" },
13
+ biome: { pkg: "@rrlab/biome-plugin", exportName: "biome" },
14
+ oxc: { pkg: "@rrlab/oxc-plugin", exportName: "oxc" },
15
+ tsdown: { pkg: "@rrlab/tsdown-plugin", exportName: "tsdown" },
15
16
  } as const;
16
17
 
17
18
  export type OfficialAlias = keyof typeof OFFICIAL_PLUGINS;