@cedarjs/cli-storybook-vite 7.0.0 → 7.0.1-next.307

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,5 +1,5 @@
1
1
  import { terminalLink } from "termi-link";
2
- import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
2
+ import { recordTelemetryAttributes } from "@cedarjs/cli-helpers/telemetry";
3
3
  const command = "storybook";
4
4
  const aliases = ["sb"];
5
5
  const description = "Launch Storybook: a tool for building UI components and pages in isolation";
@@ -1 +1 @@
1
- {"version":3,"file":"storybookHandler.d.ts","sourceRoot":"","sources":["../../src/commands/storybookHandler.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAkBxD,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":"AAcA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAkBxD,wBAAsB,OAAO,CAAC,EAC5B,KAAK,EACL,cAAc,EACd,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,SAAS,GACV,EAAE,qBAAqB,iBA+IvB"}
@@ -2,12 +2,10 @@ import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import process from "node:process";
4
4
  import execa from "execa";
5
- import semver from "semver";
6
- import {
7
- isTypeScriptProject,
8
- transformTSToJS,
9
- colors as c
10
- } from "@cedarjs/cli-helpers";
5
+ import { isGreaterThanOrEqual, isLessThan, tryParse } from "verkit";
6
+ import { colors as c } from "@cedarjs/cli-helpers/colors";
7
+ import { transformTSToJS } from "@cedarjs/cli-helpers/fileHelpers";
8
+ import { isTypeScriptProject } from "@cedarjs/cli-helpers/project";
11
9
  import { getPaths } from "@cedarjs/project-config";
12
10
  import { errorTelemetry } from "@cedarjs/telemetry";
13
11
  const readFile = (target) => fs.readFileSync(target, { encoding: "utf8" });
@@ -130,7 +128,7 @@ Please find documentation and links to provide feedback for this new command at:
130
128
  ].filter(Boolean).join(" ")}`;
131
129
  }
132
130
  const env = {};
133
- if (semver.parse(process.version) !== null && semver.lt(process.version, "22.0.0") && semver.gte(process.version, "20.19.0")) {
131
+ if (tryParse(process.version) !== null && isLessThan(process.version, "22.0.0") && isGreaterThanOrEqual(process.version, "20.19.0")) {
134
132
  env.NODE_OPTIONS = "--no-experimental-require-module";
135
133
  }
136
134
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli-storybook-vite",
3
- "version": "7.0.0",
3
+ "version": "7.0.1-next.307",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -23,20 +23,19 @@
23
23
  "test:unit": "vitest run"
24
24
  },
25
25
  "dependencies": {
26
- "@cedarjs/cli-helpers": "7.0.0",
27
- "@cedarjs/project-config": "7.0.0",
28
- "@cedarjs/telemetry": "7.0.0",
26
+ "@cedarjs/cli-helpers": "7.0.1-next.307",
27
+ "@cedarjs/project-config": "7.0.1-next.307",
28
+ "@cedarjs/telemetry": "7.0.1-next.307",
29
29
  "execa": "5.1.1",
30
- "semver": "7.8.5",
31
30
  "storybook": "8.6.18",
32
- "storybook-framework-cedarjs": "7.0.0",
31
+ "storybook-framework-cedarjs": "7.0.1-next.307",
33
32
  "termi-link": "1.1.0",
33
+ "verkit": "0.5.0",
34
34
  "vitest": "4.1.11",
35
35
  "yargs": "17.7.3"
36
36
  },
37
37
  "devDependencies": {
38
- "@cedarjs/framework-tools": "7.0.0",
39
- "@types/semver": "^7",
38
+ "@cedarjs/framework-tools": "7.0.1-next.307",
40
39
  "@types/yargs": "17.0.35",
41
40
  "typescript": "5.9.3"
42
41
  },