@storm-software/unbuild 0.30.0 → 0.30.2
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 +4 -3
- package/bin/unbuild.js +5 -4
- package/dist/build.cjs +2 -2
- package/dist/build.js +1 -1
- package/dist/{chunk-QBOQBJ36.cjs → chunk-P7LBAA5O.cjs} +4 -3
- package/dist/{chunk-ZE7ZBVLJ.js → chunk-ZQVJCLMA.js} +5 -4
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +4 -4
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
|
@@ -2989,24 +2989,25 @@ async function resolveOptions(options, config) {
|
|
|
2989
2989
|
tsconfig,
|
|
2990
2990
|
clean: false,
|
|
2991
2991
|
entries: entries.reduce((ret, entry) => {
|
|
2992
|
-
let entryPath =
|
|
2992
|
+
let entryPath = entry.replace(options.projectRoot, "");
|
|
2993
2993
|
if (entryPath.startsWith(".")) {
|
|
2994
2994
|
entryPath = entryPath.substring(1);
|
|
2995
2995
|
}
|
|
2996
2996
|
if (entryPath.startsWith("/")) {
|
|
2997
2997
|
entryPath = entryPath.substring(1);
|
|
2998
2998
|
}
|
|
2999
|
+
const outDir = joinPaths((0, import_node_path6.relative)(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
|
|
2999
3000
|
ret.push({
|
|
3000
3001
|
builder: "mkdist",
|
|
3001
3002
|
input: `./${entryPath}`,
|
|
3002
|
-
outDir
|
|
3003
|
+
outDir,
|
|
3003
3004
|
declaration: options.emitTypes !== false ? "compatible" : false,
|
|
3004
3005
|
format: "esm"
|
|
3005
3006
|
});
|
|
3006
3007
|
ret.push({
|
|
3007
3008
|
builder: "mkdist",
|
|
3008
3009
|
input: `./${entryPath}`,
|
|
3009
|
-
outDir
|
|
3010
|
+
outDir,
|
|
3010
3011
|
declaration: options.emitTypes !== false ? "compatible" : false,
|
|
3011
3012
|
format: "cjs",
|
|
3012
3013
|
ext: "cjs"
|
package/bin/unbuild.js
CHANGED
|
@@ -1319,7 +1319,7 @@ import defu4 from "defu";
|
|
|
1319
1319
|
import { Glob as Glob2 } from "glob";
|
|
1320
1320
|
import { existsSync as existsSync6 } from "node:fs";
|
|
1321
1321
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
1322
|
-
import {
|
|
1322
|
+
import { relative as relative4 } from "node:path";
|
|
1323
1323
|
import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
|
|
1324
1324
|
|
|
1325
1325
|
// ../../node_modules/.pnpm/unbuild@3.3.1_sass@1.83.4_typescript@5.7.3/node_modules/unbuild/dist/shared/unbuild.B2_7OVir.mjs
|
|
@@ -2964,24 +2964,25 @@ async function resolveOptions(options, config) {
|
|
|
2964
2964
|
tsconfig,
|
|
2965
2965
|
clean: false,
|
|
2966
2966
|
entries: entries.reduce((ret, entry) => {
|
|
2967
|
-
let entryPath =
|
|
2967
|
+
let entryPath = entry.replace(options.projectRoot, "");
|
|
2968
2968
|
if (entryPath.startsWith(".")) {
|
|
2969
2969
|
entryPath = entryPath.substring(1);
|
|
2970
2970
|
}
|
|
2971
2971
|
if (entryPath.startsWith("/")) {
|
|
2972
2972
|
entryPath = entryPath.substring(1);
|
|
2973
2973
|
}
|
|
2974
|
+
const outDir = joinPaths(relative4(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
|
|
2974
2975
|
ret.push({
|
|
2975
2976
|
builder: "mkdist",
|
|
2976
2977
|
input: `./${entryPath}`,
|
|
2977
|
-
outDir
|
|
2978
|
+
outDir,
|
|
2978
2979
|
declaration: options.emitTypes !== false ? "compatible" : false,
|
|
2979
2980
|
format: "esm"
|
|
2980
2981
|
});
|
|
2981
2982
|
ret.push({
|
|
2982
2983
|
builder: "mkdist",
|
|
2983
2984
|
input: `./${entryPath}`,
|
|
2984
|
-
outDir
|
|
2985
|
+
outDir,
|
|
2985
2986
|
declaration: options.emitTypes !== false ? "compatible" : false,
|
|
2986
2987
|
format: "cjs",
|
|
2987
2988
|
ext: "cjs"
|
package/dist/build.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkP7LBAA5Ocjs = require('./chunk-P7LBAA5O.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 = _chunkP7LBAA5Ocjs.build; exports.cleanOutputPath = _chunkP7LBAA5Ocjs.cleanOutputPath; exports.copyBuildAssets = _chunkP7LBAA5Ocjs.copyBuildAssets; exports.executeUnbuild = _chunkP7LBAA5Ocjs.executeUnbuild; exports.generatePackageJson = _chunkP7LBAA5Ocjs.generatePackageJson; exports.resolveOptions = _chunkP7LBAA5Ocjs.resolveOptions;
|
package/dist/build.js
CHANGED
|
@@ -2222,24 +2222,25 @@ async function resolveOptions(options, config) {
|
|
|
2222
2222
|
tsconfig,
|
|
2223
2223
|
clean: false,
|
|
2224
2224
|
entries: entries.reduce((ret, entry) => {
|
|
2225
|
-
let entryPath =
|
|
2225
|
+
let entryPath = entry.replace(options.projectRoot, "");
|
|
2226
2226
|
if (entryPath.startsWith(".")) {
|
|
2227
2227
|
entryPath = entryPath.substring(1);
|
|
2228
2228
|
}
|
|
2229
2229
|
if (entryPath.startsWith("/")) {
|
|
2230
2230
|
entryPath = entryPath.substring(1);
|
|
2231
2231
|
}
|
|
2232
|
+
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");
|
|
2232
2233
|
ret.push({
|
|
2233
2234
|
builder: "mkdist",
|
|
2234
2235
|
input: `./${entryPath}`,
|
|
2235
|
-
outDir
|
|
2236
|
+
outDir,
|
|
2236
2237
|
declaration: options.emitTypes !== false ? "compatible" : false,
|
|
2237
2238
|
format: "esm"
|
|
2238
2239
|
});
|
|
2239
2240
|
ret.push({
|
|
2240
2241
|
builder: "mkdist",
|
|
2241
2242
|
input: `./${entryPath}`,
|
|
2242
|
-
outDir
|
|
2243
|
+
outDir,
|
|
2243
2244
|
declaration: options.emitTypes !== false ? "compatible" : false,
|
|
2244
2245
|
format: "cjs",
|
|
2245
2246
|
ext: "cjs"
|
|
@@ -729,7 +729,7 @@ import defu4 from "defu";
|
|
|
729
729
|
import { Glob as Glob2 } from "glob";
|
|
730
730
|
import { existsSync as existsSync4 } from "node:fs";
|
|
731
731
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
732
|
-
import {
|
|
732
|
+
import { relative as relative3 } from "node:path";
|
|
733
733
|
import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
|
|
734
734
|
|
|
735
735
|
// ../../node_modules/.pnpm/unbuild@3.3.1_sass@1.83.4_typescript@5.7.3/node_modules/unbuild/dist/shared/unbuild.B2_7OVir.mjs
|
|
@@ -2221,24 +2221,25 @@ async function resolveOptions(options, config) {
|
|
|
2221
2221
|
tsconfig,
|
|
2222
2222
|
clean: false,
|
|
2223
2223
|
entries: entries.reduce((ret, entry) => {
|
|
2224
|
-
let entryPath =
|
|
2224
|
+
let entryPath = entry.replace(options.projectRoot, "");
|
|
2225
2225
|
if (entryPath.startsWith(".")) {
|
|
2226
2226
|
entryPath = entryPath.substring(1);
|
|
2227
2227
|
}
|
|
2228
2228
|
if (entryPath.startsWith("/")) {
|
|
2229
2229
|
entryPath = entryPath.substring(1);
|
|
2230
2230
|
}
|
|
2231
|
+
const outDir = joinPaths(relative3(joinPaths(config.workspaceRoot, options.projectRoot), config.workspaceRoot), outputPath, "dist");
|
|
2231
2232
|
ret.push({
|
|
2232
2233
|
builder: "mkdist",
|
|
2233
2234
|
input: `./${entryPath}`,
|
|
2234
|
-
outDir
|
|
2235
|
+
outDir,
|
|
2235
2236
|
declaration: options.emitTypes !== false ? "compatible" : false,
|
|
2236
2237
|
format: "esm"
|
|
2237
2238
|
});
|
|
2238
2239
|
ret.push({
|
|
2239
2240
|
builder: "mkdist",
|
|
2240
2241
|
input: `./${entryPath}`,
|
|
2241
|
-
outDir
|
|
2242
|
+
outDir,
|
|
2242
2243
|
declaration: options.emitTypes !== false ? "compatible" : false,
|
|
2243
2244
|
format: "cjs",
|
|
2244
2245
|
ext: "cjs"
|
package/dist/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkP7LBAA5Ocjs = require('./chunk-P7LBAA5O.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 = _chunkP7LBAA5Ocjs.build; exports.clean = _chunk5E3NJ26Lcjs.clean; exports.cleanDirectories = _chunk5E3NJ26Lcjs.cleanDirectories; exports.cleanOutputPath = _chunkP7LBAA5Ocjs.cleanOutputPath; exports.copyBuildAssets = _chunkP7LBAA5Ocjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkV627S7QUcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkP7LBAA5Ocjs.executeUnbuild; exports.generatePackageJson = _chunkP7LBAA5Ocjs.generatePackageJson; exports.getDefaultBuildPlugins = _chunkY2DOCJBEcjs.getDefaultBuildPlugins; exports.loadConfig = _chunkV627S7QUcjs.loadConfig; exports.resolveOptions = _chunkP7LBAA5Ocjs.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.2",
|
|
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.
|
|
175
|
-
"@storm-software/config": "1.98.
|
|
176
|
-
"@storm-software/config-tools": "1.141.
|
|
174
|
+
"@storm-software/build-tools": "0.135.2",
|
|
175
|
+
"@storm-software/config": "1.98.1",
|
|
176
|
+
"@storm-software/config-tools": "1.141.2",
|
|
177
177
|
"@swc/core": "1.7.26",
|
|
178
178
|
"@types/node": "^22.10.2",
|
|
179
179
|
"commander": "^12.1.0",
|