@cedarjs/cli-storybook-vite 7.0.1-next.467 → 7.1.0-rc.34
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";
|
|
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":"
|
|
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"}
|
|
@@ -2,10 +2,12 @@ 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
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import semver from "semver";
|
|
6
|
+
import {
|
|
7
|
+
isTypeScriptProject,
|
|
8
|
+
transformTSToJS,
|
|
9
|
+
colors as c
|
|
10
|
+
} from "@cedarjs/cli-helpers";
|
|
9
11
|
import { getPaths } from "@cedarjs/project-config";
|
|
10
12
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
11
13
|
const readFile = (target) => fs.readFileSync(target, { encoding: "utf8" });
|
|
@@ -128,7 +130,7 @@ Please find documentation and links to provide feedback for this new command at:
|
|
|
128
130
|
].filter(Boolean).join(" ")}`;
|
|
129
131
|
}
|
|
130
132
|
const env = {};
|
|
131
|
-
if (
|
|
133
|
+
if (semver.parse(process.version) !== null && semver.lt(process.version, "22.0.0") && semver.gte(process.version, "20.19.0")) {
|
|
132
134
|
env.NODE_OPTIONS = "--no-experimental-require-module";
|
|
133
135
|
}
|
|
134
136
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli-storybook-vite",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0-rc.34",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -23,19 +23,20 @@
|
|
|
23
23
|
"test:unit": "vitest run"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cedarjs/cli-helpers": "7.0
|
|
27
|
-
"@cedarjs/project-config": "7.0
|
|
28
|
-
"@cedarjs/telemetry": "7.0
|
|
26
|
+
"@cedarjs/cli-helpers": "7.1.0-rc.34",
|
|
27
|
+
"@cedarjs/project-config": "7.1.0-rc.34",
|
|
28
|
+
"@cedarjs/telemetry": "7.1.0-rc.34",
|
|
29
29
|
"execa": "5.1.1",
|
|
30
|
+
"semver": "7.8.5",
|
|
30
31
|
"storybook": "8.6.19",
|
|
31
|
-
"storybook-framework-cedarjs": "7.0
|
|
32
|
+
"storybook-framework-cedarjs": "7.1.0-rc.34",
|
|
32
33
|
"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
|
|
38
|
+
"@cedarjs/framework-tools": "7.1.0-rc.34",
|
|
39
|
+
"@types/semver": "^7",
|
|
39
40
|
"@types/yargs": "17.0.35",
|
|
40
41
|
"typescript": "5.9.3"
|
|
41
42
|
},
|