@storm-software/build-tools 0.151.11 → 0.151.12
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/{chunk-WPW3VJUC.js → chunk-235LUEAH.js} +9 -9
- package/dist/{chunk-ID52XWB7.mjs → chunk-2HZVPJMV.mjs} +1 -1
- package/dist/{chunk-BIK66SHB.mjs → chunk-5L7QBSRV.mjs} +1 -1
- package/dist/{chunk-YN3N36EP.mjs → chunk-CR7LIMCR.mjs} +4 -4
- package/dist/{chunk-MBIOUB46.mjs → chunk-D5WU5JYO.mjs} +1 -1
- package/dist/{chunk-CTG52CN7.mjs → chunk-ECQCUT2Y.mjs} +1 -1
- package/dist/{chunk-TT5PCJSW.js → chunk-FLIDOA6P.js} +8 -8
- package/dist/{chunk-6CS2V6DM.mjs → chunk-N4IF4T2X.mjs} +1 -1
- package/dist/{chunk-MRM3NJBG.js → chunk-PHLEYLWC.js} +43 -43
- package/dist/{chunk-2DHPCEAI.js → chunk-T5QP6OGQ.js} +2 -2
- package/dist/{chunk-SYY3DLVH.js → chunk-TDDE2CMM.js} +4 -4
- package/dist/{chunk-LLWFAYFV.mjs → chunk-VI22ZXF5.mjs} +1 -1
- package/dist/{chunk-MQAQPDSW.js → chunk-VTDEKAO4.js} +8 -8
- package/dist/{chunk-NTIYDHI5.js → chunk-WMRWVQZ7.js} +10 -10
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/plugins/analyze.js +3 -3
- package/dist/plugins/analyze.mjs +2 -2
- package/dist/plugins/index.js +4 -4
- package/dist/plugins/index.mjs +3 -3
- package/dist/plugins/ts-resolve.js +3 -3
- package/dist/plugins/ts-resolve.mjs +2 -2
- package/dist/{types-Dtcm4vJy.d.mts → types-3n8VOg4P.d.mts} +2 -52
- package/dist/{types-Dtcm4vJy.d.ts → types-3n8VOg4P.d.ts} +2 -52
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utilities/copy-assets.d.mts +1 -1
- package/dist/utilities/copy-assets.d.ts +1 -1
- package/dist/utilities/copy-assets.js +3 -3
- package/dist/utilities/copy-assets.mjs +2 -2
- package/dist/utilities/generate-package-json.d.mts +1 -1
- package/dist/utilities/generate-package-json.d.ts +1 -1
- package/dist/utilities/generate-package-json.js +3 -3
- package/dist/utilities/generate-package-json.mjs +2 -2
- package/dist/utilities/get-entry-points.d.mts +1 -1
- package/dist/utilities/get-entry-points.d.ts +1 -1
- package/dist/utilities/get-entry-points.js +3 -3
- package/dist/utilities/get-entry-points.mjs +2 -2
- package/dist/utilities/get-env.d.mts +1 -1
- package/dist/utilities/get-env.d.ts +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +6 -6
- package/dist/utilities/index.mjs +5 -5
- package/dist/utilities/read-nx-config.js +3 -3
- package/dist/utilities/read-nx-config.mjs +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkTDDE2CMMjs = require('./chunk-TDDE2CMM.js');
|
|
6
6
|
|
|
7
7
|
// src/utilities/copy-assets.ts
|
|
8
8
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
@@ -34,9 +34,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
34
34
|
output: "src/"
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkTDDE2CMMjs.writeTrace.call(void 0,
|
|
38
38
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
39
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
39
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkTDDE2CMMjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
40
40
|
config
|
|
41
41
|
);
|
|
42
42
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -47,18 +47,18 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
47
47
|
});
|
|
48
48
|
await assetHandler.processAllAssetsOnce();
|
|
49
49
|
if (includeSrc === true) {
|
|
50
|
-
|
|
51
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
50
|
+
_chunkTDDE2CMMjs.writeDebug.call(void 0,
|
|
51
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkTDDE2CMMjs.joinPaths.call(void 0,
|
|
52
52
|
outputPath,
|
|
53
53
|
"src"
|
|
54
54
|
)}`,
|
|
55
55
|
config
|
|
56
56
|
);
|
|
57
57
|
const files = await _glob.glob.call(void 0, [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
_chunkTDDE2CMMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
59
|
+
_chunkTDDE2CMMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
60
|
+
_chunkTDDE2CMMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
61
|
+
_chunkTDDE2CMMjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
62
62
|
]);
|
|
63
63
|
await Promise.allSettled(
|
|
64
64
|
files.map(
|
|
@@ -343,10 +343,10 @@ var RegistryConfigSchema = z.object({
|
|
|
343
343
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
344
344
|
MultiThemeColorConfigSchema
|
|
345
345
|
).describe("Colors used for various workspace elements");
|
|
346
|
-
var ColorConfigMapSchema = z.
|
|
347
|
-
z.
|
|
348
|
-
|
|
349
|
-
|
|
346
|
+
var ColorConfigMapSchema = z.record(
|
|
347
|
+
z.union([z.literal("base"), z.string()]),
|
|
348
|
+
ColorConfigSchema
|
|
349
|
+
);
|
|
350
350
|
var ExtendsItemSchema = z.string().trim().describe(
|
|
351
351
|
"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
|
|
352
352
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkTDDE2CMMjs = require('./chunk-TDDE2CMM.js');
|
|
4
4
|
|
|
5
5
|
// src/plugins/ts-resolve.ts
|
|
6
6
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
@@ -26,8 +26,8 @@ var tsResolvePlugin = ({
|
|
|
26
26
|
return {
|
|
27
27
|
name: `storm:ts-resolve`,
|
|
28
28
|
async resolveId(source, importer) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkTDDE2CMMjs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
|
|
30
|
+
_chunkTDDE2CMMjs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
|
|
31
31
|
if (!importer) {
|
|
32
32
|
return null;
|
|
33
33
|
}
|
|
@@ -38,7 +38,7 @@ var tsResolvePlugin = ({
|
|
|
38
38
|
return false;
|
|
39
39
|
}
|
|
40
40
|
if (ignore && ignore(source, importer)) {
|
|
41
|
-
|
|
41
|
+
_chunkTDDE2CMMjs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
if (resolveOnly) {
|
|
@@ -47,12 +47,12 @@ var tsResolvePlugin = ({
|
|
|
47
47
|
return v.test(source);
|
|
48
48
|
});
|
|
49
49
|
if (!shouldResolve) {
|
|
50
|
-
|
|
50
|
+
_chunkTDDE2CMMjs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
if (_path2.default.isAbsolute(source)) {
|
|
55
|
-
|
|
55
|
+
_chunkTDDE2CMMjs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
|
|
56
56
|
return null;
|
|
57
57
|
}
|
|
58
58
|
const basedir = importer ? await _fs2.default.promises.realpath(_path2.default.dirname(importer)) : process.cwd();
|
|
@@ -81,10 +81,10 @@ var tsResolvePlugin = ({
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
if (id) {
|
|
84
|
-
|
|
84
|
+
_chunkTDDE2CMMjs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
|
|
85
85
|
return id;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
_chunkTDDE2CMMjs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
90
|
};
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkTDDE2CMMjs = require('./chunk-TDDE2CMM.js');
|
|
19
19
|
|
|
20
20
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
21
21
|
var _c12 = require('c12');
|
|
22
22
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
23
23
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
24
|
-
const workspacePath = filePath ||
|
|
24
|
+
const workspacePath = filePath || _chunkTDDE2CMMjs.findWorkspaceRoot.call(void 0, filePath);
|
|
25
25
|
const configs = await Promise.all([
|
|
26
26
|
_c12.loadConfig.call(void 0, {
|
|
27
27
|
cwd: workspacePath,
|
|
@@ -30,7 +30,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
30
30
|
envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
|
|
31
31
|
jitiOptions: {
|
|
32
32
|
debug: false,
|
|
33
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
33
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTDDE2CMMjs.joinPaths.call(void 0,
|
|
34
34
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
35
35
|
"jiti"
|
|
36
36
|
)
|
|
@@ -44,7 +44,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
44
44
|
envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
|
|
45
45
|
jitiOptions: {
|
|
46
46
|
debug: false,
|
|
47
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
47
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTDDE2CMMjs.joinPaths.call(void 0,
|
|
48
48
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
49
49
|
"jiti"
|
|
50
50
|
)
|
|
@@ -56,12 +56,12 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
56
56
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
57
57
|
};
|
|
58
58
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
59
|
-
const workspacePath = filePath ? filePath :
|
|
59
|
+
const workspacePath = filePath ? filePath : _chunkTDDE2CMMjs.findWorkspaceRoot.call(void 0, filePath);
|
|
60
60
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
61
61
|
let config = result.config;
|
|
62
62
|
const configFile = result.configFile;
|
|
63
63
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
64
|
-
|
|
64
|
+
_chunkTDDE2CMMjs.writeTrace.call(void 0,
|
|
65
65
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
66
66
|
{
|
|
67
67
|
logLevel: "all"
|
|
@@ -77,7 +77,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
77
77
|
for (const result2 of results) {
|
|
78
78
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
79
79
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
80
|
-
|
|
80
|
+
_chunkTDDE2CMMjs.writeTrace.call(void 0,
|
|
81
81
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
82
82
|
{
|
|
83
83
|
logLevel: "all"
|
|
@@ -156,15 +156,15 @@ var getConfigEnv = () => {
|
|
|
156
156
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
157
157
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
158
158
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
159
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
160
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
159
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
160
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
161
161
|
directories: {
|
|
162
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
163
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
164
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
165
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
166
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
167
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
162
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
163
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
164
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
165
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
166
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
167
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkTDDE2CMMjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
168
168
|
},
|
|
169
169
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
170
170
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -189,13 +189,13 @@ var getConfigEnv = () => {
|
|
|
189
189
|
},
|
|
190
190
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
191
191
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
192
|
-
) ?
|
|
192
|
+
) ? _chunkTDDE2CMMjs.getLogLevelLabel.call(void 0,
|
|
193
193
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
194
194
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
195
195
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
196
196
|
};
|
|
197
197
|
const themeNames = Object.keys(process.env).filter(
|
|
198
|
-
(envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
198
|
+
(envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkTDDE2CMMjs.COLOR_KEYS.every(
|
|
199
199
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
200
200
|
)
|
|
201
201
|
);
|
|
@@ -206,16 +206,16 @@ var getConfigEnv = () => {
|
|
|
206
206
|
},
|
|
207
207
|
{}
|
|
208
208
|
) : getThemeColorConfigEnv(prefix);
|
|
209
|
-
if (config.docs ===
|
|
210
|
-
if (config.homepage ===
|
|
211
|
-
config.docs = `${
|
|
209
|
+
if (config.docs === _chunkTDDE2CMMjs.STORM_DEFAULT_DOCS) {
|
|
210
|
+
if (config.homepage === _chunkTDDE2CMMjs.STORM_DEFAULT_HOMEPAGE) {
|
|
211
|
+
config.docs = `${_chunkTDDE2CMMjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
212
212
|
} else {
|
|
213
213
|
config.docs = `${config.homepage}/docs`;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
if (config.licensing ===
|
|
217
|
-
if (config.homepage ===
|
|
218
|
-
config.licensing = `${
|
|
216
|
+
if (config.licensing === _chunkTDDE2CMMjs.STORM_DEFAULT_LICENSING) {
|
|
217
|
+
if (config.homepage === _chunkTDDE2CMMjs.STORM_DEFAULT_HOMEPAGE) {
|
|
218
|
+
config.licensing = `${_chunkTDDE2CMMjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
219
219
|
} else {
|
|
220
220
|
config.licensing = `${config.homepage}/docs`;
|
|
221
221
|
}
|
|
@@ -416,40 +416,40 @@ var setConfigEnv = (config) => {
|
|
|
416
416
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
417
417
|
}
|
|
418
418
|
if (config.configFile) {
|
|
419
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
419
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkTDDE2CMMjs.correctPaths.call(void 0, config.configFile);
|
|
420
420
|
}
|
|
421
421
|
if (config.workspaceRoot) {
|
|
422
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
423
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
424
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
422
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkTDDE2CMMjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
423
|
+
process.env.NX_WORKSPACE_ROOT = _chunkTDDE2CMMjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
424
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkTDDE2CMMjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
425
425
|
}
|
|
426
426
|
if (config.directories) {
|
|
427
427
|
if (!config.skipCache && config.directories.cache) {
|
|
428
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
428
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkTDDE2CMMjs.correctPaths.call(void 0,
|
|
429
429
|
config.directories.cache
|
|
430
430
|
);
|
|
431
431
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
432
432
|
}
|
|
433
433
|
if (config.directories.data) {
|
|
434
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
434
|
+
process.env[`${prefix}DATA_DIR`] = _chunkTDDE2CMMjs.correctPaths.call(void 0, config.directories.data);
|
|
435
435
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
436
436
|
}
|
|
437
437
|
if (config.directories.config) {
|
|
438
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
438
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkTDDE2CMMjs.correctPaths.call(void 0,
|
|
439
439
|
config.directories.config
|
|
440
440
|
);
|
|
441
441
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
442
442
|
}
|
|
443
443
|
if (config.directories.temp) {
|
|
444
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
444
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkTDDE2CMMjs.correctPaths.call(void 0, config.directories.temp);
|
|
445
445
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
446
446
|
}
|
|
447
447
|
if (config.directories.log) {
|
|
448
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
448
|
+
process.env[`${prefix}LOG_DIR`] = _chunkTDDE2CMMjs.correctPaths.call(void 0, config.directories.log);
|
|
449
449
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
450
450
|
}
|
|
451
451
|
if (config.directories.build) {
|
|
452
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
452
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkTDDE2CMMjs.correctPaths.call(void 0,
|
|
453
453
|
config.directories.build
|
|
454
454
|
);
|
|
455
455
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -516,9 +516,9 @@ var setConfigEnv = (config) => {
|
|
|
516
516
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
517
517
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
518
518
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
519
|
-
|
|
519
|
+
_chunkTDDE2CMMjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTDDE2CMMjs.LogLevel.DEBUG ? true : false
|
|
520
520
|
);
|
|
521
|
-
process.env.RUST_BACKTRACE =
|
|
521
|
+
process.env.RUST_BACKTRACE = _chunkTDDE2CMMjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTDDE2CMMjs.LogLevel.DEBUG ? "full" : "none";
|
|
522
522
|
}
|
|
523
523
|
if (config.skipConfigLogging !== void 0) {
|
|
524
524
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -638,13 +638,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
638
638
|
if (!_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) || !_optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
639
639
|
let _workspaceRoot = workspaceRoot;
|
|
640
640
|
if (!_workspaceRoot) {
|
|
641
|
-
_workspaceRoot =
|
|
641
|
+
_workspaceRoot = _chunkTDDE2CMMjs.findWorkspaceRoot.call(void 0, );
|
|
642
642
|
}
|
|
643
643
|
const configEnv = getConfigEnv();
|
|
644
644
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
645
645
|
if (!configFile) {
|
|
646
646
|
if (!skipLogs) {
|
|
647
|
-
|
|
647
|
+
_chunkTDDE2CMMjs.writeWarning.call(void 0,
|
|
648
648
|
"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",
|
|
649
649
|
{ logLevel: "all" }
|
|
650
650
|
);
|
|
@@ -653,9 +653,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
653
653
|
return void 0;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
const defaultConfig = await
|
|
657
|
-
result =
|
|
658
|
-
await
|
|
656
|
+
const defaultConfig = await _chunkTDDE2CMMjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
|
|
657
|
+
result = _chunkTDDE2CMMjs.applyDefaultConfig.call(void 0,
|
|
658
|
+
await _chunkTDDE2CMMjs.stormWorkspaceConfigSchema.parseAsync(
|
|
659
659
|
_defu2.default.call(void 0, configEnv, configFile, defaultConfig)
|
|
660
660
|
)
|
|
661
661
|
);
|
|
@@ -697,9 +697,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
697
697
|
);
|
|
698
698
|
setConfigEnv(config);
|
|
699
699
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
700
|
-
|
|
700
|
+
_chunkTDDE2CMMjs.writeTrace.call(void 0,
|
|
701
701
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
702
|
-
${
|
|
702
|
+
${_chunkTDDE2CMMjs.formatLogMessage.call(void 0, config)}`,
|
|
703
703
|
config
|
|
704
704
|
);
|
|
705
705
|
}
|
|
@@ -720,7 +720,7 @@ var readNxConfig = async (workspaceRoot) => {
|
|
|
720
720
|
const config = await getConfig();
|
|
721
721
|
rootDir = config.workspaceRoot;
|
|
722
722
|
}
|
|
723
|
-
const nxJsonPath =
|
|
723
|
+
const nxJsonPath = _chunkTDDE2CMMjs.joinPaths.call(void 0, rootDir, "nx.json");
|
|
724
724
|
if (!_fs.existsSync.call(void 0, nxJsonPath)) {
|
|
725
725
|
throw new Error("Cannot find project.json configuration");
|
|
726
726
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTDDE2CMMjs = require('./chunk-TDDE2CMM.js');
|
|
4
4
|
|
|
5
5
|
// src/plugins/analyze.ts
|
|
6
6
|
var formatBytes = (bytes) => {
|
|
@@ -22,7 +22,7 @@ function analyze() {
|
|
|
22
22
|
renderChunk(source, chunk) {
|
|
23
23
|
const sourceBytes = formatBytes(source.length);
|
|
24
24
|
const fileName = chunk.fileName;
|
|
25
|
-
|
|
25
|
+
_chunkTDDE2CMMjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
@@ -343,10 +343,10 @@ var RegistryConfigSchema = z.object({
|
|
|
343
343
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
344
344
|
MultiThemeColorConfigSchema
|
|
345
345
|
).describe("Colors used for various workspace elements");
|
|
346
|
-
var ColorConfigMapSchema = z.
|
|
347
|
-
z.
|
|
348
|
-
|
|
349
|
-
|
|
346
|
+
var ColorConfigMapSchema = z.record(
|
|
347
|
+
z.union([z.literal("base"), z.string()]),
|
|
348
|
+
ColorConfigSchema
|
|
349
|
+
);
|
|
350
350
|
var ExtendsItemSchema = z.string().trim().describe(
|
|
351
351
|
"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
|
|
352
352
|
);
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTDDE2CMMjs = require('./chunk-TDDE2CMM.js');
|
|
7
7
|
|
|
8
8
|
// src/utilities/get-entry-points.ts
|
|
9
9
|
var _glob = require('glob');
|
|
10
10
|
var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
11
|
-
const workspaceRoot = config.workspaceRoot ||
|
|
11
|
+
const workspaceRoot = config.workspaceRoot || _chunkTDDE2CMMjs.findWorkspaceRoot.call(void 0, );
|
|
12
12
|
const entryPoints = [];
|
|
13
13
|
if (entry) {
|
|
14
14
|
if (typeof entry === "string") {
|
|
@@ -21,7 +21,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
21
21
|
}
|
|
22
22
|
if (emitOnAll) {
|
|
23
23
|
entryPoints.push(
|
|
24
|
-
|
|
24
|
+
_chunkTDDE2CMMjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
27
|
const results = await Promise.all(
|
|
@@ -34,12 +34,12 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
34
34
|
});
|
|
35
35
|
paths.push(
|
|
36
36
|
...files.reduce((ret, filePath) => {
|
|
37
|
-
const result =
|
|
38
|
-
|
|
37
|
+
const result = _chunkTDDE2CMMjs.correctPaths.call(void 0,
|
|
38
|
+
_chunkTDDE2CMMjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkTDDE2CMMjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkTDDE2CMMjs.correctPaths.call(void 0, projectRoot), "")
|
|
39
39
|
);
|
|
40
40
|
if (result) {
|
|
41
|
-
|
|
42
|
-
`Trying to add entry point ${result} at "${
|
|
41
|
+
_chunkTDDE2CMMjs.writeDebug.call(void 0,
|
|
42
|
+
`Trying to add entry point ${result} at "${_chunkTDDE2CMMjs.joinPaths.call(void 0,
|
|
43
43
|
filePath.path,
|
|
44
44
|
filePath.name
|
|
45
45
|
)}"`,
|
|
@@ -53,7 +53,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
53
53
|
}, [])
|
|
54
54
|
);
|
|
55
55
|
} else {
|
|
56
|
-
|
|
56
|
+
_chunkTDDE2CMMjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
57
57
|
if (!paths.includes(entryPoint)) {
|
|
58
58
|
paths.push(entryPoint);
|
|
59
59
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkTDDE2CMMjs = require('./chunk-TDDE2CMM.js');
|
|
6
6
|
|
|
7
7
|
// src/utilities/generate-package-json.ts
|
|
8
8
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
@@ -42,7 +42,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
42
42
|
)) {
|
|
43
43
|
const projectNode = project.node;
|
|
44
44
|
if (projectNode.data.root) {
|
|
45
|
-
const projectPackageJsonPath =
|
|
45
|
+
const projectPackageJsonPath = _chunkTDDE2CMMjs.joinPaths.call(void 0,
|
|
46
46
|
workspaceRoot,
|
|
47
47
|
projectNode.data.root,
|
|
48
48
|
"package.json"
|
|
@@ -60,11 +60,11 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
if (localPackages.length > 0) {
|
|
63
|
-
|
|
63
|
+
_chunkTDDE2CMMjs.writeTrace.call(void 0,
|
|
64
64
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
65
65
|
);
|
|
66
66
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
67
|
-
|
|
67
|
+
_chunkTDDE2CMMjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
68
68
|
"utf8"
|
|
69
69
|
);
|
|
70
70
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -77,7 +77,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
77
77
|
}
|
|
78
78
|
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) => {
|
|
79
79
|
if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
|
|
80
|
-
const depPackageJsonPath =
|
|
80
|
+
const depPackageJsonPath = _chunkTDDE2CMMjs.joinPaths.call(void 0,
|
|
81
81
|
workspaceRoot,
|
|
82
82
|
projectConfigurations.projects[dep].root,
|
|
83
83
|
"package.json"
|
|
@@ -108,14 +108,14 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
108
108
|
return ret;
|
|
109
109
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
110
110
|
} else {
|
|
111
|
-
|
|
111
|
+
_chunkTDDE2CMMjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
112
112
|
}
|
|
113
113
|
return packageJson;
|
|
114
114
|
};
|
|
115
115
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
116
|
-
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
116
|
+
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkTDDE2CMMjs.findWorkspaceRoot.call(void 0, );
|
|
117
117
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
118
|
-
|
|
118
|
+
_chunkTDDE2CMMjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
119
119
|
"utf8"
|
|
120
120
|
);
|
|
121
121
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -126,7 +126,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
126
126
|
if (distSrc.startsWith("/")) {
|
|
127
127
|
distSrc = distSrc.substring(1);
|
|
128
128
|
}
|
|
129
|
-
packageJson.source ??= `${
|
|
129
|
+
packageJson.source ??= `${_chunkTDDE2CMMjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
130
130
|
}
|
|
131
131
|
packageJson.files ??= ["dist/**/*"];
|
|
132
132
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -151,7 +151,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
151
151
|
packageJson.contributors = [packageJson.author];
|
|
152
152
|
}
|
|
153
153
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
154
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
154
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkTDDE2CMMjs.joinPaths.call(void 0, "packages", projectName);
|
|
155
155
|
return packageJson;
|
|
156
156
|
};
|
|
157
157
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
package/dist/index.d.mts
CHANGED
|
@@ -14,7 +14,7 @@ export { getExternalDependencies, getExtraDependencies, getInternalDependencies
|
|
|
14
14
|
export { readNxConfig } from './utilities/read-nx-config.mjs';
|
|
15
15
|
export { createTaskId, getAllWorkspaceTaskGraphs } from './utilities/task-graph.mjs';
|
|
16
16
|
import 'rollup';
|
|
17
|
-
import './types-
|
|
17
|
+
import './types-3n8VOg4P.mjs';
|
|
18
18
|
import 'zod/v4';
|
|
19
19
|
import '@nx/devkit';
|
|
20
20
|
import '@nx/js/src/utils/buildable-libs-utils';
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export { getExternalDependencies, getExtraDependencies, getInternalDependencies
|
|
|
14
14
|
export { readNxConfig } from './utilities/read-nx-config.js';
|
|
15
15
|
export { createTaskId, getAllWorkspaceTaskGraphs } from './utilities/task-graph.js';
|
|
16
16
|
import 'rollup';
|
|
17
|
-
import './types-
|
|
17
|
+
import './types-3n8VOg4P.js';
|
|
18
18
|
import 'zod/v4';
|
|
19
19
|
import '@nx/devkit';
|
|
20
20
|
import '@nx/js/src/utils/buildable-libs-utils';
|