@storybook/angular 10.1.0-alpha.12 → 10.1.0-alpha.13
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/_node-chunks/{chunk-CI264AI2.js → chunk-G5NJT4NS.js} +6 -6
- package/dist/_node-chunks/{chunk-6VHHYZRT.js → chunk-IMLF7Y6U.js} +15 -15
- package/dist/builders/build-storybook/index.js +14 -9
- package/dist/builders/start-storybook/index.js +10 -9
- package/dist/node/index.js +6 -6
- package/dist/preset.js +6 -6
- package/dist/server/framework-preset-angular-cli.js +83 -14
- package/dist/server/framework-preset-angular-ivy.js +6 -6
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wua9olym7jh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wua9olym7jh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wua9olym7jh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wua9olym7jh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wua9olym7jh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wua9olym7jh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wua9olym7jh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wua9olym7jh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wua9olym7jh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wua9olym7jh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wua9olym7jh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wua9olym7jh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
up
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-G5NJT4NS.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/empathic/package.mjs
|
|
17
17
|
function up2(options) {
|
|
@@ -22,7 +22,7 @@ function up2(options) {
|
|
|
22
22
|
import { logger, instance as npmLog } from "storybook/internal/node-logger";
|
|
23
23
|
import { dedent } from "ts-dedent";
|
|
24
24
|
var printErrorDetails = (error) => {
|
|
25
|
-
npmLog.heading = "", error instanceof Error ? error.error ? logger.error(error.error) : error.stats && error.stats.compilation.errors ? error.stats.compilation.errors.forEach((e) => logger.
|
|
25
|
+
npmLog.heading = "", error instanceof Error ? error.error ? logger.error(error.error) : error.stats && error.stats.compilation.errors ? error.stats.compilation.errors.forEach((e) => logger.log(e)) : logger.error(error) : error.compilation?.errors && error.compilation.errors.forEach((e) => logger.log(e));
|
|
26
26
|
}, errorSummary = (error) => error.close ? dedent`
|
|
27
27
|
FATAL broken build!, will close the process,
|
|
28
28
|
Fix the error below and restart storybook.
|
|
@@ -37,18 +37,18 @@ import { JsPackageManagerFactory } from "storybook/internal/common";
|
|
|
37
37
|
import { Observable } from "rxjs";
|
|
38
38
|
var hasTsConfigArg = (args) => args.indexOf("-p") !== -1, hasOutputArg = (args) => args.indexOf("-d") !== -1 || args.indexOf("--output") !== -1, toRelativePath = (pathToTsConfig) => isAbsolute(pathToTsConfig) ? relative(".", pathToTsConfig) : pathToTsConfig, runCompodoc = ({ compodocArgs, tsconfig }, context) => new Observable((observer) => {
|
|
39
39
|
let tsConfigPath = toRelativePath(tsconfig), finalCompodocArgs = [
|
|
40
|
+
"compodoc",
|
|
40
41
|
...hasTsConfigArg(compodocArgs) ? [] : ["-p", tsConfigPath],
|
|
41
42
|
...hasOutputArg(compodocArgs) ? [] : ["-d", `${context.workspaceRoot || "."}`],
|
|
42
43
|
...compodocArgs
|
|
43
44
|
], packageManager = JsPackageManagerFactory.getPackageManager();
|
|
44
45
|
try {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
);
|
|
51
|
-
context.logger.info(stdout), observer.next(), observer.complete();
|
|
46
|
+
packageManager.runPackageCommand({
|
|
47
|
+
args: finalCompodocArgs,
|
|
48
|
+
cwd: context.workspaceRoot
|
|
49
|
+
}).then((result) => {
|
|
50
|
+
context.logger.info(result.stdout), observer.next(), observer.complete();
|
|
51
|
+
});
|
|
52
52
|
} catch (e) {
|
|
53
53
|
context.logger.error(e), observer.error();
|
|
54
54
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wua9olym7jh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wua9olym7jh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wua9olym7jh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wua9olym7jh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wua9olym7jh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wua9olym7jh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,16 +14,17 @@ import {
|
|
|
14
14
|
printErrorDetails,
|
|
15
15
|
runCompodoc,
|
|
16
16
|
up as up2
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-IMLF7Y6U.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-G5NJT4NS.js";
|
|
21
21
|
|
|
22
22
|
// src/builders/build-storybook/index.ts
|
|
23
23
|
import { readFileSync } from "node:fs";
|
|
24
24
|
import { getEnvConfig, getProjectRoot, versions } from "storybook/internal/common";
|
|
25
25
|
import { buildStaticStandalone, withTelemetry } from "storybook/internal/core-server";
|
|
26
26
|
import { addToGlobalContext } from "storybook/internal/telemetry";
|
|
27
|
+
import { logger } from "storybook/internal/node-logger";
|
|
27
28
|
import { createBuilder, targetFromTargetString } from "@angular-devkit/architect";
|
|
28
29
|
import { from, of, throwError } from "rxjs";
|
|
29
30
|
import { catchError, map, mapTo, switchMap } from "rxjs/operators";
|
|
@@ -115,7 +116,11 @@ function runInstance(options) {
|
|
|
115
116
|
presetOptions: { ...options, corePresets: [], overridePresets: [] },
|
|
116
117
|
printError: printErrorDetails
|
|
117
118
|
},
|
|
118
|
-
() =>
|
|
119
|
+
async () => {
|
|
120
|
+
logger.intro("Building storybook");
|
|
121
|
+
let result = await buildStaticStandalone(options);
|
|
122
|
+
return logger.outro("Storybook build completed successfully"), result;
|
|
123
|
+
}
|
|
119
124
|
)
|
|
120
125
|
).pipe(catchError((error) => throwError(errorSummary(error))));
|
|
121
126
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wua9olym7jh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wua9olym7jh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wua9olym7jh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wua9olym7jh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wua9olym7jh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wua9olym7jh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,16 +14,17 @@ import {
|
|
|
14
14
|
printErrorDetails,
|
|
15
15
|
runCompodoc,
|
|
16
16
|
up as up2
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-IMLF7Y6U.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-G5NJT4NS.js";
|
|
21
21
|
|
|
22
22
|
// src/builders/start-storybook/index.ts
|
|
23
23
|
import { readFileSync } from "node:fs";
|
|
24
24
|
import { getEnvConfig, getProjectRoot, versions } from "storybook/internal/common";
|
|
25
25
|
import { buildDevStandalone, withTelemetry } from "storybook/internal/core-server";
|
|
26
26
|
import { addToGlobalContext } from "storybook/internal/telemetry";
|
|
27
|
+
import { logger } from "storybook/internal/node-logger";
|
|
27
28
|
import { createBuilder, targetFromTargetString } from "@angular-devkit/architect";
|
|
28
29
|
import { Observable, from, of } from "rxjs";
|
|
29
30
|
import { map, mapTo, switchMap } from "rxjs/operators";
|
|
@@ -136,7 +137,7 @@ function runInstance(options) {
|
|
|
136
137
|
presetOptions: { ...options, corePresets: [], overridePresets: [] },
|
|
137
138
|
printError: printErrorDetails
|
|
138
139
|
},
|
|
139
|
-
() => buildDevStandalone(options)
|
|
140
|
+
() => (logger.intro("Starting storybook"), buildDevStandalone(options))
|
|
140
141
|
).then(({ port }) => observer.next(port)).catch((error) => {
|
|
141
142
|
observer.error(errorSummary(error));
|
|
142
143
|
});
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wua9olym7jh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wua9olym7jh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wua9olym7jh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wua9olym7jh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wua9olym7jh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wua9olym7jh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wua9olym7jh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wua9olym7jh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wua9olym7jh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wua9olym7jh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wua9olym7jh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wua9olym7jh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wua9olym7jh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wua9olym7jh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wua9olym7jh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wua9olym7jh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wua9olym7jh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wua9olym7jh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
up
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-G5NJT4NS.js";
|
|
15
15
|
|
|
16
16
|
// src/server/framework-preset-angular-cli.ts
|
|
17
17
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -81,8 +81,8 @@ var require2 = createRequire(import.meta.url), {
|
|
|
81
81
|
}
|
|
82
82
|
})()) {
|
|
83
83
|
let fs = require2("node:fs/promises"), originalReaddir = fs.readdir;
|
|
84
|
-
fs.readdir = async function(
|
|
85
|
-
let results = await originalReaddir.call(this,
|
|
84
|
+
fs.readdir = async function(path2, options) {
|
|
85
|
+
let results = await originalReaddir.call(this, path2, options), tailwindFiles = [
|
|
86
86
|
"tailwind.config.js",
|
|
87
87
|
"tailwind.config.cjs",
|
|
88
88
|
"tailwind.config.mjs",
|
|
@@ -149,7 +149,7 @@ var require2 = createRequire(import.meta.url), {
|
|
|
149
149
|
...cliConfig.plugins ?? [],
|
|
150
150
|
...baseConfig.plugins,
|
|
151
151
|
new StorybookNormalizeAngularEntryPlugin()
|
|
152
|
-
],
|
|
152
|
+
], resolve2 = {
|
|
153
153
|
...baseConfig.resolve,
|
|
154
154
|
modules: Array.from(/* @__PURE__ */ new Set([...baseConfig.resolve.modules, ...cliConfig.resolve.modules])),
|
|
155
155
|
plugins: [
|
|
@@ -164,16 +164,83 @@ var require2 = createRequire(import.meta.url), {
|
|
|
164
164
|
entry,
|
|
165
165
|
module,
|
|
166
166
|
plugins,
|
|
167
|
-
resolve,
|
|
167
|
+
resolve: resolve2,
|
|
168
168
|
resolveLoader: cliConfig.resolveLoader
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
// src/server/framework-preset-angular-cli.ts
|
|
173
173
|
import { getProjectRoot, resolvePackageDir } from "storybook/internal/common";
|
|
174
|
+
|
|
175
|
+
// ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
176
|
+
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
177
|
+
function normalizeWindowsPath(input = "") {
|
|
178
|
+
return input && input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
179
|
+
}
|
|
180
|
+
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
181
|
+
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
182
|
+
function cwd() {
|
|
183
|
+
return typeof process < "u" && typeof process.cwd == "function" ? process.cwd().replace(/\\/g, "/") : "/";
|
|
184
|
+
}
|
|
185
|
+
var resolve = function(...arguments_) {
|
|
186
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
187
|
+
let resolvedPath = "", resolvedAbsolute = !1;
|
|
188
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
189
|
+
let path2 = index >= 0 ? arguments_[index] : cwd();
|
|
190
|
+
!path2 || path2.length === 0 || (resolvedPath = `${path2}/${resolvedPath}`, resolvedAbsolute = isAbsolute2(path2));
|
|
191
|
+
}
|
|
192
|
+
return resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute2(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
|
|
193
|
+
};
|
|
194
|
+
function normalizeString(path2, allowAboveRoot) {
|
|
195
|
+
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
|
|
196
|
+
for (let index = 0; index <= path2.length; ++index) {
|
|
197
|
+
if (index < path2.length)
|
|
198
|
+
char = path2[index];
|
|
199
|
+
else {
|
|
200
|
+
if (char === "/")
|
|
201
|
+
break;
|
|
202
|
+
char = "/";
|
|
203
|
+
}
|
|
204
|
+
if (char === "/") {
|
|
205
|
+
if (!(lastSlash === index - 1 || dots === 1)) if (dots === 2) {
|
|
206
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
207
|
+
if (res.length > 2) {
|
|
208
|
+
let lastSlashIndex = res.lastIndexOf("/");
|
|
209
|
+
lastSlashIndex === -1 ? (res = "", lastSegmentLength = 0) : (res = res.slice(0, lastSlashIndex), lastSegmentLength = res.length - 1 - res.lastIndexOf("/")), lastSlash = index, dots = 0;
|
|
210
|
+
continue;
|
|
211
|
+
} else if (res.length > 0) {
|
|
212
|
+
res = "", lastSegmentLength = 0, lastSlash = index, dots = 0;
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
allowAboveRoot && (res += res.length > 0 ? "/.." : "..", lastSegmentLength = 2);
|
|
217
|
+
} else
|
|
218
|
+
res.length > 0 ? res += `/${path2.slice(lastSlash + 1, index)}` : res = path2.slice(lastSlash + 1, index), lastSegmentLength = index - lastSlash - 1;
|
|
219
|
+
lastSlash = index, dots = 0;
|
|
220
|
+
} else char === "." && dots !== -1 ? ++dots : dots = -1;
|
|
221
|
+
}
|
|
222
|
+
return res;
|
|
223
|
+
}
|
|
224
|
+
var isAbsolute2 = function(p) {
|
|
225
|
+
return _IS_ABSOLUTE_RE.test(p);
|
|
226
|
+
};
|
|
227
|
+
var relative = function(from, to) {
|
|
228
|
+
let _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/"), _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
229
|
+
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0])
|
|
230
|
+
return _to.join("/");
|
|
231
|
+
let _fromCopy = [..._from];
|
|
232
|
+
for (let segment of _fromCopy) {
|
|
233
|
+
if (_to[0] !== segment)
|
|
234
|
+
break;
|
|
235
|
+
_from.shift(), _to.shift();
|
|
236
|
+
}
|
|
237
|
+
return [..._from.map(() => ".."), ..._to].join("/");
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
// src/server/framework-preset-angular-cli.ts
|
|
174
241
|
async function webpackFinal(baseConfig, options) {
|
|
175
242
|
if (!resolvePackageDir("@angular-devkit/build-angular"))
|
|
176
|
-
return logger.info('
|
|
243
|
+
return logger.info('Using base config because "@angular-devkit/build-angular" is not installed'), baseConfig;
|
|
177
244
|
checkForLegacyBuildOptions(options);
|
|
178
245
|
let builderContext = getBuilderContext(options), builderOptions = await getBuilderOptions(options, builderContext), webpackConfig = await getWebpackConfig(baseConfig, {
|
|
179
246
|
builderOptions: {
|
|
@@ -228,13 +295,15 @@ async function getBuilderOptions(options, builderContext) {
|
|
|
228
295
|
if (options.angularBrowserTarget) {
|
|
229
296
|
let browserTarget = targetFromTargetString(options.angularBrowserTarget);
|
|
230
297
|
logger.info(
|
|
231
|
-
|
|
298
|
+
`Using angular browser target options from "${browserTarget.project}:${browserTarget.target}${browserTarget.configuration ? `:${browserTarget.configuration}` : ""}"`
|
|
232
299
|
), browserTargetOptions = await builderContext.getTargetOptions(browserTarget);
|
|
233
300
|
}
|
|
234
301
|
let explicitAngularBuilderOptions = await builderContext.getTargetOptions(
|
|
235
302
|
builderContext.target
|
|
236
303
|
), builderOptions = deepMerge(browserTargetOptions, explicitAngularBuilderOptions || {});
|
|
237
|
-
return builderOptions.tsConfig = options.tsConfig ?? up("tsconfig.json", { cwd: options.configDir, last: getProjectRoot() }) ?? browserTargetOptions.tsConfig, logger.info(
|
|
304
|
+
return builderOptions.tsConfig = options.tsConfig ?? up("tsconfig.json", { cwd: options.configDir, last: getProjectRoot() }) ?? browserTargetOptions.tsConfig, logger.info(
|
|
305
|
+
`Using angular project with "tsConfig:${relative(getProjectRoot(), builderOptions.tsConfig)}"`
|
|
306
|
+
), builderOptions.experimentalZoneless = options.angularBuilderOptions?.experimentalZoneless, builderOptions;
|
|
238
307
|
}
|
|
239
308
|
function checkForLegacyBuildOptions(options) {
|
|
240
309
|
if (options.angularBrowserTarget === void 0)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wua9olym7jh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wua9olym7jh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wua9olym7jh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wua9olym7jh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wua9olym7jh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wua9olym7jh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "10.1.0-alpha.
|
|
3
|
+
"version": "10.1.0-alpha.13",
|
|
4
4
|
"description": "Storybook for Angular: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@storybook/builder-webpack5": "10.1.0-alpha.
|
|
64
|
+
"@storybook/builder-webpack5": "10.1.0-alpha.13",
|
|
65
65
|
"@storybook/global": "^5.0.0",
|
|
66
66
|
"telejson": "8.0.0",
|
|
67
67
|
"ts-dedent": "^2.0.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@angular/forms": "^19.1.1",
|
|
82
82
|
"@angular/platform-browser": "^19.1.1",
|
|
83
83
|
"@angular/platform-browser-dynamic": "^19.1.1",
|
|
84
|
-
"@storybook/core-webpack": "10.1.0-alpha.
|
|
84
|
+
"@storybook/core-webpack": "10.1.0-alpha.13",
|
|
85
85
|
"@types/node": "^22.0.0",
|
|
86
86
|
"empathic": "^2.0.0",
|
|
87
87
|
"rimraf": "^6.0.1",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@angular/platform-browser": ">=18.0.0 < 21.0.0",
|
|
104
104
|
"@angular/platform-browser-dynamic": ">=18.0.0 < 21.0.0",
|
|
105
105
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
106
|
-
"storybook": "^10.1.0-alpha.
|
|
106
|
+
"storybook": "^10.1.0-alpha.13",
|
|
107
107
|
"typescript": "^4.9.0 || ^5.0.0",
|
|
108
108
|
"zone.js": ">=0.14.0"
|
|
109
109
|
},
|