@storm-software/esbuild 0.45.61 → 0.46.1
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/README.md +2 -1
- package/dist/assets.cjs +6 -6
- package/dist/assets.js +5 -5
- package/dist/build.cjs +13 -13
- package/dist/build.js +12 -12
- package/dist/chunk-2SJSYCMS.cjs +6 -0
- package/dist/{chunk-DRSI5NMS.cjs → chunk-46KVHK5G.cjs} +2 -2
- package/dist/{chunk-NMZ7BF3X.js → chunk-47WNZ6KT.js} +2 -2
- package/dist/{chunk-VMZTU5MH.cjs → chunk-5DGBR2RP.cjs} +13 -13
- package/dist/{chunk-GA67YJGQ.cjs → chunk-7HSDZTCT.cjs} +83 -83
- package/dist/{chunk-6RS6PUM7.js → chunk-AQMXDBIP.js} +1 -1
- package/dist/{chunk-ADBXIH6V.js → chunk-C7BPMSIT.js} +4 -4
- package/dist/{chunk-3GCNEVK7.js → chunk-EJMMWJFC.js} +2 -2
- package/dist/{chunk-UK6WDL5V.js → chunk-FRKTWYQJ.js} +2 -2
- package/dist/{chunk-RM2PYDML.js → chunk-G5M3DJO5.js} +5 -5
- package/dist/{chunk-KX7KPO7S.js → chunk-G7OEFEPR.js} +3 -3
- package/dist/{chunk-R7KP6WNL.js → chunk-HAZ7GRM7.js} +3 -3
- package/dist/{chunk-A6NQIRGS.cjs → chunk-HIMUHQ7K.cjs} +7 -7
- package/dist/{chunk-3FBWVPJW.js → chunk-KANU5TF6.js} +15 -15
- package/dist/{chunk-M37UEA6V.cjs → chunk-KRQE5BEE.cjs} +2 -2
- package/dist/{chunk-LBZ4HJFB.cjs → chunk-KVLFERWL.cjs} +5 -5
- package/dist/{chunk-RJEZSH2W.js → chunk-KVRTFBTL.js} +2 -2
- package/dist/{chunk-XUAZ6AMA.cjs → chunk-MPDTE63P.cjs} +18 -18
- package/dist/{chunk-XFVVEEPC.cjs → chunk-OBRXTWUG.cjs} +24 -24
- package/dist/{chunk-FJYBNKEX.cjs → chunk-PFWT2TZY.cjs} +6 -6
- package/dist/{chunk-RKF72MBJ.js → chunk-R2TOKT3K.js} +8 -8
- package/dist/{chunk-DS2YFAF5.js → chunk-RXXWO456.js} +1 -1
- package/dist/{chunk-O5JRHLWQ.cjs → chunk-T5PLMA6Z.cjs} +5 -5
- package/dist/{chunk-ULU7VZRK.cjs → chunk-WQ3UV5CE.cjs} +64 -64
- package/dist/{chunk-SOB2SZPD.cjs → chunk-X7PWPAJM.cjs} +9 -9
- package/dist/{chunk-BQT3OVTI.js → chunk-ZKNTC3HX.js} +1 -1
- package/dist/clean.cjs +4 -4
- package/dist/clean.js +3 -3
- package/dist/config.cjs +6 -6
- package/dist/config.js +5 -5
- package/dist/context.cjs +7 -7
- package/dist/context.js +6 -6
- package/dist/index.cjs +15 -15
- package/dist/index.js +13 -13
- package/dist/package-json.cjs +6 -6
- package/dist/package-json.js +5 -5
- package/dist/plugins/deps-check.cjs +4 -4
- package/dist/plugins/deps-check.js +3 -3
- package/dist/plugins/resolve-paths.cjs +11 -11
- package/dist/plugins/resolve-paths.js +2 -2
- package/dist/tsup.cjs +5 -5
- package/dist/tsup.js +4 -4
- package/dist/types.cjs +2 -2
- package/dist/types.js +2 -2
- package/dist/watch.cjs +6 -6
- package/dist/watch.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-HVKSR7EQ.cjs +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
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(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKRQE5BEEcjs = require('./chunk-KRQE5BEE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,13 +10,13 @@ var _chunkM37UEA6Vcjs = require('./chunk-M37UEA6V.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkX7PWPAJMcjs = require('./chunk-X7PWPAJM.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk46KVHK5Gcjs = require('./chunk-46KVHK5G.cjs');
|
|
17
17
|
|
|
18
18
|
// ../build-tools/src/config.ts
|
|
19
|
-
|
|
19
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
20
20
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
21
21
|
*
|
|
22
22
|
* \u26A1 Built by Storm Software
|
|
@@ -27,7 +27,7 @@ var DEFAULT_ENVIRONMENT = "production";
|
|
|
27
27
|
var DEFAULT_ORGANIZATION = "storm-software";
|
|
28
28
|
|
|
29
29
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
30
|
-
|
|
30
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
31
31
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
32
32
|
var _glob = require('glob');
|
|
33
33
|
var _promises = require('fs/promises');
|
|
@@ -57,9 +57,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
57
57
|
output: "src/"
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
_chunkX7PWPAJMcjs.writeTrace.call(void 0,
|
|
61
61
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
62
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
62
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkKRQE5BEEcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
63
63
|
config
|
|
64
64
|
);
|
|
65
65
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -69,20 +69,20 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
69
69
|
assets: pendingAssets
|
|
70
70
|
});
|
|
71
71
|
await assetHandler.processAllAssetsOnce();
|
|
72
|
-
|
|
72
|
+
_chunkX7PWPAJMcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
73
73
|
if (includeSrc === true) {
|
|
74
|
-
|
|
75
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
74
|
+
_chunkX7PWPAJMcjs.writeDebug.call(void 0,
|
|
75
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkKRQE5BEEcjs.joinPaths.call(void 0,
|
|
76
76
|
outputPath,
|
|
77
77
|
"src"
|
|
78
78
|
)}`,
|
|
79
79
|
config
|
|
80
80
|
);
|
|
81
81
|
const files = await _glob.glob.call(void 0, [
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
_chunkKRQE5BEEcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
83
|
+
_chunkKRQE5BEEcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
84
|
+
_chunkKRQE5BEEcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
85
|
+
_chunkKRQE5BEEcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
86
86
|
]);
|
|
87
87
|
await Promise.allSettled(
|
|
88
88
|
files.map(
|
|
@@ -100,14 +100,14 @@ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `//
|
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
// ../build-tools/src/utilities/generate-package-json.ts
|
|
103
|
-
|
|
103
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
104
104
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
105
105
|
|
|
106
106
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
107
|
-
|
|
107
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
108
108
|
|
|
109
109
|
// ../config-tools/src/utilities/find-up.ts
|
|
110
|
-
|
|
110
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
111
111
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
112
112
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
113
113
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -175,11 +175,11 @@ var rootDirectories = [
|
|
|
175
175
|
];
|
|
176
176
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
177
177
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
178
|
-
return
|
|
178
|
+
return _chunkKRQE5BEEcjs.correctPaths.call(void 0,
|
|
179
179
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
180
180
|
);
|
|
181
181
|
}
|
|
182
|
-
return
|
|
182
|
+
return _chunkKRQE5BEEcjs.correctPaths.call(void 0,
|
|
183
183
|
findFolderUp(
|
|
184
184
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
185
185
|
rootFiles,
|
|
@@ -238,7 +238,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
238
238
|
)) {
|
|
239
239
|
const projectNode = project.node;
|
|
240
240
|
if (projectNode.data.root) {
|
|
241
|
-
const projectPackageJsonPath =
|
|
241
|
+
const projectPackageJsonPath = _chunkKRQE5BEEcjs.joinPaths.call(void 0,
|
|
242
242
|
workspaceRoot,
|
|
243
243
|
projectNode.data.root,
|
|
244
244
|
"package.json"
|
|
@@ -256,11 +256,11 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
if (localPackages.length > 0) {
|
|
259
|
-
|
|
259
|
+
_chunkX7PWPAJMcjs.writeTrace.call(void 0,
|
|
260
260
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
261
261
|
);
|
|
262
262
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
263
|
-
|
|
263
|
+
_chunkKRQE5BEEcjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
264
264
|
"utf8"
|
|
265
265
|
);
|
|
266
266
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -273,7 +273,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
273
273
|
}
|
|
274
274
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
|
|
275
275
|
if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
|
|
276
|
-
const depPackageJsonPath =
|
|
276
|
+
const depPackageJsonPath = _chunkKRQE5BEEcjs.joinPaths.call(void 0,
|
|
277
277
|
workspaceRoot,
|
|
278
278
|
projectConfigurations.projects[dep].root,
|
|
279
279
|
"package.json"
|
|
@@ -304,14 +304,14 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
304
304
|
return ret;
|
|
305
305
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
306
306
|
} else {
|
|
307
|
-
|
|
307
|
+
_chunkX7PWPAJMcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
308
308
|
}
|
|
309
309
|
return packageJson;
|
|
310
310
|
};
|
|
311
311
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
312
312
|
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
313
313
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
314
|
-
|
|
314
|
+
_chunkKRQE5BEEcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
315
315
|
"utf8"
|
|
316
316
|
);
|
|
317
317
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -322,7 +322,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
322
322
|
if (distSrc.startsWith("/")) {
|
|
323
323
|
distSrc = distSrc.substring(1);
|
|
324
324
|
}
|
|
325
|
-
packageJson.source ??= `${
|
|
325
|
+
packageJson.source ??= `${_chunkKRQE5BEEcjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
326
326
|
}
|
|
327
327
|
packageJson.files ??= ["dist/**/*"];
|
|
328
328
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -347,22 +347,22 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
347
347
|
packageJson.contributors = [packageJson.author];
|
|
348
348
|
}
|
|
349
349
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
350
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
350
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkKRQE5BEEcjs.joinPaths.call(void 0, "packages", projectName);
|
|
351
351
|
return packageJson;
|
|
352
352
|
};
|
|
353
353
|
|
|
354
354
|
// ../config-tools/src/get-config.ts
|
|
355
|
-
|
|
355
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
356
356
|
|
|
357
357
|
// ../config-tools/src/create-storm-config.ts
|
|
358
|
-
|
|
358
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
359
359
|
|
|
360
360
|
// ../config/src/schema.ts
|
|
361
|
-
|
|
361
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
362
362
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
363
363
|
|
|
364
364
|
// ../config/src/constants.ts
|
|
365
|
-
|
|
365
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
366
366
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
367
367
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
368
368
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -640,21 +640,21 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
640
640
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
641
641
|
|
|
642
642
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
643
|
-
|
|
643
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
644
644
|
var _c12 = require('c12');
|
|
645
645
|
|
|
646
646
|
|
|
647
647
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
648
|
-
|
|
648
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
649
649
|
|
|
650
650
|
// ../config/src/index.ts
|
|
651
|
-
|
|
651
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
652
652
|
|
|
653
653
|
// ../config/src/define-config.ts
|
|
654
|
-
|
|
654
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
655
655
|
|
|
656
656
|
// ../config/src/types.ts
|
|
657
|
-
|
|
657
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
658
658
|
var COLOR_KEYS = [
|
|
659
659
|
"dark",
|
|
660
660
|
"light",
|
|
@@ -687,7 +687,7 @@ async function getPackageJsonConfig(root) {
|
|
|
687
687
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
688
688
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
|
|
689
689
|
const file = await _promises.readFile.call(void 0,
|
|
690
|
-
|
|
690
|
+
_chunkKRQE5BEEcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
691
691
|
"utf8"
|
|
692
692
|
);
|
|
693
693
|
if (file) {
|
|
@@ -771,7 +771,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
771
771
|
envName: _optionalChain([fileName, 'optionalAccess', _28 => _28.toUpperCase, 'call', _29 => _29()]),
|
|
772
772
|
jitiOptions: {
|
|
773
773
|
debug: false,
|
|
774
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
774
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkKRQE5BEEcjs.joinPaths.call(void 0,
|
|
775
775
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
776
776
|
"jiti"
|
|
777
777
|
)
|
|
@@ -785,7 +785,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
785
785
|
envName: _optionalChain([fileName, 'optionalAccess', _30 => _30.toUpperCase, 'call', _31 => _31()]),
|
|
786
786
|
jitiOptions: {
|
|
787
787
|
debug: false,
|
|
788
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
788
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkKRQE5BEEcjs.joinPaths.call(void 0,
|
|
789
789
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
790
790
|
"jiti"
|
|
791
791
|
)
|
|
@@ -802,7 +802,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
802
802
|
let config = result.config;
|
|
803
803
|
const configFile = result.configFile;
|
|
804
804
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
805
|
-
|
|
805
|
+
_chunkX7PWPAJMcjs.writeTrace.call(void 0,
|
|
806
806
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
807
807
|
{
|
|
808
808
|
logLevel: "all"
|
|
@@ -818,7 +818,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
818
818
|
for (const result2 of results) {
|
|
819
819
|
if (_optionalChain([result2, 'optionalAccess', _32 => _32.config]) && _optionalChain([result2, 'optionalAccess', _33 => _33.configFile]) && Object.keys(result2.config).length > 0) {
|
|
820
820
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
821
|
-
|
|
821
|
+
_chunkX7PWPAJMcjs.writeTrace.call(void 0,
|
|
822
822
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
823
823
|
{
|
|
824
824
|
logLevel: "all"
|
|
@@ -837,7 +837,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
837
837
|
};
|
|
838
838
|
|
|
839
839
|
// ../config-tools/src/env/get-env.ts
|
|
840
|
-
|
|
840
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
841
841
|
var getExtensionEnv = (extensionName) => {
|
|
842
842
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
843
843
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -895,15 +895,15 @@ var getConfigEnv = () => {
|
|
|
895
895
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
896
896
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
897
897
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
898
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
899
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
898
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
899
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
900
900
|
directories: {
|
|
901
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
902
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
903
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
904
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
905
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
906
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
901
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
902
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
903
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
904
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
905
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
906
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkKRQE5BEEcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
907
907
|
},
|
|
908
908
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
909
909
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -927,7 +927,7 @@ var getConfigEnv = () => {
|
|
|
927
927
|
},
|
|
928
928
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
929
929
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
930
|
-
) ?
|
|
930
|
+
) ? _chunkX7PWPAJMcjs.getLogLevelLabel.call(void 0,
|
|
931
931
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
932
932
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
933
933
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1048,7 +1048,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
1048
1048
|
};
|
|
1049
1049
|
|
|
1050
1050
|
// ../config-tools/src/env/set-env.ts
|
|
1051
|
-
|
|
1051
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1052
1052
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1053
1053
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1054
1054
|
if (extension[key]) {
|
|
@@ -1184,40 +1184,40 @@ var setConfigEnv = (config) => {
|
|
|
1184
1184
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1185
1185
|
}
|
|
1186
1186
|
if (config.configFile) {
|
|
1187
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
1187
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkKRQE5BEEcjs.correctPaths.call(void 0, config.configFile);
|
|
1188
1188
|
}
|
|
1189
1189
|
if (config.workspaceRoot) {
|
|
1190
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1191
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1192
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1190
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkKRQE5BEEcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1191
|
+
process.env.NX_WORKSPACE_ROOT = _chunkKRQE5BEEcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1192
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkKRQE5BEEcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1193
1193
|
}
|
|
1194
1194
|
if (config.directories) {
|
|
1195
1195
|
if (!config.skipCache && config.directories.cache) {
|
|
1196
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1196
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkKRQE5BEEcjs.correctPaths.call(void 0,
|
|
1197
1197
|
config.directories.cache
|
|
1198
1198
|
);
|
|
1199
1199
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1200
1200
|
}
|
|
1201
1201
|
if (config.directories.data) {
|
|
1202
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1202
|
+
process.env[`${prefix}DATA_DIR`] = _chunkKRQE5BEEcjs.correctPaths.call(void 0, config.directories.data);
|
|
1203
1203
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1204
1204
|
}
|
|
1205
1205
|
if (config.directories.config) {
|
|
1206
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1206
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkKRQE5BEEcjs.correctPaths.call(void 0,
|
|
1207
1207
|
config.directories.config
|
|
1208
1208
|
);
|
|
1209
1209
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1210
1210
|
}
|
|
1211
1211
|
if (config.directories.temp) {
|
|
1212
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1212
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkKRQE5BEEcjs.correctPaths.call(void 0, config.directories.temp);
|
|
1213
1213
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1214
1214
|
}
|
|
1215
1215
|
if (config.directories.log) {
|
|
1216
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1216
|
+
process.env[`${prefix}LOG_DIR`] = _chunkKRQE5BEEcjs.correctPaths.call(void 0, config.directories.log);
|
|
1217
1217
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1218
1218
|
}
|
|
1219
1219
|
if (config.directories.build) {
|
|
1220
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1220
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkKRQE5BEEcjs.correctPaths.call(void 0,
|
|
1221
1221
|
config.directories.build
|
|
1222
1222
|
);
|
|
1223
1223
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -1279,9 +1279,9 @@ var setConfigEnv = (config) => {
|
|
|
1279
1279
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1280
1280
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1281
1281
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1282
|
-
|
|
1282
|
+
_chunkX7PWPAJMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkX7PWPAJMcjs.LogLevel.DEBUG ? true : false
|
|
1283
1283
|
);
|
|
1284
|
-
process.env.RUST_BACKTRACE =
|
|
1284
|
+
process.env.RUST_BACKTRACE = _chunkX7PWPAJMcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkX7PWPAJMcjs.LogLevel.DEBUG ? "full" : "none";
|
|
1285
1285
|
}
|
|
1286
1286
|
if (config.skipConfigLogging !== void 0) {
|
|
1287
1287
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1417,7 +1417,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1417
1417
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1418
1418
|
if (!configFile) {
|
|
1419
1419
|
if (!skipLogs) {
|
|
1420
|
-
|
|
1420
|
+
_chunkX7PWPAJMcjs.writeWarning.call(void 0,
|
|
1421
1421
|
"No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
|
|
1422
1422
|
{ logLevel: "all" }
|
|
1423
1423
|
);
|
|
@@ -1441,7 +1441,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1441
1441
|
throw new Error(
|
|
1442
1442
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _58 => _58.message]) ? `: ${error.message}` : ""}
|
|
1443
1443
|
|
|
1444
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1444
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkX7PWPAJMcjs.formatLogMessage.call(void 0,
|
|
1445
1445
|
configInput
|
|
1446
1446
|
)}`,
|
|
1447
1447
|
{
|
|
@@ -1486,9 +1486,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1486
1486
|
);
|
|
1487
1487
|
setConfigEnv(config);
|
|
1488
1488
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1489
|
-
|
|
1489
|
+
_chunkX7PWPAJMcjs.writeTrace.call(void 0,
|
|
1490
1490
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1491
|
-
${
|
|
1491
|
+
${_chunkX7PWPAJMcjs.formatLogMessage.call(void 0, config)}`,
|
|
1492
1492
|
config
|
|
1493
1493
|
);
|
|
1494
1494
|
}
|
|
@@ -1508,7 +1508,7 @@ var getWorkspaceConfig = (skipLogs = true, options = {}) => {
|
|
|
1508
1508
|
};
|
|
1509
1509
|
|
|
1510
1510
|
// ../build-tools/src/utilities/get-env.ts
|
|
1511
|
-
|
|
1511
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1512
1512
|
var getEnv = (builder, options) => {
|
|
1513
1513
|
return {
|
|
1514
1514
|
STORM_BUILD: builder,
|
|
@@ -1523,56 +1523,56 @@ var getEnv = (builder, options) => {
|
|
|
1523
1523
|
};
|
|
1524
1524
|
|
|
1525
1525
|
// ../build-tools/src/index.ts
|
|
1526
|
-
|
|
1526
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1527
1527
|
|
|
1528
1528
|
// ../build-tools/src/plugins/index.ts
|
|
1529
|
-
|
|
1529
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1530
1530
|
|
|
1531
1531
|
// ../build-tools/src/plugins/analyze.ts
|
|
1532
|
-
|
|
1532
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1533
1533
|
|
|
1534
1534
|
// ../build-tools/src/plugins/swc.ts
|
|
1535
|
-
|
|
1535
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1536
1536
|
var _core = require('@swc/core');
|
|
1537
1537
|
|
|
1538
1538
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
1539
|
-
|
|
1539
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1540
1540
|
|
|
1541
1541
|
var _module = require('module');
|
|
1542
1542
|
|
|
1543
1543
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
1544
1544
|
|
|
1545
1545
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
1546
|
-
|
|
1546
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1547
1547
|
var _devkit = require('@nx/devkit');
|
|
1548
1548
|
|
|
1549
1549
|
|
|
1550
1550
|
// ../build-tools/src/types.ts
|
|
1551
|
-
|
|
1551
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1552
1552
|
|
|
1553
1553
|
// ../build-tools/src/utilities/index.ts
|
|
1554
|
-
|
|
1554
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1555
1555
|
|
|
1556
1556
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
1557
|
-
|
|
1557
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1558
1558
|
|
|
1559
1559
|
|
|
1560
1560
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
1561
|
-
|
|
1561
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1562
1562
|
|
|
1563
1563
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
1564
|
-
|
|
1564
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1565
1565
|
|
|
1566
1566
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
1567
|
-
|
|
1567
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1568
1568
|
|
|
1569
1569
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
1570
|
-
|
|
1570
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1571
1571
|
|
|
1572
1572
|
|
|
1573
1573
|
|
|
1574
1574
|
// ../build-tools/src/utilities/task-graph.ts
|
|
1575
|
-
|
|
1575
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
1576
1576
|
|
|
1577
1577
|
|
|
1578
1578
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addPackageDependencies,
|
|
3
3
|
addWorkspacePackageJsonFields
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HAZ7GRM7.js";
|
|
5
5
|
import {
|
|
6
6
|
joinPaths
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AQMXDBIP.js";
|
|
8
8
|
import {
|
|
9
9
|
getStopwatch,
|
|
10
10
|
writeDebug
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZKNTC3HX.js";
|
|
12
12
|
import {
|
|
13
13
|
init_esm_shims
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KVRTFBTL.js";
|
|
15
15
|
|
|
16
16
|
// src/package-json.ts
|
|
17
17
|
init_esm_shims();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeWarning
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZKNTC3HX.js";
|
|
5
5
|
import {
|
|
6
6
|
__require,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KVRTFBTL.js";
|
|
9
9
|
|
|
10
10
|
// src/plugins/deps-check.ts
|
|
11
11
|
init_esm_shims();
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_BUILD_OPTIONS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EJMMWJFC.js";
|
|
4
4
|
import {
|
|
5
5
|
getEnv,
|
|
6
6
|
getWorkspaceConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HAZ7GRM7.js";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AQMXDBIP.js";
|
|
11
11
|
import {
|
|
12
12
|
formatLogMessage,
|
|
13
13
|
getStopwatch,
|
|
14
14
|
writeDebug
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZKNTC3HX.js";
|
|
16
16
|
import {
|
|
17
17
|
init_esm_shims
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KVRTFBTL.js";
|
|
19
19
|
|
|
20
20
|
// src/context.ts
|
|
21
21
|
init_esm_shims();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyAssets
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HAZ7GRM7.js";
|
|
4
4
|
import {
|
|
5
5
|
getStopwatch,
|
|
6
6
|
writeDebug
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZKNTC3HX.js";
|
|
8
8
|
import {
|
|
9
9
|
init_esm_shims
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KVRTFBTL.js";
|
|
11
11
|
|
|
12
12
|
// src/assets.ts
|
|
13
13
|
init_esm_shims();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
correctPaths,
|
|
3
3
|
joinPaths
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AQMXDBIP.js";
|
|
5
5
|
import {
|
|
6
6
|
LogLevel,
|
|
7
7
|
formatLogMessage,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
writeDebug,
|
|
11
11
|
writeTrace,
|
|
12
12
|
writeWarning
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZKNTC3HX.js";
|
|
14
14
|
import {
|
|
15
15
|
init_esm_shims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KVRTFBTL.js";
|
|
17
17
|
|
|
18
18
|
// ../build-tools/src/config.ts
|
|
19
19
|
init_esm_shims();
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7HSDZTCTcjs = require('./chunk-7HSDZTCT.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkX7PWPAJMcjs = require('./chunk-X7PWPAJM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk46KVHK5Gcjs = require('./chunk-46KVHK5G.cjs');
|
|
11
11
|
|
|
12
12
|
// src/assets.ts
|
|
13
|
-
|
|
13
|
+
_chunk46KVHK5Gcjs.init_cjs_shims.call(void 0, );
|
|
14
14
|
async function copyBuildAssets(context) {
|
|
15
15
|
if (!_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
|
|
16
|
-
|
|
16
|
+
_chunkX7PWPAJMcjs.writeDebug.call(void 0,
|
|
17
17
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
18
18
|
context.workspaceConfig
|
|
19
19
|
);
|
|
20
|
-
const stopwatch =
|
|
21
|
-
await
|
|
20
|
+
const stopwatch = _chunkX7PWPAJMcjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
21
|
+
await _chunk7HSDZTCTcjs.copyAssets.call(void 0,
|
|
22
22
|
context.workspaceConfig,
|
|
23
23
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
24
24
|
context.outputPath,
|