@storm-software/unbuild 0.38.13 → 0.38.15
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 +6 -2
- package/bin/unbuild.js +6 -2
- package/dist/build.cjs +2 -2
- package/dist/build.js +1 -1
- package/dist/{chunk-PEHOCO5T.cjs → chunk-JO6ZZ4GM.cjs} +6 -2
- package/dist/{chunk-Q5VWBXHK.js → chunk-WWZB544X.js} +6 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/types.d.cts +12 -0
- package/dist/types.d.ts +12 -0
- package/package.json +1 -1
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
|
@@ -2053,9 +2053,13 @@ async function build(options) {
|
|
|
2053
2053
|
options.projectRoot = correctPaths(projectRoot);
|
|
2054
2054
|
const resolvedOptions = await resolveOptions(options, config);
|
|
2055
2055
|
await cleanOutputPath(resolvedOptions);
|
|
2056
|
-
|
|
2056
|
+
if (options.buildOnly !== true) {
|
|
2057
|
+
await generatePackageJson(resolvedOptions);
|
|
2058
|
+
}
|
|
2057
2059
|
await executeUnbuild(resolvedOptions);
|
|
2058
|
-
|
|
2060
|
+
if (options.buildOnly !== true) {
|
|
2061
|
+
await copyBuildAssets(resolvedOptions);
|
|
2062
|
+
}
|
|
2059
2063
|
writeSuccess(` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
|
|
2060
2064
|
} catch (error) {
|
|
2061
2065
|
writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.", config);
|
package/bin/unbuild.js
CHANGED
|
@@ -2032,9 +2032,13 @@ async function build(options) {
|
|
|
2032
2032
|
options.projectRoot = correctPaths(projectRoot);
|
|
2033
2033
|
const resolvedOptions = await resolveOptions(options, config);
|
|
2034
2034
|
await cleanOutputPath(resolvedOptions);
|
|
2035
|
-
|
|
2035
|
+
if (options.buildOnly !== true) {
|
|
2036
|
+
await generatePackageJson(resolvedOptions);
|
|
2037
|
+
}
|
|
2036
2038
|
await executeUnbuild(resolvedOptions);
|
|
2037
|
-
|
|
2039
|
+
if (options.buildOnly !== true) {
|
|
2040
|
+
await copyBuildAssets(resolvedOptions);
|
|
2041
|
+
}
|
|
2038
2042
|
writeSuccess(` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
|
|
2039
2043
|
} catch (error) {
|
|
2040
2044
|
writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.", config);
|
package/dist/build.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkJO6ZZ4GMcjs = require('./chunk-JO6ZZ4GM.cjs');
|
|
9
9
|
require('./chunk-E74YDPSV.cjs');
|
|
10
10
|
require('./chunk-BN66ODNO.cjs');
|
|
11
11
|
require('./chunk-WCQ3HMVK.cjs');
|
|
@@ -19,4 +19,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.build =
|
|
22
|
+
exports.build = _chunkJO6ZZ4GMcjs.build; exports.cleanOutputPath = _chunkJO6ZZ4GMcjs.cleanOutputPath; exports.copyBuildAssets = _chunkJO6ZZ4GMcjs.copyBuildAssets; exports.executeUnbuild = _chunkJO6ZZ4GMcjs.executeUnbuild; exports.generatePackageJson = _chunkJO6ZZ4GMcjs.generatePackageJson; exports.resolveOptions = _chunkJO6ZZ4GMcjs.resolveOptions;
|
package/dist/build.js
CHANGED
|
@@ -1172,9 +1172,13 @@ async function build(options) {
|
|
|
1172
1172
|
options.projectRoot = _chunk4D3WT42Ncjs.correctPaths.call(void 0, projectRoot);
|
|
1173
1173
|
const resolvedOptions = await resolveOptions(options, config);
|
|
1174
1174
|
await cleanOutputPath(resolvedOptions);
|
|
1175
|
-
|
|
1175
|
+
if (options.buildOnly !== true) {
|
|
1176
|
+
await generatePackageJson(resolvedOptions);
|
|
1177
|
+
}
|
|
1176
1178
|
await executeUnbuild(resolvedOptions);
|
|
1177
|
-
|
|
1179
|
+
if (options.buildOnly !== true) {
|
|
1180
|
+
await copyBuildAssets(resolvedOptions);
|
|
1181
|
+
}
|
|
1178
1182
|
_chunk4D3WT42Ncjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
|
|
1179
1183
|
} catch (error) {
|
|
1180
1184
|
_chunk4D3WT42Ncjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.", config);
|
|
@@ -1172,9 +1172,13 @@ async function build(options) {
|
|
|
1172
1172
|
options.projectRoot = correctPaths(projectRoot);
|
|
1173
1173
|
const resolvedOptions = await resolveOptions(options, config);
|
|
1174
1174
|
await cleanOutputPath(resolvedOptions);
|
|
1175
|
-
|
|
1175
|
+
if (options.buildOnly !== true) {
|
|
1176
|
+
await generatePackageJson(resolvedOptions);
|
|
1177
|
+
}
|
|
1176
1178
|
await executeUnbuild(resolvedOptions);
|
|
1177
|
-
|
|
1179
|
+
if (options.buildOnly !== true) {
|
|
1180
|
+
await copyBuildAssets(resolvedOptions);
|
|
1181
|
+
}
|
|
1178
1182
|
writeSuccess(` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, config);
|
|
1179
1183
|
} catch (error) {
|
|
1180
1184
|
writeFatal("Fatal errors that the build process could not recover from have occured. The build process has been terminated.", config);
|
package/dist/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkJO6ZZ4GMcjs = require('./chunk-JO6ZZ4GM.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -30,4 +30,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.build =
|
|
33
|
+
exports.build = _chunkJO6ZZ4GMcjs.build; exports.clean = _chunkE74YDPSVcjs.clean; exports.cleanDirectories = _chunkE74YDPSVcjs.cleanDirectories; exports.cleanOutputPath = _chunkJO6ZZ4GMcjs.cleanOutputPath; exports.copyBuildAssets = _chunkJO6ZZ4GMcjs.copyBuildAssets; exports.createTsCompilerOptions = _chunkKV76QDPTcjs.createTsCompilerOptions; exports.executeUnbuild = _chunkJO6ZZ4GMcjs.executeUnbuild; exports.generatePackageJson = _chunkJO6ZZ4GMcjs.generatePackageJson; exports.loadConfig = _chunkKV76QDPTcjs.loadConfig; exports.resolveOptions = _chunkJO6ZZ4GMcjs.resolveOptions;
|
package/dist/index.js
CHANGED
package/dist/types.d.cts
CHANGED
|
@@ -61,6 +61,12 @@ type UnbuildOptions = Omit<Partial<BuildOptions>, "entries" | "rootDir" | "exter
|
|
|
61
61
|
* @defaultValue `true`
|
|
62
62
|
*/
|
|
63
63
|
emitTypes?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Should the build process skip generating a package.json and copying assets
|
|
66
|
+
*
|
|
67
|
+
* @defaultValue `false`
|
|
68
|
+
*/
|
|
69
|
+
buildOnly?: boolean;
|
|
64
70
|
/**
|
|
65
71
|
* Override the loader options used in the build process
|
|
66
72
|
*/
|
|
@@ -71,6 +77,12 @@ type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints"
|
|
|
71
77
|
* Path to a rollup configuration file relative to the project root
|
|
72
78
|
*/
|
|
73
79
|
rollup: DeepPartial<RollupBuildOptions>;
|
|
80
|
+
/**
|
|
81
|
+
* Should the build process skip generating a package.json and copying assets
|
|
82
|
+
*
|
|
83
|
+
* @defaultValue `false`
|
|
84
|
+
*/
|
|
85
|
+
buildOnly?: boolean;
|
|
74
86
|
outDir: string;
|
|
75
87
|
externals: string[];
|
|
76
88
|
entries: BuildOptions["entries"];
|
package/dist/types.d.ts
CHANGED
|
@@ -61,6 +61,12 @@ type UnbuildOptions = Omit<Partial<BuildOptions>, "entries" | "rootDir" | "exter
|
|
|
61
61
|
* @defaultValue `true`
|
|
62
62
|
*/
|
|
63
63
|
emitTypes?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Should the build process skip generating a package.json and copying assets
|
|
66
|
+
*
|
|
67
|
+
* @defaultValue `false`
|
|
68
|
+
*/
|
|
69
|
+
buildOnly?: boolean;
|
|
64
70
|
/**
|
|
65
71
|
* Override the loader options used in the build process
|
|
66
72
|
*/
|
|
@@ -71,6 +77,12 @@ type UnbuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "entryPoints"
|
|
|
71
77
|
* Path to a rollup configuration file relative to the project root
|
|
72
78
|
*/
|
|
73
79
|
rollup: DeepPartial<RollupBuildOptions>;
|
|
80
|
+
/**
|
|
81
|
+
* Should the build process skip generating a package.json and copying assets
|
|
82
|
+
*
|
|
83
|
+
* @defaultValue `false`
|
|
84
|
+
*/
|
|
85
|
+
buildOnly?: boolean;
|
|
74
86
|
outDir: string;
|
|
75
87
|
externals: string[];
|
|
76
88
|
entries: BuildOptions["entries"];
|
package/package.json
CHANGED