@cedarjs/cli-storybook-vite 3.1.2-next.0 → 3.1.2-next.126

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 +1 @@
1
- {"version":3,"file":"storybookHandler.d.ts","sourceRoot":"","sources":["../../src/commands/storybookHandler.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAkBrD,wBAAsB,OAAO,CAAC,EAC5B,KAAK,EACL,cAAc,EACd,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,SAAS,GACV,EAAE,qBAAqB,iBA+IvB"}
1
+ {"version":3,"file":"storybookHandler.d.ts","sourceRoot":"","sources":["../../src/commands/storybookHandler.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAkBrD,wBAAsB,OAAO,CAAC,EAC5B,KAAK,EACL,cAAc,EACd,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,SAAS,GACV,EAAE,qBAAqB,iBA+IvB"}
@@ -39,7 +39,6 @@ var import_semver = __toESM(require("semver"));
39
39
  var import_cli_helpers = require("@cedarjs/cli-helpers");
40
40
  var import_project_config = require("@cedarjs/project-config");
41
41
  var import_telemetry = require("@cedarjs/telemetry");
42
- var import_colors = __toESM(require("../lib/colors"));
43
42
  const readFile = (target) => import_node_fs.default.readFileSync(target, { encoding: "utf8" });
44
43
  const writeFile = (target, contents) => {
45
44
  const { base } = (0, import_project_config.getPaths)();
@@ -61,7 +60,7 @@ async function handler({
61
60
  smokeTest
62
61
  }) {
63
62
  console.log(
64
- import_colors.default.bold(
63
+ import_cli_helpers.colors.bold(
65
64
  `
66
65
  Please find documentation and links to provide feedback for this new command at:
67
66
  -> https://community.redwoodjs.com/t/7212
@@ -78,7 +77,7 @@ Please find documentation and links to provide feedback for this new command at:
78
77
  }
79
78
  if (build && open) {
80
79
  console.warn(
81
- import_colors.default.warning(
80
+ import_cli_helpers.colors.warning(
82
81
  "Warning: --open option has no effect when running Storybook build"
83
82
  )
84
83
  );
@@ -167,7 +166,7 @@ Please find documentation and links to provide feedback for this new command at:
167
166
  await import_execa.default.command(command, { ...execaOptions, env });
168
167
  } catch (e) {
169
168
  if (e.signal !== "SIGINT") {
170
- console.log(import_colors.default.error(e.message));
169
+ console.log(import_cli_helpers.colors.error(e.message));
171
170
  (0, import_telemetry.errorTelemetry)(import_node_process.default.argv, e.message);
172
171
  }
173
172
  import_node_process.default.exit(e.exitCode ?? 1);
package/dist/index.js CHANGED
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var src_exports = {};
20
- __export(src_exports, {
19
+ var index_exports = {};
20
+ __export(index_exports, {
21
21
  commands: () => commands
22
22
  });
23
- module.exports = __toCommonJS(src_exports);
23
+ module.exports = __toCommonJS(index_exports);
24
24
  var import_storybook = require("./commands/storybook");
25
25
  const commands = [
26
26
  {
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@cedarjs/cli-storybook-vite",
3
- "version": "3.1.2-next.0+be2d452c1",
3
+ "version": "3.1.2-next.126+e7fa625a39",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
7
7
  "directory": "packages/cli-packages/storybook-vite"
8
8
  },
9
9
  "license": "MIT",
10
+ "type": "commonjs",
10
11
  "main": "./dist/index.js",
11
12
  "types": "./dist/index.d.ts",
12
13
  "files": [
@@ -22,20 +23,19 @@
22
23
  "test:unit": "vitest run"
23
24
  },
24
25
  "dependencies": {
25
- "@cedarjs/cli-helpers": "3.1.2-next.0+be2d452c1",
26
- "@cedarjs/project-config": "3.1.2-next.0+be2d452c1",
27
- "@cedarjs/telemetry": "3.1.2-next.0+be2d452c1",
28
- "ansis": "4.2.0",
26
+ "@cedarjs/cli-helpers": "3.1.2-next.126+e7fa625a39",
27
+ "@cedarjs/project-config": "3.1.2-next.126+e7fa625a39",
28
+ "@cedarjs/telemetry": "3.1.2-next.126+e7fa625a39",
29
29
  "execa": "5.1.1",
30
30
  "semver": "7.7.4",
31
31
  "storybook": "8.6.18",
32
- "storybook-framework-cedarjs": "3.1.2-next.0+be2d452c1",
32
+ "storybook-framework-cedarjs": "3.1.2-next.126+e7fa625a39",
33
33
  "termi-link": "1.1.0",
34
34
  "vitest": "3.2.4",
35
35
  "yargs": "17.7.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@cedarjs/framework-tools": "3.1.2-next.1",
38
+ "@cedarjs/framework-tools": "3.1.2-next.126",
39
39
  "@types/semver": "^7",
40
40
  "@types/yargs": "17.0.35",
41
41
  "tsx": "4.21.0",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "be2d452c12f5f60784eab652d896b13f70b27e99"
50
+ "gitHead": "e7fa625a39d829a9078bd5b8237e93ec1a8745be"
51
51
  }
@@ -1,21 +0,0 @@
1
- /**
2
- * To keep a consistent color/style palette between cli packages, such as
3
- * \@redwood/cli and \@redwood/create-cedar-app, please keep them compatible
4
- * with one and another. We'll might split up and refactor these into a
5
- * separate package when there is a strong motivation behind it.
6
- *
7
- * Current files:
8
- *
9
- * - packages/cli/src/lib/colors.js (this file)
10
- * - packages/create-cedar-app/src/create-cedar-app.js
11
- */
12
- declare const _default: {
13
- error: import("ansis").Ansis;
14
- warning: import("ansis").Ansis;
15
- green: import("ansis").Ansis;
16
- info: import("ansis").Ansis;
17
- bold: import("ansis").Ansis;
18
- underline: import("ansis").Ansis;
19
- };
20
- export default _default;
21
- //# sourceMappingURL=colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/lib/colors.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;;;;;;;;;AACH,wBAOC"}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var colors_exports = {};
30
- __export(colors_exports, {
31
- default: () => colors_default
32
- });
33
- module.exports = __toCommonJS(colors_exports);
34
- var import_ansis = __toESM(require("ansis"));
35
- var colors_default = {
36
- error: import_ansis.default.bold.red,
37
- warning: import_ansis.default.hex("#ffa500"),
38
- green: import_ansis.default.green,
39
- info: import_ansis.default.gray,
40
- bold: import_ansis.default.bold,
41
- underline: import_ansis.default.underline
42
- };