@storm-software/esbuild 0.47.7 → 0.47.8
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 +1 -1
- package/dist/assets.cjs +6 -6
- package/dist/assets.js +5 -5
- package/dist/build.cjs +12 -12
- package/dist/build.js +11 -11
- package/dist/{chunk-TQ7FXT5W.cjs → chunk-35CZ4A75.cjs} +22 -22
- package/dist/{chunk-VIQ4UDWA.cjs → chunk-3IYN4AMY.cjs} +64 -64
- package/dist/{chunk-JG7MZJV2.cjs → chunk-4WZ6P6VK.cjs} +2 -2
- package/dist/{chunk-5OCVL4NC.js → chunk-4ZDNVWJS.js} +2 -2
- package/dist/{chunk-ZXS7BLGE.js → chunk-AVHH6S4L.js} +5 -5
- package/dist/{chunk-SPIG74KS.js → chunk-C53NNT43.js} +4 -4
- package/dist/{chunk-R3SVN3BO.js → chunk-DQCFGOUF.js} +3 -3
- package/dist/{chunk-CKFE6AY5.js → chunk-E7YPFD24.js} +1 -1
- package/dist/{chunk-5R2QF7FG.cjs → chunk-FJY2SITF.cjs} +5 -5
- package/dist/{chunk-4KTFAYGL.cjs → chunk-HLI6PFBX.cjs} +83 -83
- package/dist/chunk-KOTL3LZB.cjs +6 -0
- package/dist/{chunk-4QE4FZB2.js → chunk-KSMSESIB.js} +7 -7
- package/dist/{chunk-W4OIIV5S.js → chunk-LVW5LEAH.js} +2 -2
- package/dist/{chunk-DNQXOUY4.cjs → chunk-MFN3SHAN.cjs} +18 -18
- package/dist/{chunk-I7VU53I5.cjs → chunk-NNPOK4ZA.cjs} +2 -2
- package/dist/{chunk-4YDNSQCF.js → chunk-NO5VVOAS.js} +2 -2
- package/dist/{chunk-BG2GOKPN.cjs → chunk-NXEDGL2L.cjs} +5 -5
- package/dist/{chunk-FGEXMBEE.js → chunk-OHR2A47N.js} +1 -1
- package/dist/{chunk-E7QRYIXP.cjs → chunk-RHU3X337.cjs} +7 -7
- package/dist/{chunk-7DZ3NOLB.cjs → chunk-SUEOLCXE.cjs} +9 -9
- package/dist/{chunk-5EIXD3FY.js → chunk-U7RMK5ET.js} +15 -15
- package/dist/{chunk-B4VYSTGG.js → chunk-UUUQVVRP.js} +1 -1
- package/dist/{chunk-NVYTS7UE.js → chunk-V4V6EEGM.js} +3 -3
- package/dist/{chunk-4F23ZOVV.cjs → chunk-WTG24PW3.cjs} +13 -13
- 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 +14 -14
- package/dist/index.js +12 -12
- package/dist/package-json.cjs +6 -6
- package/dist/package-json.js +5 -5
- package/dist/plugins/deps-check.cjs +6 -6
- package/dist/plugins/deps-check.js +2 -2
- 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 +9 -9
- package/dist/chunk-EI2RU6ED.cjs +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkHLI6PFBXcjs = require('./chunk-HLI6PFBX.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4WZ6P6VKcjs = require('./chunk-4WZ6P6VK.cjs');
|
|
7
7
|
|
|
8
8
|
// src/config.ts
|
|
9
|
-
|
|
9
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
10
10
|
var DEFAULT_BUILD_OPTIONS = {
|
|
11
11
|
platform: "node",
|
|
12
12
|
target: "node22",
|
|
@@ -44,8 +44,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
44
44
|
".woff2": "file"
|
|
45
45
|
},
|
|
46
46
|
banner: {
|
|
47
|
-
js:
|
|
48
|
-
css:
|
|
47
|
+
js: _chunkHLI6PFBXcjs.DEFAULT_COMPILED_BANNER,
|
|
48
|
+
css: _chunkHLI6PFBXcjs.DEFAULT_COMPILED_BANNER
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -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 _chunkNNPOK4ZAcjs = require('./chunk-NNPOK4ZA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,13 +10,13 @@ var _chunkI7VU53I5cjs = require('./chunk-I7VU53I5.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkSUEOLCXEcjs = require('./chunk-SUEOLCXE.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk4WZ6P6VKcjs = require('./chunk-4WZ6P6VK.cjs');
|
|
17
17
|
|
|
18
18
|
// ../build-tools/src/config.ts
|
|
19
|
-
|
|
19
|
+
_chunk4WZ6P6VKcjs.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
|
+
_chunk4WZ6P6VKcjs.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
|
+
_chunkSUEOLCXEcjs.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} -> ${_chunkNNPOK4ZAcjs.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
|
+
_chunkSUEOLCXEcjs.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
|
+
_chunkSUEOLCXEcjs.writeDebug.call(void 0,
|
|
75
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkNNPOK4ZAcjs.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
|
+
_chunkNNPOK4ZAcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
83
|
+
_chunkNNPOK4ZAcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
84
|
+
_chunkNNPOK4ZAcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
85
|
+
_chunkNNPOK4ZAcjs.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
|
+
_chunk4WZ6P6VKcjs.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
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
108
108
|
|
|
109
109
|
// ../config-tools/src/utilities/find-up.ts
|
|
110
|
-
|
|
110
|
+
_chunk4WZ6P6VKcjs.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 _chunkNNPOK4ZAcjs.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 _chunkNNPOK4ZAcjs.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 = _chunkNNPOK4ZAcjs.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
|
+
_chunkSUEOLCXEcjs.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
|
+
_chunkNNPOK4ZAcjs.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 = _chunkNNPOK4ZAcjs.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
|
+
_chunkSUEOLCXEcjs.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
|
+
_chunkNNPOK4ZAcjs.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 ??= `${_chunkNNPOK4ZAcjs.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 : _chunkNNPOK4ZAcjs.joinPaths.call(void 0, "packages", projectName);
|
|
351
351
|
return packageJson;
|
|
352
352
|
};
|
|
353
353
|
|
|
354
354
|
// ../config-tools/src/get-config.ts
|
|
355
|
-
|
|
355
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
356
356
|
|
|
357
357
|
// ../config-tools/src/create-storm-config.ts
|
|
358
|
-
|
|
358
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
359
359
|
|
|
360
360
|
// ../config/src/schema.ts
|
|
361
|
-
|
|
361
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
362
362
|
var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
|
|
363
363
|
|
|
364
364
|
// ../config/src/constants.ts
|
|
365
|
-
|
|
365
|
+
_chunk4WZ6P6VKcjs.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";
|
|
@@ -929,21 +929,21 @@ schemaRegistry.add(extensionsSchema, {
|
|
|
929
929
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
930
930
|
|
|
931
931
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
932
|
-
|
|
932
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
933
933
|
var _c12 = require('c12');
|
|
934
934
|
|
|
935
935
|
|
|
936
936
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
937
|
-
|
|
937
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
938
938
|
|
|
939
939
|
// ../config/src/index.ts
|
|
940
|
-
|
|
940
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
941
941
|
|
|
942
942
|
// ../config/src/define-config.ts
|
|
943
|
-
|
|
943
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
944
944
|
|
|
945
945
|
// ../config/src/types.ts
|
|
946
|
-
|
|
946
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
947
947
|
var COLOR_KEYS = [
|
|
948
948
|
"dark",
|
|
949
949
|
"light",
|
|
@@ -976,7 +976,7 @@ async function getPackageJsonConfig(root) {
|
|
|
976
976
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
977
977
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
|
|
978
978
|
const file = await _promises.readFile.call(void 0,
|
|
979
|
-
|
|
979
|
+
_chunkNNPOK4ZAcjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
980
980
|
"utf8"
|
|
981
981
|
);
|
|
982
982
|
if (file) {
|
|
@@ -1060,7 +1060,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1060
1060
|
envName: _optionalChain([fileName, 'optionalAccess', _28 => _28.toUpperCase, 'call', _29 => _29()]),
|
|
1061
1061
|
jitiOptions: {
|
|
1062
1062
|
debug: false,
|
|
1063
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1063
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkNNPOK4ZAcjs.joinPaths.call(void 0,
|
|
1064
1064
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1065
1065
|
"jiti"
|
|
1066
1066
|
)
|
|
@@ -1074,7 +1074,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1074
1074
|
envName: _optionalChain([fileName, 'optionalAccess', _30 => _30.toUpperCase, 'call', _31 => _31()]),
|
|
1075
1075
|
jitiOptions: {
|
|
1076
1076
|
debug: false,
|
|
1077
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1077
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkNNPOK4ZAcjs.joinPaths.call(void 0,
|
|
1078
1078
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1079
1079
|
"jiti"
|
|
1080
1080
|
)
|
|
@@ -1091,7 +1091,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1091
1091
|
let config = result.config;
|
|
1092
1092
|
const configFile = result.configFile;
|
|
1093
1093
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
1094
|
-
|
|
1094
|
+
_chunkSUEOLCXEcjs.writeTrace.call(void 0,
|
|
1095
1095
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
1096
1096
|
{
|
|
1097
1097
|
logLevel: "all"
|
|
@@ -1107,7 +1107,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1107
1107
|
for (const result2 of results) {
|
|
1108
1108
|
if (_optionalChain([result2, 'optionalAccess', _32 => _32.config]) && _optionalChain([result2, 'optionalAccess', _33 => _33.configFile]) && Object.keys(result2.config).length > 0) {
|
|
1109
1109
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
1110
|
-
|
|
1110
|
+
_chunkSUEOLCXEcjs.writeTrace.call(void 0,
|
|
1111
1111
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
1112
1112
|
{
|
|
1113
1113
|
logLevel: "all"
|
|
@@ -1126,7 +1126,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1126
1126
|
};
|
|
1127
1127
|
|
|
1128
1128
|
// ../config-tools/src/env/get-env.ts
|
|
1129
|
-
|
|
1129
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1130
1130
|
var getExtensionEnv = (extensionName) => {
|
|
1131
1131
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
1132
1132
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
@@ -1187,15 +1187,15 @@ var getConfigEnv = () => {
|
|
|
1187
1187
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1188
1188
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1189
1189
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1190
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
1191
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1190
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1191
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1192
1192
|
directories: {
|
|
1193
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1194
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1195
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1196
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1197
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1198
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1193
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1194
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1195
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1196
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1197
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1198
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkNNPOK4ZAcjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1199
1199
|
},
|
|
1200
1200
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1201
1201
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1219,7 +1219,7 @@ var getConfigEnv = () => {
|
|
|
1219
1219
|
},
|
|
1220
1220
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
1221
1221
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1222
|
-
) ?
|
|
1222
|
+
) ? _chunkSUEOLCXEcjs.getLogLevelLabel.call(void 0,
|
|
1223
1223
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1224
1224
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
1225
1225
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1338,7 +1338,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
1338
1338
|
};
|
|
1339
1339
|
|
|
1340
1340
|
// ../config-tools/src/env/set-env.ts
|
|
1341
|
-
|
|
1341
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1342
1342
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1343
1343
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1344
1344
|
if (extension[key]) {
|
|
@@ -1483,42 +1483,42 @@ var setConfigEnv = (config) => {
|
|
|
1483
1483
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1484
1484
|
}
|
|
1485
1485
|
if (config.configFile) {
|
|
1486
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1486
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkNNPOK4ZAcjs.correctPaths.call(void 0,
|
|
1487
1487
|
config.configFile
|
|
1488
1488
|
);
|
|
1489
1489
|
}
|
|
1490
1490
|
if (config.workspaceRoot) {
|
|
1491
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1492
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1493
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1491
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkNNPOK4ZAcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1492
|
+
process.env.NX_WORKSPACE_ROOT = _chunkNNPOK4ZAcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1493
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkNNPOK4ZAcjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1494
1494
|
}
|
|
1495
1495
|
if (config.directories) {
|
|
1496
1496
|
if (!config.skipCache && config.directories.cache) {
|
|
1497
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1497
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkNNPOK4ZAcjs.correctPaths.call(void 0,
|
|
1498
1498
|
config.directories.cache
|
|
1499
1499
|
);
|
|
1500
1500
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1501
1501
|
}
|
|
1502
1502
|
if (config.directories.data) {
|
|
1503
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1503
|
+
process.env[`${prefix}DATA_DIR`] = _chunkNNPOK4ZAcjs.correctPaths.call(void 0, config.directories.data);
|
|
1504
1504
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1505
1505
|
}
|
|
1506
1506
|
if (config.directories.config) {
|
|
1507
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1507
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkNNPOK4ZAcjs.correctPaths.call(void 0,
|
|
1508
1508
|
config.directories.config
|
|
1509
1509
|
);
|
|
1510
1510
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1511
1511
|
}
|
|
1512
1512
|
if (config.directories.temp) {
|
|
1513
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1513
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkNNPOK4ZAcjs.correctPaths.call(void 0, config.directories.temp);
|
|
1514
1514
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1515
1515
|
}
|
|
1516
1516
|
if (config.directories.log) {
|
|
1517
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1517
|
+
process.env[`${prefix}LOG_DIR`] = _chunkNNPOK4ZAcjs.correctPaths.call(void 0, config.directories.log);
|
|
1518
1518
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1519
1519
|
}
|
|
1520
1520
|
if (config.directories.build) {
|
|
1521
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1521
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkNNPOK4ZAcjs.correctPaths.call(void 0,
|
|
1522
1522
|
config.directories.build
|
|
1523
1523
|
);
|
|
1524
1524
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -1580,9 +1580,9 @@ var setConfigEnv = (config) => {
|
|
|
1580
1580
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1581
1581
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1582
1582
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1583
|
-
|
|
1583
|
+
_chunkSUEOLCXEcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkSUEOLCXEcjs.LogLevel.DEBUG ? true : false
|
|
1584
1584
|
);
|
|
1585
|
-
process.env.RUST_BACKTRACE =
|
|
1585
|
+
process.env.RUST_BACKTRACE = _chunkSUEOLCXEcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkSUEOLCXEcjs.LogLevel.DEBUG ? "full" : "none";
|
|
1586
1586
|
}
|
|
1587
1587
|
if (config.skipConfigLogging !== void 0) {
|
|
1588
1588
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1718,7 +1718,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1718
1718
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1719
1719
|
if (!configFile) {
|
|
1720
1720
|
if (!skipLogs) {
|
|
1721
|
-
|
|
1721
|
+
_chunkSUEOLCXEcjs.writeWarning.call(void 0,
|
|
1722
1722
|
"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",
|
|
1723
1723
|
{ logLevel: "all" }
|
|
1724
1724
|
);
|
|
@@ -1742,7 +1742,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1742
1742
|
throw new Error(
|
|
1743
1743
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _58 => _58.message]) ? `: ${error.message}` : ""}
|
|
1744
1744
|
|
|
1745
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1745
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkSUEOLCXEcjs.formatLogMessage.call(void 0,
|
|
1746
1746
|
configInput
|
|
1747
1747
|
)}`,
|
|
1748
1748
|
{
|
|
@@ -1787,9 +1787,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1787
1787
|
);
|
|
1788
1788
|
setConfigEnv(config);
|
|
1789
1789
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1790
|
-
|
|
1790
|
+
_chunkSUEOLCXEcjs.writeTrace.call(void 0,
|
|
1791
1791
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1792
|
-
${
|
|
1792
|
+
${_chunkSUEOLCXEcjs.formatLogMessage.call(void 0, config)}`,
|
|
1793
1793
|
config
|
|
1794
1794
|
);
|
|
1795
1795
|
}
|
|
@@ -1809,7 +1809,7 @@ var getWorkspaceConfig = (skipLogs = true, options = {}) => {
|
|
|
1809
1809
|
};
|
|
1810
1810
|
|
|
1811
1811
|
// ../build-tools/src/utilities/get-env.ts
|
|
1812
|
-
|
|
1812
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1813
1813
|
var getEnv = (builder, options) => {
|
|
1814
1814
|
return {
|
|
1815
1815
|
STORM_BUILD: builder,
|
|
@@ -1824,56 +1824,56 @@ var getEnv = (builder, options) => {
|
|
|
1824
1824
|
};
|
|
1825
1825
|
|
|
1826
1826
|
// ../build-tools/src/index.ts
|
|
1827
|
-
|
|
1827
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1828
1828
|
|
|
1829
1829
|
// ../build-tools/src/plugins/index.ts
|
|
1830
|
-
|
|
1830
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1831
1831
|
|
|
1832
1832
|
// ../build-tools/src/plugins/analyze.ts
|
|
1833
|
-
|
|
1833
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1834
1834
|
|
|
1835
1835
|
// ../build-tools/src/plugins/swc.ts
|
|
1836
|
-
|
|
1836
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1837
1837
|
var _core = require('@swc/core');
|
|
1838
1838
|
|
|
1839
1839
|
// ../build-tools/src/plugins/ts-resolve.ts
|
|
1840
|
-
|
|
1840
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1841
1841
|
|
|
1842
1842
|
var _module = require('module');
|
|
1843
1843
|
|
|
1844
1844
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
1845
1845
|
|
|
1846
1846
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
1847
|
-
|
|
1847
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1848
1848
|
var _devkit = require('@nx/devkit');
|
|
1849
1849
|
|
|
1850
1850
|
|
|
1851
1851
|
// ../build-tools/src/types.ts
|
|
1852
|
-
|
|
1852
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1853
1853
|
|
|
1854
1854
|
// ../build-tools/src/utilities/index.ts
|
|
1855
|
-
|
|
1855
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1856
1856
|
|
|
1857
1857
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
1858
|
-
|
|
1858
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1859
1859
|
|
|
1860
1860
|
|
|
1861
1861
|
// ../build-tools/src/utilities/get-file-banner.ts
|
|
1862
|
-
|
|
1862
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1863
1863
|
|
|
1864
1864
|
// ../build-tools/src/utilities/get-out-extension.ts
|
|
1865
|
-
|
|
1865
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1866
1866
|
|
|
1867
1867
|
// ../build-tools/src/utilities/get-project-deps.ts
|
|
1868
|
-
|
|
1868
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1869
1869
|
|
|
1870
1870
|
// ../build-tools/src/utilities/read-nx-config.ts
|
|
1871
|
-
|
|
1871
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1872
1872
|
|
|
1873
1873
|
|
|
1874
1874
|
|
|
1875
1875
|
// ../build-tools/src/utilities/task-graph.ts
|
|
1876
|
-
|
|
1876
|
+
_chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
|
|
1877
1877
|
|
|
1878
1878
|
|
|
1879
1879
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyBuildAssets
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DQCFGOUF.js";
|
|
4
4
|
import {
|
|
5
5
|
cleanDirectories
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NO5VVOAS.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AVHH6S4L.js";
|
|
10
10
|
import {
|
|
11
11
|
generatePackageJson
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-C53NNT43.js";
|
|
13
13
|
import {
|
|
14
14
|
executeTsup
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U7RMK5ET.js";
|
|
16
16
|
import {
|
|
17
17
|
getStopwatch,
|
|
18
18
|
writeDebug,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
writeFatal,
|
|
21
21
|
writeSuccess,
|
|
22
22
|
writeWarning
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-E7YPFD24.js";
|
|
24
24
|
import {
|
|
25
25
|
init_esm_shims
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4ZDNVWJS.js";
|
|
27
27
|
|
|
28
28
|
// src/build.ts
|
|
29
29
|
init_esm_shims();
|