@storm-software/unbuild 0.25.3 → 0.26.0

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,12 +1,12 @@
1
1
  import {
2
2
  cleanDirectories
3
- } from "./chunk-RHYLM6VP.js";
3
+ } from "./chunk-JIVM7FQJ.js";
4
4
  import {
5
5
  getDefaultBuildPlugins
6
- } from "./chunk-T6BV33KD.js";
6
+ } from "./chunk-TFMXUACY.js";
7
7
  import {
8
8
  loadConfig
9
- } from "./chunk-BE5U4XRE.js";
9
+ } from "./chunk-VEX5RCZW.js";
10
10
  import {
11
11
  COLOR_KEYS,
12
12
  LogLevel,
@@ -18,17 +18,18 @@ import {
18
18
  findWorkspaceRoot,
19
19
  formatLogMessage,
20
20
  getDefaultConfig,
21
- getLogFn,
22
21
  getLogLevel,
23
22
  getLogLevelLabel,
24
23
  getStopwatch,
25
24
  isVerbose,
26
25
  joinPaths,
27
26
  writeDebug,
27
+ writeFatal,
28
+ writeSuccess,
28
29
  writeSystem,
29
30
  writeTrace,
30
31
  writeWarning
31
- } from "./chunk-RWW6C7JH.js";
32
+ } from "./chunk-BRHZNXQM.js";
32
33
  import {
33
34
  __name
34
35
  } from "./chunk-3GQAWCBQ.js";
@@ -54,35 +55,6 @@ import { relative } from "path";
54
55
  // ../build-tools/src/utilities/copy-assets.ts
55
56
  import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "@nx/devkit";
56
57
  import { copyAssets as copyAssetsBase } from "@nx/js";
57
-
58
- // ../config-tools/src/logger/create-logger.ts
59
- import chalk from "chalk";
60
- async function createLogger(config) {
61
- const workspaceRoot = findWorkspaceRoot();
62
- if (!workspaceRoot) {
63
- throw new Error("Cannot find workspace root");
64
- }
65
- const writeFatal = getLogFn(LogLevel.FATAL, config, chalk);
66
- const writeError = getLogFn(LogLevel.ERROR, config, chalk);
67
- const writeWarning2 = getLogFn(LogLevel.WARN, config, chalk);
68
- const writeInfo = getLogFn(LogLevel.INFO, config, chalk);
69
- const writeSuccess = getLogFn(LogLevel.SUCCESS, config, chalk);
70
- const writeDebug2 = getLogFn(LogLevel.DEBUG, config, chalk);
71
- const writeTrace2 = getLogFn(LogLevel.DEBUG, config, chalk);
72
- return {
73
- fatal: writeFatal,
74
- error: writeError,
75
- warning: writeWarning2,
76
- info: writeInfo,
77
- success: writeSuccess,
78
- debug: writeDebug2,
79
- trace: writeTrace2,
80
- getStopwatch
81
- };
82
- }
83
- __name(createLogger, "createLogger");
84
-
85
- // ../build-tools/src/utilities/copy-assets.ts
86
58
  import { glob } from "glob";
87
59
  import { readFile as readFile2, writeFile } from "node:fs/promises";
88
60
 
@@ -806,7 +778,6 @@ import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-r
806
778
 
807
779
  // src/build.ts
808
780
  import defu4 from "defu";
809
- import { createJiti as createJiti2 } from "jiti";
810
781
  import { existsSync as existsSync4 } from "node:fs";
811
782
  import { readFile as readFile4 } from "node:fs/promises";
812
783
  import { relative as relative3 } from "node:path";
@@ -2244,35 +2215,25 @@ import "scule";
2244
2215
  import "mkdist";
2245
2216
 
2246
2217
  // src/build.ts
