@storm-software/unbuild 0.57.190 → 0.57.191
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/bin/unbuild.cjs +2 -2
- package/bin/unbuild.js +2 -2
- package/dist/build.cjs +7 -7
- package/dist/build.js +6 -6
- package/dist/{chunk-PCHJ54SN.cjs → chunk-2DAHJKJE.cjs} +2 -2
- package/dist/{chunk-4TRA3XWX.cjs → chunk-3ZCIIDMR.cjs} +3 -3
- package/dist/{chunk-IIHTWBYJ.js → chunk-6KIN4GZO.js} +1 -1
- package/dist/{chunk-AGI5F65F.cjs → chunk-7GZ2ZBKW.cjs} +2 -2
- package/dist/{chunk-O2V4R64B.cjs → chunk-7KWZHUN2.cjs} +3 -3
- package/dist/{chunk-C2APOGUR.js → chunk-JF6Y4WH6.js} +1 -1
- package/dist/{chunk-Q4MOO4WF.js → chunk-K7LEIUET.js} +1 -1
- package/dist/{chunk-IXTF3DX6.js → chunk-PA7FGTKF.js} +5 -5
- package/dist/{chunk-YTAOGZ77.js → chunk-RJD3FW5L.js} +2 -2
- package/dist/{chunk-WRKU52FZ.cjs → chunk-ROFC2IQA.cjs} +2 -2
- package/dist/{chunk-ZUCNE3OF.js → chunk-XZ6O7MCW.js} +1 -1
- package/dist/{chunk-TAZQZ4I2.cjs → chunk-YPQAOOFU.cjs} +44 -44
- package/dist/clean.cjs +3 -3
- package/dist/clean.js +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +6 -6
- package/dist/plugins/analyze.cjs +3 -3
- package/dist/plugins/analyze.js +2 -2
- package/dist/plugins/on-error.cjs +3 -3
- package/dist/plugins/on-error.js +2 -2
- package/dist/plugins/tsc.cjs +3 -3
- package/dist/plugins/tsc.js +2 -2
- package/package.json +7 -7
package/bin/unbuild.cjs
CHANGED
|
@@ -986,13 +986,13 @@ ${message.sort(
|
|
|
986
986
|
{ prefix: `${prefix}--`, skip, sort },
|
|
987
987
|
depth2 + 1
|
|
988
988
|
)}`
|
|
989
|
-
).join("\n")}` : typeof message === "object" ? `
|
|
989
|
+
).join("\n")}` : typeof message === "object" && message ? `
|
|
990
990
|
${Object.keys(message).filter(
|
|
991
991
|
(key) => typeof key !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key.toLowerCase().trim())
|
|
992
992
|
).sort(
|
|
993
993
|
sort ? (a, b) => !a && !b ? 0 : !a ? 1 : !b ? -1 : String(a).localeCompare(String(b)) : void 0
|
|
994
994
|
).map(
|
|
995
|
-
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
|
|
995
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" && message[key] ? Object.keys(message[key]).filter(
|
|
996
996
|
(key2) => typeof key2 !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key2.toLowerCase().trim())
|
|
997
997
|
).length === 0 ? "{}" : formatLogMessage(
|
|
998
998
|
message[key],
|
package/bin/unbuild.js
CHANGED
|
@@ -964,13 +964,13 @@ ${message.sort(
|
|
|
964
964
|
{ prefix: `${prefix}--`, skip, sort },
|
|
965
965
|
depth2 + 1
|
|
966
966
|
)}`
|
|
967
|
-
).join("\n")}` : typeof message === "object" ? `
|
|
967
|
+
).join("\n")}` : typeof message === "object" && message ? `
|
|
968
968
|
${Object.keys(message).filter(
|
|
969
969
|
(key) => typeof key !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key.toLowerCase().trim())
|
|
970
970
|
).sort(
|
|
971
971
|
sort ? (a, b) => !a && !b ? 0 : !a ? 1 : !b ? -1 : String(a).localeCompare(String(b)) : void 0
|
|
972
972
|
).map(
|
|
973
|
-
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
|
|
973
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" && message[key] ? Object.keys(message[key]).filter(
|
|
974
974
|
(key2) => typeof key2 !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key2.toLowerCase().trim())
|
|
975
975
|
).length === 0 ? "{}" : formatLogMessage(
|
|
976
976
|
message[key],
|
package/dist/build.cjs
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
8
|
+
var _chunkYPQAOOFUcjs = require('./chunk-YPQAOOFU.cjs');
|
|
9
|
+
require('./chunk-3ZCIIDMR.cjs');
|
|
10
|
+
require('./chunk-ROFC2IQA.cjs');
|
|
11
|
+
require('./chunk-7KWZHUN2.cjs');
|
|
12
|
+
require('./chunk-2DAHJKJE.cjs');
|
|
13
|
+
require('./chunk-7GZ2ZBKW.cjs');
|
|
14
14
|
require('./chunk-OBGZSXTJ.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -19,4 +19,4 @@ require('./chunk-OBGZSXTJ.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.build =
|
|
22
|
+
exports.build = _chunkYPQAOOFUcjs.build; exports.cleanOutputPath = _chunkYPQAOOFUcjs.cleanOutputPath; exports.copyBuildAssets = _chunkYPQAOOFUcjs.copyBuildAssets; exports.executeUnbuild = _chunkYPQAOOFUcjs.executeUnbuild; exports.generatePackageJson = _chunkYPQAOOFUcjs.generatePackageJson; exports.resolveOptions = _chunkYPQAOOFUcjs.resolveOptions;
|
package/dist/build.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
executeUnbuild,
|
|
6
6
|
generatePackageJson,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-PA7FGTKF.js";
|
|
9
|
+
import "./chunk-K7LEIUET.js";
|
|
10
|
+
import "./chunk-XZ6O7MCW.js";
|
|
11
|
+
import "./chunk-JF6Y4WH6.js";
|
|
12
|
+
import "./chunk-6KIN4GZO.js";
|
|
13
|
+
import "./chunk-RJD3FW5L.js";
|
|
14
14
|
import "./chunk-3RG5ZIWI.js";
|
|
15
15
|
export {
|
|
16
16
|
build,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7GZ2ZBKWcjs = require('./chunk-7GZ2ZBKW.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/tsc.ts
|
|
6
6
|
|
|
@@ -45,7 +45,7 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
|
|
|
45
45
|
declaration: true,
|
|
46
46
|
paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
_chunk7GZ2ZBKWcjs.writeTrace.call(void 0, compilerOptions, config);
|
|
49
49
|
return compilerOptions;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7GZ2ZBKWcjs = require('./chunk-7GZ2ZBKW.cjs');
|
|
5
5
|
|
|
6
6
|
// src/clean.ts
|
|
7
7
|
var _promises = require('fs/promises');
|
|
8
8
|
async function clean(name = "Unbuild", directory, config) {
|
|
9
|
-
|
|
10
|
-
const stopwatch =
|
|
9
|
+
_chunk7GZ2ZBKWcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
10
|
+
const stopwatch = _chunk7GZ2ZBKWcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
11
11
|
await cleanDirectories(name, directory, config);
|
|
12
12
|
stopwatch();
|
|
13
13
|
}
|
|
@@ -365,13 +365,13 @@ ${message.sort(
|
|
|
365
365
|
{ prefix: `${prefix}--`, skip, sort },
|
|
366
366
|
depth + 1
|
|
367
367
|
)}`
|
|
368
|
-
).join("\n")}` : typeof message === "object" ? `
|
|
368
|
+
).join("\n")}` : typeof message === "object" && message ? `
|
|
369
369
|
${Object.keys(message).filter(
|
|
370
370
|
(key) => typeof key !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key.toLowerCase().trim())
|
|
371
371
|
).sort(
|
|
372
372
|
sort ? (a, b) => !a && !b ? 0 : !a ? 1 : !b ? -1 : String(a).localeCompare(String(b)) : void 0
|
|
373
373
|
).map(
|
|
374
|
-
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
|
|
374
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" && message[key] ? Object.keys(message[key]).filter(
|
|
375
375
|
(key2) => typeof key2 !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key2.toLowerCase().trim())
|
|
376
376
|
).length === 0 ? "{}" : formatLogMessage(
|
|
377
377
|
message[key],
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7GZ2ZBKWcjs = require('./chunk-7GZ2ZBKW.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/on-error.ts
|
|
6
6
|
var onErrorPlugin = (options) => ({
|
|
7
7
|
name: "storm:on-error",
|
|
8
8
|
buildEnd(error) {
|
|
9
9
|
if (error) {
|
|
10
|
-
|
|
10
|
+
_chunk7GZ2ZBKWcjs.writeError.call(void 0,
|
|
11
11
|
`The following errors occurred during the build:
|
|
12
12
|
${error ? error.message : "Unknown build error"}
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ ${error ? error.message : "Unknown build error"}
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
renderError(error) {
|
|
21
|
-
|
|
21
|
+
_chunk7GZ2ZBKWcjs.writeError.call(void 0,
|
|
22
22
|
`The following errors occurred during the build:
|
|
23
23
|
${error ? error.message : "Unknown build error"}
|
|
24
24
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanDirectories
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K7LEIUET.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XZ6O7MCW.js";
|
|
7
7
|
import {
|
|
8
8
|
onErrorPlugin
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JF6Y4WH6.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig,
|
|
12
12
|
tscPlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6KIN4GZO.js";
|
|
14
14
|
import {
|
|
15
15
|
LogLevel,
|
|
16
16
|
LogLevelLabel,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
writeSuccess,
|
|
26
26
|
writeTrace,
|
|
27
27
|
writeWarning
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RJD3FW5L.js";
|
|
29
29
|
|
|
30
30
|
// src/build.ts
|
|
31
31
|
import {
|
|
@@ -365,13 +365,13 @@ ${message.sort(
|
|
|
365
365
|
{ prefix: `${prefix}--`, skip, sort },
|
|
366
366
|
depth + 1
|
|
367
367
|
)}`
|
|
368
|
-
).join("\n")}` : typeof message === "object" ? `
|
|
368
|
+
).join("\n")}` : typeof message === "object" && message ? `
|
|
369
369
|
${Object.keys(message).filter(
|
|
370
370
|
(key) => typeof key !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key.toLowerCase().trim())
|
|
371
371
|
).sort(
|
|
372
372
|
sort ? (a, b) => !a && !b ? 0 : !a ? 1 : !b ? -1 : String(a).localeCompare(String(b)) : void 0
|
|
373
373
|
).map(
|
|
374
|
-
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
|
|
374
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" && message[key] ? Object.keys(message[key]).filter(
|
|
375
375
|
(key2) => typeof key2 !== "string" || !skip.map((k) => k.toLowerCase().trim()).includes(key2.toLowerCase().trim())
|
|
376
376
|
).length === 0 ? "{}" : formatLogMessage(
|
|
377
377
|
message[key],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7GZ2ZBKWcjs = require('./chunk-7GZ2ZBKW.cjs');
|
|
4
4
|
|
|
5
5
|
// src/plugins/analyze.ts
|
|
6
6
|
var formatBytes = (bytes) => {
|
|
@@ -17,7 +17,7 @@ var analyzePlugin = (options) => {
|
|
|
17
17
|
renderChunk(source, chunk) {
|
|
18
18
|
const sourceBytes = formatBytes(source.length);
|
|
19
19
|
const fileName = chunk.fileName;
|
|
20
|
-
|
|
20
|
+
_chunk7GZ2ZBKWcjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, options.config);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunk3ZCIIDMRcjs = require('./chunk-3ZCIIDMR.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkROFC2IQAcjs = require('./chunk-ROFC2IQA.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk7KWZHUN2cjs = require('./chunk-7KWZHUN2.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk2DAHJKJEcjs = require('./chunk-2DAHJKJE.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,7 +25,7 @@ var _chunkPCHJ54SNcjs = require('./chunk-PCHJ54SN.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk7GZ2ZBKWcjs = require('./chunk-7GZ2ZBKW.cjs');
|
|
29
29
|
|
|
30
30
|
// src/build.ts
|
|
31
31
|
|
|
@@ -206,7 +206,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
206
206
|
output: "src/"
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
_chunk7GZ2ZBKWcjs.writeTrace.call(void 0,
|
|
210
210
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
211
211
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
212
212
|
config
|
|
@@ -218,9 +218,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
218
218
|
assets: pendingAssets
|
|
219
219
|
});
|
|
220
220
|
await assetHandler.processAllAssetsOnce();
|
|
221
|
-
|
|
221
|
+
_chunk7GZ2ZBKWcjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
222
222
|
if (includeSrc === true) {
|
|
223
|
-
|
|
223
|
+
_chunk7GZ2ZBKWcjs.writeDebug.call(void 0,
|
|
224
224
|
`\u{1F4DD} Adding banner and writing source files: ${joinPaths(
|
|
225
225
|
outputPath,
|
|
226
226
|
"src"
|
|
@@ -399,7 +399,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
if (localPackages.length > 0) {
|
|
402
|
-
|
|
402
|
+
_chunk7GZ2ZBKWcjs.writeTrace.call(void 0,
|
|
403
403
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
404
404
|
);
|
|
405
405
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -447,7 +447,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
447
447
|
return ret;
|
|
448
448
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
449
449
|
} else {
|
|
450
|
-
|
|
450
|
+
_chunk7GZ2ZBKWcjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
451
451
|
}
|
|
452
452
|
return packageJson;
|
|
453
453
|
};
|
|
@@ -1234,7 +1234,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1234
1234
|
let config = result.config;
|
|
1235
1235
|
const configFile = result.configFile;
|
|
1236
1236
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
1237
|
-
|
|
1237
|
+
_chunk7GZ2ZBKWcjs.writeTrace.call(void 0,
|
|
1238
1238
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
1239
1239
|
{
|
|
1240
1240
|
logLevel: "all"
|
|
@@ -1250,7 +1250,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
1250
1250
|
for (const result2 of results) {
|
|
1251
1251
|
if (_optionalChain([result2, 'optionalAccess', _34 => _34.config]) && _optionalChain([result2, 'optionalAccess', _35 => _35.configFile]) && Object.keys(result2.config).length > 0) {
|
|
1252
1252
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
1253
|
-
|
|
1253
|
+
_chunk7GZ2ZBKWcjs.writeTrace.call(void 0,
|
|
1254
1254
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
1255
1255
|
{
|
|
1256
1256
|
logLevel: "all"
|
|
@@ -1366,7 +1366,7 @@ var getConfigEnv = () => {
|
|
|
1366
1366
|
},
|
|
1367
1367
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
1368
1368
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1369
|
-
) ?
|
|
1369
|
+
) ? _chunk7GZ2ZBKWcjs.getLogLevelLabel.call(void 0,
|
|
1370
1370
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
1371
1371
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
1372
1372
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1733,9 +1733,9 @@ var setConfigEnv = (config) => {
|
|
|
1733
1733
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1734
1734
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1735
1735
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1736
|
-
|
|
1736
|
+
_chunk7GZ2ZBKWcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk7GZ2ZBKWcjs.LogLevel.DEBUG ? true : false
|
|
1737
1737
|
);
|
|
1738
|
-
process.env.RUST_BACKTRACE =
|
|
1738
|
+
process.env.RUST_BACKTRACE = _chunk7GZ2ZBKWcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk7GZ2ZBKWcjs.LogLevel.DEBUG ? "full" : "none";
|
|
1739
1739
|
}
|
|
1740
1740
|
if (config.skipConfigLogging !== void 0) {
|
|
1741
1741
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1883,7 +1883,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1883
1883
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1884
1884
|
if (!configFile) {
|
|
1885
1885
|
if (!skipLogs) {
|
|
1886
|
-
|
|
1886
|
+
_chunk7GZ2ZBKWcjs.writeWarning.call(void 0,
|
|
1887
1887
|
"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",
|
|
1888
1888
|
{ logLevel: "all" }
|
|
1889
1889
|
);
|
|
@@ -1914,7 +1914,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1914
1914
|
throw new Error(
|
|
1915
1915
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _60 => _60.message]) ? `: ${error.message}` : ""}
|
|
1916
1916
|
|
|
1917
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1917
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunk7GZ2ZBKWcjs.formatLogMessage.call(void 0,
|
|
1918
1918
|
configInput
|
|
1919
1919
|
)}`,
|
|
1920
1920
|
{
|
|
@@ -1959,9 +1959,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1959
1959
|
);
|
|
1960
1960
|
setConfigEnv(config);
|
|
1961
1961
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1962
|
-
|
|
1962
|
+
_chunk7GZ2ZBKWcjs.writeTrace.call(void 0,
|
|
1963
1963
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1964
|
-
${
|
|
1964
|
+
${_chunk7GZ2ZBKWcjs.formatLogMessage.call(void 0, config)}`,
|
|
1965
1965
|
config
|
|
1966
1966
|
);
|
|
1967
1967
|
}
|
|
@@ -1997,10 +1997,10 @@ var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
|
1997
1997
|
|
|
1998
1998
|
var _unbuild = require('unbuild');
|
|
1999
1999
|
async function resolveOptions(options, config) {
|
|
2000
|
-
|
|
2001
|
-
const stopwatch =
|
|
2000
|
+
_chunk7GZ2ZBKWcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
2001
|
+
const stopwatch = _chunk7GZ2ZBKWcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
2002
2002
|
if (options.configPath) {
|
|
2003
|
-
const configFile = await
|
|
2003
|
+
const configFile = await _chunk2DAHJKJEcjs.loadConfig.call(void 0, options.configPath);
|
|
2004
2004
|
if (configFile) {
|
|
2005
2005
|
options = _defu2.default.call(void 0, options, configFile);
|
|
2006
2006
|
}
|
|
@@ -2181,7 +2181,7 @@ async function resolveOptions(options, config) {
|
|
|
2181
2181
|
treeShaking: options.treeShaking !== false,
|
|
2182
2182
|
platform: options.platform || "neutral",
|
|
2183
2183
|
color: true,
|
|
2184
|
-
logLevel: config.logLevel ===
|
|
2184
|
+
logLevel: config.logLevel === _chunk7GZ2ZBKWcjs.LogLevelLabel.FATAL ? _chunk7GZ2ZBKWcjs.LogLevelLabel.ERROR : _chunk7GZ2ZBKWcjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
2187
|
};
|
|
@@ -2202,7 +2202,7 @@ async function resolveOptions(options, config) {
|
|
|
2202
2202
|
if (options.rollup) {
|
|
2203
2203
|
let rollup = {};
|
|
2204
2204
|
if (typeof options.rollup === "string") {
|
|
2205
|
-
const rollupFile = await
|
|
2205
|
+
const rollupFile = await _chunk2DAHJKJEcjs.loadConfig.call(void 0, options.rollup);
|
|
2206
2206
|
if (rollupFile) {
|
|
2207
2207
|
rollup = rollupFile;
|
|
2208
2208
|
}
|
|
@@ -2214,20 +2214,20 @@ async function resolveOptions(options, config) {
|
|
|
2214
2214
|
resolvedOptions.hooks = {
|
|
2215
2215
|
"rollup:options": async (ctx, opts) => {
|
|
2216
2216
|
if (options.plugins && options.plugins.length > 0) {
|
|
2217
|
-
|
|
2217
|
+
_chunk7GZ2ZBKWcjs.writeDebug.call(void 0,
|
|
2218
2218
|
` \u{1F9E9} Found ${options.plugins.length} plugins in provided build options`,
|
|
2219
2219
|
config
|
|
2220
2220
|
);
|
|
2221
2221
|
opts.plugins = options.plugins;
|
|
2222
2222
|
} else {
|
|
2223
|
-
|
|
2223
|
+
_chunk7GZ2ZBKWcjs.writeDebug.call(void 0,
|
|
2224
2224
|
` \u{1F9E9} No plugins found in provided build options, using default plugins`,
|
|
2225
2225
|
config
|
|
2226
2226
|
);
|
|
2227
2227
|
opts.plugins = await Promise.all([
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2228
|
+
_chunkROFC2IQAcjs.analyzePlugin.call(void 0, resolvedOptions),
|
|
2229
|
+
_chunk2DAHJKJEcjs.tscPlugin.call(void 0, resolvedOptions),
|
|
2230
|
+
_chunk7KWZHUN2cjs.onErrorPlugin.call(void 0, resolvedOptions)
|
|
2231
2231
|
]);
|
|
2232
2232
|
}
|
|
2233
2233
|
},
|
|
@@ -2282,8 +2282,8 @@ var addPackageJsonExport = (file, type = "module", sourceRoot, projectRoot) => {
|
|
|
2282
2282
|
};
|
|
2283
2283
|
async function generatePackageJson(options) {
|
|
2284
2284
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(options.projectRoot, "package.json"))) {
|
|
2285
|
-
|
|
2286
|
-
const stopwatch =
|
|
2285
|
+
_chunk7GZ2ZBKWcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
2286
|
+
const stopwatch = _chunk7GZ2ZBKWcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
2287
2287
|
const packageJsonPath = joinPaths(options.projectRoot, "project.json");
|
|
2288
2288
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
2289
2289
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -2381,11 +2381,11 @@ async function generatePackageJson(options) {
|
|
|
2381
2381
|
return options;
|
|
2382
2382
|
}
|
|
2383
2383
|
async function executeUnbuild(options) {
|
|
2384
|
-
|
|
2384
|
+
_chunk7GZ2ZBKWcjs.writeDebug.call(void 0,
|
|
2385
2385
|
` \u{1F680} Running ${options.name} (${options.projectRoot}) build`,
|
|
2386
2386
|
options.config
|
|
2387
2387
|
);
|
|
2388
|
-
const stopwatch =
|
|
2388
|
+
const stopwatch = _chunk7GZ2ZBKWcjs.getStopwatch.call(void 0,
|
|
2389
2389
|
`${options.name} (${options.projectRoot}) build`
|
|
2390
2390
|
);
|
|
2391
2391
|
try {
|
|
@@ -2394,9 +2394,9 @@ async function executeUnbuild(options) {
|
|
|
2394
2394
|
config: null,
|
|
2395
2395
|
rootDir: joinPaths(options.config.workspaceRoot, options.projectRoot)
|
|
2396
2396
|
};
|
|
2397
|
-
|
|
2397
|
+
_chunk7GZ2ZBKWcjs.writeTrace.call(void 0,
|
|
2398
2398
|
`Running with unbuild configuration:
|
|
2399
|
-
${
|
|
2399
|
+
${_chunk7GZ2ZBKWcjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" })}
|
|
2400
2400
|
`,
|
|
2401
2401
|
options.config
|
|
2402
2402
|
);
|
|
@@ -2407,11 +2407,11 @@ ${_chunkAGI5F65Fcjs.formatLogMessage.call(void 0, { ...config, env: "<Hidden>" }
|
|
|
2407
2407
|
return options;
|
|
2408
2408
|
}
|
|
2409
2409
|
async function copyBuildAssets(options) {
|
|
2410
|
-
|
|
2410
|
+
_chunk7GZ2ZBKWcjs.writeDebug.call(void 0,
|
|
2411
2411
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
2412
2412
|
options.config
|
|
2413
2413
|
);
|
|
2414
|
-
const stopwatch =
|
|
2414
|
+
const stopwatch = _chunk7GZ2ZBKWcjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
2415
2415
|
await copyAssets(
|
|
2416
2416
|
options.config,
|
|
2417
2417
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
@@ -2426,12 +2426,12 @@ async function copyBuildAssets(options) {
|
|
|
2426
2426
|
}
|
|
2427
2427
|
async function cleanOutputPath(options) {
|
|
2428
2428
|
if (options.clean !== false && options.outDir) {
|
|
2429
|
-
|
|
2429
|
+
_chunk7GZ2ZBKWcjs.writeDebug.call(void 0,
|
|
2430
2430
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.outDir}`,
|
|
2431
2431
|
options.config
|
|
2432
2432
|
);
|
|
2433
|
-
const stopwatch =
|
|
2434
|
-
await
|
|
2433
|
+
const stopwatch = _chunk7GZ2ZBKWcjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
2434
|
+
await _chunk3ZCIIDMRcjs.cleanDirectories.call(void 0, options.name, options.outDir, options.config);
|
|
2435
2435
|
stopwatch();
|
|
2436
2436
|
}
|
|
2437
2437
|
return options;
|
|
@@ -2446,8 +2446,8 @@ async function build(options) {
|
|
|
2446
2446
|
throw new Error("Cannot find workspace root");
|
|
2447
2447
|
}
|
|
2448
2448
|
const config = await getConfig(workspaceRoot.dir);
|
|
2449
|
-
|
|
2450
|
-
const stopwatch =
|
|
2449
|
+
_chunk7GZ2ZBKWcjs.writeDebug.call(void 0, ` ${_chunk7GZ2ZBKWcjs.brandIcon.call(void 0, config)} Executing Storm Unbuild pipeline`, config);
|
|
2450
|
+
const stopwatch = _chunk7GZ2ZBKWcjs.getStopwatch.call(void 0, "Unbuild pipeline");
|
|
2451
2451
|
try {
|
|
2452
2452
|
options.projectRoot = correctPaths(projectRoot);
|
|
2453
2453
|
const resolvedOptions = await resolveOptions(options, config);
|
|
@@ -2459,12 +2459,12 @@ async function build(options) {
|
|
|
2459
2459
|
if (options.buildOnly !== true) {
|
|
2460
2460
|
await copyBuildAssets(resolvedOptions);
|
|
2461
2461
|
}
|
|
2462
|
-
|
|
2462
|
+
_chunk7GZ2ZBKWcjs.writeSuccess.call(void 0,
|
|
2463
2463
|
` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`,
|
|
2464
2464
|
config
|
|
2465
2465
|
);
|
|
2466
2466
|
} catch (error) {
|
|
2467
|
-
|
|
2467
|
+
_chunk7GZ2ZBKWcjs.writeFatal.call(void 0,
|
|
2468
2468
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated.",
|
|
2469
2469
|
config
|
|
2470
2470
|
);
|
package/dist/clean.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunk3ZCIIDMRcjs = require('./chunk-3ZCIIDMR.cjs');
|
|
5
|
+
require('./chunk-7GZ2ZBKW.cjs');
|
|
6
6
|
require('./chunk-OBGZSXTJ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.clean =
|
|
10
|
+
exports.clean = _chunk3ZCIIDMRcjs.clean; exports.cleanDirectories = _chunk3ZCIIDMRcjs.cleanDirectories;
|
package/dist/clean.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkYPQAOOFUcjs = require('./chunk-YPQAOOFU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk3ZCIIDMRcjs = require('./chunk-3ZCIIDMR.cjs');
|
|
13
13
|
require('./chunk-SFZRYJZ2.cjs');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-ROFC2IQA.cjs');
|
|
15
|
+
require('./chunk-7KWZHUN2.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunk2DAHJKJEcjs = require('./chunk-2DAHJKJE.cjs');
|
|
20
|
+
require('./chunk-7GZ2ZBKW.cjs');
|
|
21
21
|
require('./chunk-OBGZSXTJ.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
@@ -30,4 +30,4 @@ require('./chunk-OBGZSXTJ.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.build =
|
|
33
|
+
exports.build = _chunkYPQAOOFUcjs.build; exports.clean = _chunk3ZCIIDMRcjs.clean; exports.cleanDirectories = _chunk3ZCIIDMRcjs.cleanDirectories; exports.cleanOutputPath = _chunkYPQAOOFUcjs.cleanOutputPath; exports.copyBuildAssets = _chunkYPQAOOFUcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunk2DAHJKJEcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkYPQAOOFUcjs.executeUnbuild; exports.generatePackageJson = _chunkYPQAOOFUcjs.generatePackageJson; exports.loadConfig = _chunk2DAHJKJEcjs.loadConfig; exports.resolveOptions = _chunkYPQAOOFUcjs.resolveOptions;
|
package/dist/index.js
CHANGED
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
executeUnbuild,
|
|
6
6
|
generatePackageJson,
|
|
7
7
|
resolveOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PA7FGTKF.js";
|
|
9
9
|
import {
|
|
10
10
|
clean,
|
|
11
11
|
cleanDirectories
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-K7LEIUET.js";
|
|
13
13
|
import "./chunk-GGNOJ77I.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-XZ6O7MCW.js";
|
|
15
|
+
import "./chunk-JF6Y4WH6.js";
|
|
16
16
|
import {
|
|
17
17
|
createTsCompilerOptions,
|
|
18
18
|
loadConfig
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-6KIN4GZO.js";
|
|
20
|
+
import "./chunk-RJD3FW5L.js";
|
|
21
21
|
import "./chunk-3RG5ZIWI.js";
|
|
22
22
|
export {
|
|
23
23
|
build,
|
package/dist/plugins/analyze.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkROFC2IQAcjs = require('../chunk-ROFC2IQA.cjs');
|
|
4
|
+
require('../chunk-7GZ2ZBKW.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.analyzePlugin =
|
|
8
|
+
exports.analyzePlugin = _chunkROFC2IQAcjs.analyzePlugin;
|
package/dist/plugins/analyze.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunk7KWZHUN2cjs = require('../chunk-7KWZHUN2.cjs');
|
|
4
|
+
require('../chunk-7GZ2ZBKW.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.onErrorPlugin =
|
|
8
|
+
exports.onErrorPlugin = _chunk7KWZHUN2cjs.onErrorPlugin;
|
package/dist/plugins/on-error.js
CHANGED
package/dist/plugins/tsc.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunk2DAHJKJEcjs = require('../chunk-2DAHJKJE.cjs');
|
|
4
|
+
require('../chunk-7GZ2ZBKW.cjs');
|
|
5
5
|
require('../chunk-OBGZSXTJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.tscPlugin =
|
|
8
|
+
exports.tscPlugin = _chunk2DAHJKJEcjs.tscPlugin;
|
package/dist/plugins/tsc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/unbuild",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.191",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"unbuild"
|
|
132
132
|
],
|
|
133
133
|
"peerDependencies": {
|
|
134
|
-
"@nx/devkit": "^22.7.
|
|
134
|
+
"@nx/devkit": "^22.7.3",
|
|
135
135
|
"@nx/js": "22.7.2",
|
|
136
136
|
"@swc/core": "1.7.26",
|
|
137
137
|
"nx": "22.7.2",
|
|
@@ -147,9 +147,9 @@
|
|
|
147
147
|
"typescript": { "optional": false }
|
|
148
148
|
},
|
|
149
149
|
"dependencies": {
|
|
150
|
-
"@storm-software/build-tools": "^0.158.
|
|
151
|
-
"@storm-software/config": "^1.137.
|
|
152
|
-
"@storm-software/config-tools": "^1.190.
|
|
150
|
+
"@storm-software/build-tools": "^0.158.190",
|
|
151
|
+
"@storm-software/config": "^1.137.62",
|
|
152
|
+
"@storm-software/config-tools": "^1.190.30",
|
|
153
153
|
"commander": "^12.1.0",
|
|
154
154
|
"defu": "^6.1.7",
|
|
155
155
|
"esbuild": "^0.25.12",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"unbuild": "^3.6.1"
|
|
163
163
|
},
|
|
164
164
|
"devDependencies": {
|
|
165
|
-
"@nx/devkit": "^22.7.
|
|
165
|
+
"@nx/devkit": "^22.7.3",
|
|
166
166
|
"@nx/js": "22.7.2",
|
|
167
167
|
"@types/node": "^25.9.1",
|
|
168
168
|
"nx": "22.7.2",
|
|
@@ -171,5 +171,5 @@
|
|
|
171
171
|
},
|
|
172
172
|
"publishConfig": { "access": "public" },
|
|
173
173
|
"sideEffects": false,
|
|
174
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "9e0891595dca1742a6d48e6833c648e8ad79327c"
|
|
175
175
|
}
|