@storm-software/unbuild 0.30.2 → 0.30.3
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/bin/unbuild.cjs +9 -4
- package/bin/unbuild.js +9 -4
- package/dist/build.cjs +2 -2
- package/dist/build.js +1 -1
- package/dist/{chunk-P7LBAA5O.cjs → chunk-NUUJLWZW.cjs} +9 -4
- package/dist/{chunk-ZQVJCLMA.js → chunk-OLWWKTSL.js} +9 -4
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
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 -->
|
package/bin/unbuild.cjs
CHANGED
|
@@ -1204,8 +1204,10 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
|
|
|
1204
1204
|
if (!buildTarget) {
|
|
1205
1205
|
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${joinPaths(projectRoot, "project.json")}`);
|
|
1206
1206
|
}
|
|
1207
|
+
writeTrace(`\u{1F4DD} Copying the following assets to the output directory:
|
|
1208
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
1207
1209
|
const result = await (0, import_js.copyAssets)({
|
|
1208
|
-
assets,
|
|
1210
|
+
assets: pendingAssets,
|
|
1209
1211
|
watch: false,
|
|
1210
1212
|
outputPath
|
|
1211
1213
|
}, {
|
|
@@ -2977,11 +2979,12 @@ async function resolveOptions(options, config) {
|
|
|
2977
2979
|
dependencies = dependencies.filter((deps) => deps.name !== tsLibDependency.name);
|
|
2978
2980
|
dependencies.push(tsLibDependency);
|
|
2979
2981
|
}
|
|
2982
|
+
const name = options.name || projectName;
|
|
2980
2983
|
const entries = options.entry ?? [
|
|
2981
2984
|
sourceRoot
|
|
2982
2985
|
];
|
|
2983
2986
|
const resolvedOptions = {
|
|
2984
|
-
name
|
|
2987
|
+
name,
|
|
2985
2988
|
config,
|
|
2986
2989
|
projectRoot: options.projectRoot,
|
|
2987
2990
|
sourceRoot,
|
|
@@ -2998,6 +3001,7 @@ async function resolveOptions(options, config) {
|
|
|
2998
3001
|
}
|
|
2999
3002
|
const outDir = joinPaths((0, import_node_path6.relative)(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
|
|
3000
3003
|
ret.push({
|
|
3004
|
+
name: `${name}-esm`,
|
|
3001
3005
|
builder: "mkdist",
|
|
3002
3006
|
input: `./${entryPath}`,
|
|
3003
3007
|
outDir,
|
|
@@ -3005,6 +3009,7 @@ async function resolveOptions(options, config) {
|
|
|
3005
3009
|
format: "esm"
|
|
3006
3010
|
});
|
|
3007
3011
|
ret.push({
|
|
3012
|
+
name: `${name}-cjs`,
|
|
3008
3013
|
builder: "mkdist",
|
|
3009
3014
|
input: `./${entryPath}`,
|
|
3010
3015
|
outDir,
|
|
@@ -3062,8 +3067,8 @@ async function resolveOptions(options, config) {
|
|
|
3062
3067
|
]
|
|
3063
3068
|
},
|
|
3064
3069
|
esbuild: {
|
|
3065
|
-
minify: options.minify
|
|
3066
|
-
sourceMap: options.sourcemap
|
|
3070
|
+
minify: options.minify ?? !options.debug,
|
|
3071
|
+
sourceMap: options.sourcemap ?? !!options.debug,
|
|
3067
3072
|
splitting: options.splitting !== false,
|
|
3068
3073
|
treeShaking: options.treeShaking !== false,
|
|
3069
3074
|
color: true,
|
package/bin/unbuild.js
CHANGED
|
@@ -1179,8 +1179,10 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
|
|
|
1179
1179
|
if (!buildTarget) {
|
|
1180
1180
|
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${joinPaths(projectRoot, "project.json")}`);
|
|
1181
1181
|
}
|
|
1182
|
+
writeTrace(`\u{1F4DD} Copying the following assets to the output directory:
|
|
1183
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
1182
1184
|
const result = await copyAssetsBase({
|
|
1183
|
-
assets,
|
|
1185
|
+
assets: pendingAssets,
|
|
1184
1186
|
watch: false,
|
|
1185
1187
|
outputPath
|
|
1186
1188
|
}, {
|
|
@@ -2952,11 +2954,12 @@ async function resolveOptions(options, config) {
|
|
|
2952
2954
|
dependencies = dependencies.filter((deps) => deps.name !== tsLibDependency.name);
|
|
2953
2955
|
dependencies.push(tsLibDependency);
|
|
2954
2956
|
}
|
|
2957
|
+
const name = options.name || projectName;
|
|
2955
2958
|
const entries = options.entry ?? [
|
|
2956
2959
|
sourceRoot
|
|
2957
2960
|
];
|
|
2958
2961
|
const resolvedOptions = {
|
|
2959
|
-
name
|
|
2962
|
+
name,
|
|
2960
2963
|
config,
|
|
2961
2964
|
projectRoot: options.projectRoot,
|
|
2962
2965
|
sourceRoot,
|
|
@@ -2973,6 +2976,7 @@ async function resolveOptions(options, config) {
|
|
|
2973
2976
|
}
|
|
2974
2977
|
const outDir = joinPaths(relative4(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
|
|
2975
2978
|
ret.push({
|
|
2979
|
+
name: `${name}-esm`,
|
|
2976
2980
|
builder: "mkdist",
|
|
2977
2981
|
input: `./${entryPath}`,
|
|
2978
2982
|
outDir,
|
|
@@ -2980,6 +2984,7 @@ async function resolveOptions(options, config) {
|
|
|
2980
2984
|
format: "esm"
|
|
2981
2985
|
});
|
|
2982
2986
|
ret.push({
|
|
2987
|
+
name: `${name}-cjs`,
|
|
2983
2988
|
builder: "mkdist",
|
|
2984
2989
|
input: `./${entryPath}`,
|
|
2985
2990
|
outDir,
|
|
@@ -3037,8 +3042,8 @@ async function resolveOptions(options, config) {
|
|
|
3037
3042
|
]
|
|
3038
3043
|
},
|
|
3039
3044
|
esbuild: {
|
|
3040
|
-
minify: options.minify
|
|
3041
|
-
sourceMap: options.sourcemap
|
|
3045
|
+
minify: options.minify ?? !options.debug,
|
|
3046
|
+
sourceMap: options.sourcemap ?? !!options.debug,
|
|
3042
3047
|
splitting: options.splitting !== false,
|
|
3043
3048
|
treeShaking: options.treeShaking !== false,
|
|
3044
3049
|
color: true,
|
package/dist/build.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNUUJLWZWcjs = require('./chunk-NUUJLWZW.cjs');
|
|
9
9
|
require('./chunk-5E3NJ26L.cjs');
|
|
10
10
|
require('./chunk-Y2DOCJBE.cjs');
|
|
11
11
|
require('./chunk-V627S7QU.cjs');
|
|
@@ -21,4 +21,4 @@ require('./chunk-YDYGZTJK.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.build =
|
|
24
|
+
exports.build = _chunkNUUJLWZWcjs.build; exports.cleanOutputPath = _chunkNUUJLWZWcjs.cleanOutputPath; exports.copyBuildAssets = _chunkNUUJLWZWcjs.copyBuildAssets; exports.executeUnbuild = _chunkNUUJLWZWcjs.executeUnbuild; exports.generatePackageJson = _chunkNUUJLWZWcjs.generatePackageJson; exports.resolveOptions = _chunkNUUJLWZWcjs.resolveOptions;
|
package/dist/build.js
CHANGED
|
@@ -590,8 +590,10 @@ var copyAssets = /* @__PURE__ */ _chunkYDYGZTJKcjs.__name.call(void 0, async (co
|
|
|
590
590
|
if (!buildTarget) {
|
|
591
591
|
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkFG6XQ26Mcjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
|
|
592
592
|
}
|
|
593
|
+
_chunkFG6XQ26Mcjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
594
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkFG6XQ26Mcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
593
595
|
const result = await _js.copyAssets.call(void 0, {
|
|
594
|
-
assets,
|
|
596
|
+
assets: pendingAssets,
|
|
595
597
|
watch: false,
|
|
596
598
|
outputPath
|
|
597
599
|
}, {
|
|
@@ -2210,11 +2212,12 @@ async function resolveOptions(options, config) {
|
|
|
2210
2212
|
dependencies = dependencies.filter((deps) => deps.name !== tsLibDependency.name);
|
|
2211
2213
|
dependencies.push(tsLibDependency);
|
|
2212
2214
|
}
|
|
2215
|
+
const name = options.name || projectName;
|
|
2213
2216
|
const entries = _nullishCoalesce(options.entry, () => ( [
|
|
2214
2217
|
sourceRoot
|
|
2215
2218
|
]));
|
|
2216
2219
|
const resolvedOptions = {
|
|
2217
|
-
name
|
|
2220
|
+
name,
|
|
2218
2221
|
config,
|
|
2219
2222
|
projectRoot: options.projectRoot,
|
|
2220
2223
|
sourceRoot,
|
|
@@ -2231,6 +2234,7 @@ async function resolveOptions(options, config) {
|
|
|
2231
2234
|
}
|
|
2232
2235
|
const outDir = _chunkFG6XQ26Mcjs.joinPaths.call(void 0, _path.relative.call(void 0, _chunkFG6XQ26Mcjs.joinPaths.call(void 0, config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
|
|
2233
2236
|
ret.push({
|
|
2237
|
+
name: `${name}-esm`,
|
|
2234
2238
|
builder: "mkdist",
|
|
2235
2239
|
input: `./${entryPath}`,
|
|
2236
2240
|
outDir,
|
|
@@ -2238,6 +2242,7 @@ async function resolveOptions(options, config) {
|
|
|
2238
2242
|
format: "esm"
|
|
2239
2243
|
});
|
|
2240
2244
|
ret.push({
|
|
2245
|
+
name: `${name}-cjs`,
|
|
2241
2246
|
builder: "mkdist",
|
|
2242
2247
|
input: `./${entryPath}`,
|
|
2243
2248
|
outDir,
|
|
@@ -2295,8 +2300,8 @@ async function resolveOptions(options, config) {
|
|
|
2295
2300
|
]
|
|
2296
2301
|
},
|
|
2297
2302
|
esbuild: {
|
|
2298
|
-
minify: options.minify
|
|
2299
|
-
sourceMap: options.sourcemap
|
|
2303
|
+
minify: _nullishCoalesce(options.minify, () => ( !options.debug)),
|
|
2304
|
+
sourceMap: _nullishCoalesce(options.sourcemap, () => ( !!options.debug)),
|
|
2300
2305
|
splitting: options.splitting !== false,
|
|
2301
2306
|
treeShaking: options.treeShaking !== false,
|
|
2302
2307
|
color: true,
|
|
@@ -589,8 +589,10 @@ var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, proje
|
|
|
589
589
|
if (!buildTarget) {
|
|
590
590
|
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${joinPaths(projectRoot, "project.json")}`);
|
|
591
591
|
}
|
|
592
|
+
writeTrace(`\u{1F4DD} Copying the following assets to the output directory:
|
|
593
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
592
594
|
const result = await copyAssetsBase({
|
|
593
|
-
assets,
|
|
595
|
+
assets: pendingAssets,
|
|
594
596
|
watch: false,
|
|
595
597
|
outputPath
|
|
596
598
|
}, {
|
|
@@ -2209,11 +2211,12 @@ async function resolveOptions(options, config) {
|
|
|
2209
2211
|
dependencies = dependencies.filter((deps) => deps.name !== tsLibDependency.name);
|
|
2210
2212
|
dependencies.push(tsLibDependency);
|
|
2211
2213
|
}
|
|
2214
|
+
const name = options.name || projectName;
|
|
2212
2215
|
const entries = options.entry ?? [
|
|
2213
2216
|
sourceRoot
|
|
2214
2217
|
];
|
|
2215
2218
|
const resolvedOptions = {
|
|
2216
|
-
name
|
|
2219
|
+
name,
|
|
2217
2220
|
config,
|
|
2218
2221
|
projectRoot: options.projectRoot,
|
|
2219
2222
|
sourceRoot,
|
|
@@ -2230,6 +2233,7 @@ async function resolveOptions(options, config) {
|
|
|
2230
2233
|
}
|
|
2231
2234
|
const outDir = joinPaths(relative3(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
|
|
2232
2235
|
ret.push({
|
|
2236
|
+
name: `${name}-esm`,
|
|
2233
2237
|
builder: "mkdist",
|
|
2234
2238
|
input: `./${entryPath}`,
|
|
2235
2239
|
outDir,
|
|
@@ -2237,6 +2241,7 @@ async function resolveOptions(options, config) {
|
|
|
2237
2241
|
format: "esm"
|
|
2238
2242
|
});
|
|
2239
2243
|
ret.push({
|
|
2244
|
+
name: `${name}-cjs`,
|
|
2240
2245
|
builder: "mkdist",
|
|
2241
2246
|
input: `./${entryPath}`,
|
|
2242
2247
|
outDir,
|
|
@@ -2294,8 +2299,8 @@ async function resolveOptions(options, config) {
|
|
|
2294
2299
|
]
|
|
2295
2300
|
},
|
|
2296
2301
|
esbuild: {
|
|
2297
|
-
minify: options.minify
|
|
2298
|
-
sourceMap: options.sourcemap
|
|
2302
|
+
minify: options.minify ?? !options.debug,
|
|
2303
|
+
sourceMap: options.sourcemap ?? !!options.debug,
|
|
2299
2304
|
splitting: options.splitting !== false,
|
|
2300
2305
|
treeShaking: options.treeShaking !== false,
|
|
2301
2306
|
color: true,
|
package/dist/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNUUJLWZWcjs = require('./chunk-NUUJLWZW.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -35,4 +35,4 @@ require('./chunk-YDYGZTJK.cjs');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
exports.build =
|
|
38
|
+
exports.build = _chunkNUUJLWZWcjs.build; exports.clean = _chunk5E3NJ26Lcjs.clean; exports.cleanDirectories = _chunk5E3NJ26Lcjs.cleanDirectories; exports.cleanOutputPath = _chunkNUUJLWZWcjs.cleanOutputPath; exports.copyBuildAssets = _chunkNUUJLWZWcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkV627S7QUcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkNUUJLWZWcjs.executeUnbuild; exports.generatePackageJson = _chunkNUUJLWZWcjs.generatePackageJson; exports.getDefaultBuildPlugins = _chunkY2DOCJBEcjs.getDefaultBuildPlugins; exports.loadConfig = _chunkV627S7QUcjs.loadConfig; exports.resolveOptions = _chunkNUUJLWZWcjs.resolveOptions;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/unbuild",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `unbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -171,9 +171,9 @@
|
|
|
171
171
|
"@nx/devkit": "^20.3.1",
|
|
172
172
|
"@nx/js": "^20.3.1",
|
|
173
173
|
"@rollup/pluginutils": "^5.1.4",
|
|
174
|
-
"@storm-software/build-tools": "0.135.
|
|
174
|
+
"@storm-software/build-tools": "0.135.3",
|
|
175
175
|
"@storm-software/config": "1.98.1",
|
|
176
|
-
"@storm-software/config-tools": "1.141.
|
|
176
|
+
"@storm-software/config-tools": "1.141.3",
|
|
177
177
|
"@swc/core": "1.7.26",
|
|
178
178
|
"@types/node": "^22.10.2",
|
|
179
179
|
"commander": "^12.1.0",
|