2247
- async function resolveOptions(options) {
2248
- const projectRoot = options.projectRoot;
2249
- if (!projectRoot) {
2250
- throw new Error("Cannot find project root");
2251
- }
2252
- const outputPath = options.outputPath || joinPaths("dist", projectRoot);
2253
- const workspaceRoot = findWorkspaceRoot2(projectRoot);
2254
- if (!workspaceRoot) {
2255
- throw new Error("Cannot find workspace root");
2256
- }
2257
- const config = await loadStormConfig(workspaceRoot.dir);
2258
- const logger = await createLogger(config);
2259
- logger.debug(" \u2699\uFE0F Resolving build options");
2260
- const stopwatch = logger.getStopwatch("Build options resolution");
2218
+ async function resolveOptions(options, config) {
2219
+ writeDebug(" \u2699\uFE0F Resolving build options", config);
2220
+ const stopwatch = getStopwatch("Build options resolution");
2261
2221
  if (options.configPath) {
2262
2222
  const configFile = await loadConfig(options.configPath);
2263
2223
  if (configFile) {
2264
2224
  options = defu4(options, configFile);
2265
2225
  }
2266
2226
  }
2227
+ const outputPath = options.outputPath || joinPaths("dist", options.projectRoot);
2267
2228
  const projectGraph = readCachedProjectGraph3();
2268
- const projectJsonPath = joinPaths(config.workspaceRoot, projectRoot, "project.json");
2229
+ const projectJsonPath = joinPaths(config.workspaceRoot, options.projectRoot, "project.json");
2269
2230
  if (!existsSync4(projectJsonPath)) {
2270
2231
  throw new Error("Cannot find project.json configuration");
2271
2232
  }
2272
2233
  const projectJsonContent = await readFile4(projectJsonPath, "utf8");
2273
2234
  const projectJson = JSON.parse(projectJsonContent);
2274
2235
  const projectName = projectJson.name;
2275
- const packageJsonPath = joinPaths(workspaceRoot.dir, projectRoot, "package.json");
2236
+ const packageJsonPath = joinPaths(config.workspaceRoot, options.projectRoot, "package.json");
2276
2237
  if (!existsSync4(packageJsonPath)) {
2277
2238
  throw new Error("Cannot find package.json configuration");
2278
2239
  }
@@ -2280,51 +2241,45 @@ async function resolveOptions(options) {
2280
2241
  const packageJson = JSON.parse(packageJsonContent);
2281
2242
  let tsconfig = options.tsconfig;
2282
2243
  if (!tsconfig) {
2283
- tsconfig = joinPaths(workspaceRoot.dir, projectRoot, "tsconfig.json");
2244
+ tsconfig = joinPaths(config.workspaceRoot, options.projectRoot, "tsconfig.json");
2284
2245
  }
2285
2246
  if (!existsSync4(tsconfig)) {
2286
2247
  throw new Error("Cannot find tsconfig.json configuration");
2287
2248
  }
2288
2249
  let sourceRoot = projectJson.sourceRoot;
2289
2250
  if (!sourceRoot) {
2290
- sourceRoot = joinPaths(projectRoot, "src");
2251
+ sourceRoot = joinPaths(options.projectRoot, "src");
2291
2252
  }
2292
2253
  if (!existsSync4(sourceRoot)) {
2293
2254
  throw new Error("Cannot find sourceRoot directory");
2294
2255
  }
2295
- const result = calculateProjectBuildableDependencies2(void 0, projectGraph, workspaceRoot.dir, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
2256
+ const result = calculateProjectBuildableDependencies2(void 0, projectGraph, config.workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
2296
2257
  let dependencies = result.dependencies;
2297
2258
  const tsLibDependency = getHelperDependency(HelperDependency.tsc, tsconfig, dependencies, projectGraph, true);
2298
2259
  if (tsLibDependency) {
2299
2260
  dependencies = dependencies.filter((deps) => deps.name !== tsLibDependency.name);
2300
2261
  dependencies.push(tsLibDependency);
2301
2262
  }
2302
- const jiti = createJiti2(config.workspaceRoot, {
2303
- fsCache: config.skipCache ? false : joinPaths(config.directories.cache || "node_modules/.cache/storm", "jiti"),
2304
- interopDefault: true
2305
- });
2306
2263
  const resolvedOptions = {
2307
2264
  name: projectName,
2308
2265
  config,
2309
- projectRoot,
2266
+ projectRoot: options.projectRoot,
2310
2267
  sourceRoot,
2311
2268
  projectName,
2312
2269
  tsconfig,
2313
- jiti,
2314
- logger,
2315
2270
  clean: false,
2316
2271
  entries: [
2317
2272
  {
2318
2273
  builder: "mkdist",
2319
- input: `.${sourceRoot.replace(projectRoot, "")}`,
2320
- outDir: joinPaths(relative3(joinPaths(config.workspaceRoot, projectRoot), config.workspaceRoot).replaceAll("\\", "/"), outputPath, "dist").replaceAll("\\", "/"),
2274
+ input: `.${sourceRoot.replace(options.projectRoot, "")}`,
2275
+ outDir: joinPaths(relative3(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot).replaceAll("\\", "/"), outputPath, "dist").replaceAll("\\", "/"),
2321
2276
  declaration: options.emitTypes !== false,
2322
2277
  format: "esm"
2323
2278
  },
2324
2279
  {
2325
2280
  builder: "mkdist",
2326
- input: `.${sourceRoot.replace(projectRoot, "")}`,
2327
- outDir: joinPaths(relative3(joinPaths(config.workspaceRoot, projectRoot), config.workspaceRoot).replaceAll("\\", "/"), outputPath, "dist").replaceAll("\\", "/"),
2281
+ input: `.${sourceRoot.replace(options.projectRoot, "")}`,
2282
+ outDir: joinPaths(relative3(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot).replaceAll("\\", "/"), outputPath, "dist").replaceAll("\\", "/"),
2328
2283
  declaration: options.emitTypes !== false,
2329
2284
  format: "cjs",
2330
2285
  ext: "cjs"
@@ -2419,8 +2374,8 @@ async function resolveOptions(options) {
2419
2374
  __name(resolveOptions, "resolveOptions");
2420
2375
  async function generatePackageJson(options) {
2421
2376
  if (options.generatePackageJson !== false && existsSync4(joinPaths(options.projectRoot, "package.json"))) {
2422
- options.logger.debug(" \u270D\uFE0F Writing package.json file");
2423
- const stopwatch = options.logger.getStopwatch("Write package.json file");
2377
+ writeDebug(" \u270D\uFE0F Writing package.json file", options.config);
2378
+ const stopwatch = getStopwatch("Write package.json file");
2424
2379
  const packageJsonPath = joinPaths(options.projectRoot, "project.json");
2425
2380
  if (!existsSync4(packageJsonPath)) {
2426
2381
  throw new Error("Cannot find package.json configuration");
@@ -2439,8 +2394,8 @@ async function generatePackageJson(options) {
2439
2394
  }
2440
2395
  __name(generatePackageJson, "generatePackageJson");
2441
2396
  async function executeUnbuild(options) {
2442
- options.logger.debug(` \u{1F680} Running ${options.name} (${options.projectRoot}) build`);
2443
- const stopwatch = options.logger.getStopwatch(`${options.name} (${options.projectRoot}) build`);
2397
+ writeDebug(` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
2398
+ const stopwatch = getStopwatch(`${options.name} (${options.projectRoot}) build`);
2444
2399
  try {
2445
2400
  await build(options.projectRoot, false, {
2446
2401
  ...options,
@@ -2453,8 +2408,8 @@ async function executeUnbuild(options) {
2453
2408
  }
2454
2409
  __name(executeUnbuild, "executeUnbuild");
2455
2410
  async function copyBuildAssets(options) {
2456
- options.logger.debug(` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`);
2457
- const stopwatch = options.logger.getStopwatch(`${options.name} asset copy`);
2411
+ writeDebug(` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`, options.config);
2412
+ const stopwatch = getStopwatch(`${options.name} asset copy`);
2458
2413
  await copyAssets(options.config, options.assets ?? [], options.outDir, options.projectRoot, options.projectName, options.sourceRoot, options.generatePackageJson, options.includeSrc);
2459
2414
  stopwatch();
2460
2415
  return options;
@@ -2462,8 +2417,8 @@ async function copyBuildAssets(options) {
2462
2417
  __name(copyBuildAssets, "copyBuildAssets");
2463
2418
  async function cleanOutputPath(options) {
2464
2419
  if (options.clean !== false && options.outDir) {
2465
- options.logger.debug(` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`);
2466
- const stopwatch = options.logger.getStopwatch(`${options.name} output clean`);
2420
+ writeDebug(` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`, options.config);
2421
+ const stopwatch = getStopwatch(`${options.name} output clean`);
2467
2422
  await cleanDirectories(options.name, options.outDir, options.config);
2468
2423
  stopwatch();
2469
2424
  }
@@ -2471,17 +2426,27 @@ async function cleanOutputPath(options) {
2471
2426
  }
2472
2427
  __name(cleanOutputPath, "cleanOutputPath");
2473
2428
  async function build2(options) {
2474
- const resolvedOptions = await resolveOptions(options);
2475
- resolvedOptions.logger.debug(` \u26A1 Executing Storm Unbuild pipeline`);
2476
- const stopwatch = resolvedOptions.logger.getStopwatch("Unbuild pipeline");
2429
+ const projectRoot = options.projectRoot;
2430
+ if (!projectRoot) {
2431
+ throw new Error("Cannot find project root");
2432
+ }
2433
+ const workspaceRoot = findWorkspaceRoot2(projectRoot);
2434
+ if (!workspaceRoot) {
2435
+ throw new Error("Cannot find workspace root");
2436
+ }
2437
+ const config = await loadStormConfig(workspaceRoot.dir);
2438
+ writeDebug(` \u26A1 Executing Storm Unbuild pipeline`, config);
2439
+ const stopwatch = getStopwatch("Unbuild pipeline");
2477
2440
  try {
2441
+ options.projectRoot = projectRoot;
2442
+ const resolvedOptions = await resolveOptions(options, config);
2478
2443
  await cleanOutputPath(resolvedOptions);
2479
2444
  await generatePackageJson(resolvedOptions);
2480
2445
  await executeUnbuild(resolvedOptions);
2481
2446
  await copyBuildAssets(resolvedOptions);
2482
- resolvedOptions.logger.success(` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`);
2447
+ writeSuccess(` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
2483
2448
  } catch (error) {
2484
- resolvedOptions.logger.fatal(" \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
2449
+ writeFatal(" \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.", config);
2485
2450
  throw error;
2486
2451
  } finally {
2487
2452
  stopwatch();
@@ -533,8 +533,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, ()
533
533
  `);
534
534
  };
535
535
  }, "getLogFn");
536
+ var writeFatal = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.FATAL, config)(message), "writeFatal");
537
+ var writeError = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ERROR, config)(message), "writeError");
536
538
  var writeWarning = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.WARN, config)(message), "writeWarning");
537
539
  var writeInfo = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
540
+ var writeSuccess = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.SUCCESS, config)(message), "writeSuccess");
538
541
  var writeDebug = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
539
542
  var writeTrace = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
540
543
  var writeSystem = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ALL, config)(message), "writeSystem");
@@ -595,4 +598,6 @@ var _isFunction = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, (value)
595
598
 
596
599
 
597
600
 
598
- exports.LogLevel = LogLevel; exports.LogLevelLabel = LogLevelLabel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.COLOR_KEYS = COLOR_KEYS; exports.correctPaths = correctPaths; exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.getDefaultConfig = getDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose; exports.getLogFn = getLogFn; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.writeSystem = writeSystem; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage;
601
+
602
+
603
+ exports.LogLevel = LogLevel; exports.LogLevelLabel = LogLevelLabel; exports.STORM_DEFAULT_DOCS = STORM_DEFAULT_DOCS; exports.STORM_DEFAULT_HOMEPAGE = STORM_DEFAULT_HOMEPAGE; exports.STORM_DEFAULT_LICENSING = STORM_DEFAULT_LICENSING; exports.COLOR_KEYS = COLOR_KEYS; exports.correctPaths = correctPaths; exports.joinPaths = joinPaths; exports.findWorkspaceRoot = findWorkspaceRoot; exports.getDefaultConfig = getDefaultConfig; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.writeSystem = writeSystem; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage;
@@ -1,25 +1,25 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkLUXNRUAPcjs = require('./chunk-LUXNRUAP.cjs');
3
+ var _chunkKAXKUEZ7cjs = require('./chunk-KAXKUEZ7.cjs');
4
4
 
5
5
 
6
6
  var _chunkSHHAZOHNcjs = require('./chunk-SHHAZOHN.cjs');
7
7
 
8
8
 
9
- var _chunk4AWYDOEHcjs = require('./chunk-4AWYDOEH.cjs');
9
+ var _chunkUV35N5R4cjs = require('./chunk-UV35N5R4.cjs');
10
10
 
11
11
 
12
- var _chunkD5YXD4XEcjs = require('./chunk-D5YXD4XE.cjs');
12
+ var _chunkXKHSZIHPcjs = require('./chunk-XKHSZIHP.cjs');
13
13
 
14
14
 
15
15
  var _chunkYDYGZTJKcjs = require('./chunk-YDYGZTJK.cjs');
16
16
 
17
17
  // src/config.ts
18
18
  var getDefaultBuildPlugins = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, async (options, resolvedOptions) => Promise.all([
19
- _chunk4AWYDOEHcjs.analyzePlugin.call(void 0, options, resolvedOptions),
19
+ _chunkUV35N5R4cjs.analyzePlugin.call(void 0, options, resolvedOptions),
20
20
  _chunkSHHAZOHNcjs.typeDefinitions.call(void 0, resolvedOptions.projectRoot),
21
- _chunkLUXNRUAPcjs.tscPlugin.call(void 0, options, resolvedOptions),
22
- _chunkD5YXD4XEcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
21
+ _chunkKAXKUEZ7cjs.tscPlugin.call(void 0, options, resolvedOptions),
22
+ _chunkXKHSZIHPcjs.onErrorPlugin.call(void 0, options, resolvedOptions)
23
23
  ].map((plugin) => Promise.resolve(plugin))), "getDefaultBuildPlugins");
24
24
 
25
25
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getStopwatch,
3
3
  writeDebug
4
- } from "./chunk-RWW6C7JH.js";
4
+ } from "./chunk-BRHZNXQM.js";
5
5
  import {
6
6
  __name
7
7
  } from "./chunk-3GQAWCBQ.js";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk36OA7HRFcjs = require('./chunk-36OA7HRF.cjs');
3
+ var _chunkGHVDJY3Scjs = require('./chunk-GHVDJY3S.cjs');
4
4
 
5
5
 
6
6
  var _chunkYDYGZTJKcjs = require('./chunk-YDYGZTJK.cjs');
@@ -32,7 +32,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
32
32
  declaration: true,
33
33
  paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
34
34
  };
35
- _chunk36OA7HRFcjs.writeTrace.call(void 0, compilerOptions, config);
35
+ _chunkGHVDJY3Scjs.writeTrace.call(void 0, compilerOptions, config);
36
36
  return compilerOptions;
37
37
  }
38
38
  _chunkYDYGZTJKcjs.__name.call(void 0, createTsCompilerOptions, "createTsCompilerOptions");
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  tscPlugin
3
- } from "./chunk-BE5U4XRE.js";
3
+ } from "./chunk-VEX5RCZW.js";
4
4
  import {
5
5
  typeDefinitions
6
6
  } from "./chunk-ESRR2FD2.js";
7
7
  import {
8
8
  analyzePlugin
9
- } from "./chunk-2RMUO4GG.js";
9
+ } from "./chunk-YCGXRIUD.js";
10
10
  import {
11
11
  onErrorPlugin
12
- } from "./chunk-JKBKJSU6.js";
12
+ } from "./chunk-4RR7YISH.js";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-3GQAWCBQ.js";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk36OA7HRFcjs = require('./chunk-36OA7HRF.cjs');
4
+ var _chunkGHVDJY3Scjs = require('./chunk-GHVDJY3S.cjs');
5
5
 
6
6
 
7
7
  var _chunkYDYGZTJKcjs = require('./chunk-YDYGZTJK.cjs');
@@ -9,8 +9,8 @@ var _chunkYDYGZTJKcjs = require('./chunk-YDYGZTJK.cjs');
9
9
  // src/clean.ts
10
10
  var _promises = require('fs/promises');
11
11
  async function clean(name = "Unbuild", directory, config) {
12
- _chunk36OA7HRFcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
- const stopwatch = _chunk36OA7HRFcjs.getStopwatch.call(void 0, `${name} output clean`);
12
+ _chunkGHVDJY3Scjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
+ const stopwatch = _chunkGHVDJY3Scjs.getStopwatch.call(void 0, `${name} output clean`);
14
14
  await cleanDirectories(name, directory, config);
15
15
  stopwatch();
16
16
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk36OA7HRFcjs = require('./chunk-36OA7HRF.cjs');
3
+ var _chunkGHVDJY3Scjs = require('./chunk-GHVDJY3S.cjs');
4
4
 
5
5
 
6
6
  var _chunkYDYGZTJKcjs = require('./chunk-YDYGZTJK.cjs');
@@ -25,7 +25,7 @@ var analyzePlugin = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, (optio
25
25
  renderChunk(source, chunk) {
26
26
  const sourceBytes = formatBytes(source.length);
27
27
  const fileName = chunk.fileName;
28
- _chunk36OA7HRFcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, resolvedOptions.config);
28
+ _chunkGHVDJY3Scjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, resolvedOptions.config);
29
29
  }
30
30
  };
31
31
  }, "analyzePlugin");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeTrace
3
- } from "./chunk-RWW6C7JH.js";
3
+ } from "./chunk-BRHZNXQM.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-3GQAWCBQ.js";