@rudderjs/cli 4.0.1 → 4.0.2

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.
package/dist/errors.d.ts CHANGED
@@ -1,10 +1,7 @@
1
1
  /**
2
- * Error thrown by CLI helpers when they need to abort with a specific
3
- * exit code and a clean (no stack trace) message. The top-level handler
4
- * in `index.ts` recognises this and exits accordingly.
2
+ * Re-export of the canonical `CliError` from `@rudderjs/console`. Kept here so
3
+ * existing `import { CliError } from '@rudderjs/cli'` paths still work; new code
4
+ * should import from `@rudderjs/console` (where command primitives live).
5
5
  */
6
- export declare class CliError extends Error {
7
- readonly exitCode: number;
8
- constructor(message: string, exitCode?: number);
9
- }
6
+ export { CliError } from '@rudderjs/console';
10
7
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACJ,QAAQ,CAAC,QAAQ,EAAE,MAAM;gBAA1C,OAAO,EAAE,MAAM,EAAW,QAAQ,GAAE,MAAU;CAI3D"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
package/dist/errors.js CHANGED
@@ -1,14 +1,7 @@
1
1
  /**
2
- * Error thrown by CLI helpers when they need to abort with a specific
3
- * exit code and a clean (no stack trace) message. The top-level handler
4
- * in `index.ts` recognises this and exits accordingly.
2
+ * Re-export of the canonical `CliError` from `@rudderjs/console`. Kept here so
3
+ * existing `import { CliError } from '@rudderjs/cli'` paths still work; new code
4
+ * should import from `@rudderjs/console` (where command primitives live).
5
5
  */
6
- export class CliError extends Error {
7
- exitCode;
8
- constructor(message, exitCode = 1) {
9
- super(message);
10
- this.exitCode = exitCode;
11
- this.name = 'CliError';
12
- }
13
- }
6
+ export { CliError } from '@rudderjs/console';
14
7
  //# sourceMappingURL=errors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,QAAS,SAAQ,KAAK;IACK;IAAtC,YAAY,OAAe,EAAW,WAAmB,CAAC;QACxD,KAAK,CAAC,OAAO,CAAC,CAAA;QADsB,aAAQ,GAAR,QAAQ,CAAY;QAExD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAA;IACxB,CAAC;CACF"}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rudderjs/cli",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,8 +20,8 @@
20
20
  "commander": "^12.0.0",
21
21
  "chalk": "^5.0.0",
22
22
  "@clack/prompts": "^1.0.0",
23
- "@rudderjs/core": "^1.0.0",
24
- "@rudderjs/console": "^0.0.4"
23
+ "@rudderjs/core": "^1.0.1",
24
+ "@rudderjs/console": "^1.0.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@rudderjs/router": "^1.0.0"