@storm-software/esbuild 0.45.32 → 0.45.34
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/assets.cjs +4 -4
- package/dist/assets.js +3 -3
- package/dist/build.cjs +11 -11
- package/dist/build.js +10 -10
- package/dist/{chunk-AMUTTHPV.cjs → chunk-4ZV6DH4B.cjs} +6 -6
- package/dist/{chunk-OIZBG247.cjs → chunk-5UPAJJ5R.cjs} +3 -3
- package/dist/{chunk-4LM2LV53.js → chunk-6QLFFQ5Y.js} +1 -1
- package/dist/{chunk-DRJXDBN4.cjs → chunk-AC5FITOB.cjs} +22 -22
- package/dist/{chunk-3ZVT4AKE.cjs → chunk-ACBG3ZAT.cjs} +5 -5
- package/dist/{chunk-KMFIB3PY.js → chunk-AJQAV5CX.js} +7 -7
- package/dist/{chunk-4LRLQFJJ.cjs → chunk-AOYGCE3L.cjs} +3 -3
- package/dist/{chunk-J4PCKY3U.cjs → chunk-E7UVS5IM.cjs} +16 -16
- package/dist/{chunk-TXFPCK5S.js → chunk-EH2L2SI7.js} +1 -1
- package/dist/{chunk-YUAMFY7G.cjs → chunk-GXJUQQH3.cjs} +3 -3
- package/dist/{chunk-7I26EJWI.js → chunk-ITB7VM2V.js} +1 -1
- package/dist/{chunk-RIHRGAGO.js → chunk-JJWLNGAP.js} +2 -2
- package/dist/{chunk-ULL45PNX.js → chunk-QOETOATP.js} +1 -1
- package/dist/{chunk-XL4R7GTH.js → chunk-QORLU655.js} +1 -1
- package/dist/{chunk-P3HIKMP6.cjs → chunk-S67BO27V.cjs} +10 -10
- package/dist/{chunk-WEVIUNTH.js → chunk-TDIGS3GR.js} +16 -16
- package/dist/{chunk-H3IVIIQM.cjs → chunk-VSXW2D6A.cjs} +30 -30
- package/dist/{chunk-U3VSVKBN.js → chunk-VV6GKN3G.js} +2 -2
- package/dist/{chunk-NLBUR2OB.js → chunk-WTBORTTD.js} +3 -3
- package/dist/{chunk-ZY3G7N2G.cjs → chunk-XH66K43O.cjs} +3 -3
- package/dist/clean.cjs +3 -3
- package/dist/clean.js +2 -2
- package/dist/config.cjs +4 -4
- package/dist/config.js +3 -3
- package/dist/context.cjs +5 -5
- package/dist/context.js +4 -4
- package/dist/index.cjs +11 -11
- package/dist/index.js +10 -10
- package/dist/package-json.cjs +4 -4
- package/dist/package-json.js +3 -3
- package/dist/plugins/deps-check.cjs +3 -3
- package/dist/plugins/deps-check.js +2 -2
- package/dist/tsup.cjs +3 -3
- package/dist/tsup.js +2 -2
- package/dist/watch.cjs +3 -3
- package/dist/watch.js +1 -1
- package/package.json +5 -5
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/dist/assets.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkACBG3ZATcjs = require('./chunk-ACBG3ZAT.cjs');
|
|
4
|
+
require('./chunk-VSXW2D6A.cjs');
|
|
5
|
+
require('./chunk-E7UVS5IM.cjs');
|
|
6
6
|
require('./chunk-REAX6FSO.cjs');
|
|
7
7
|
require('./chunk-4ICWACJM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.copyBuildAssets =
|
|
10
|
+
exports.copyBuildAssets = _chunkACBG3ZATcjs.copyBuildAssets;
|
package/dist/assets.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyBuildAssets
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-JJWLNGAP.js";
|
|
4
|
+
import "./chunk-QORLU655.js";
|
|
5
|
+
import "./chunk-TDIGS3GR.js";
|
|
6
6
|
import "./chunk-A7I6K5HC.js";
|
|
7
7
|
import "./chunk-GL7N7ANS.js";
|
|
8
8
|
export {
|
package/dist/build.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
3
|
+
var _chunkAC5FITOBcjs = require('./chunk-AC5FITOB.cjs');
|
|
4
|
+
require('./chunk-GXJUQQH3.cjs');
|
|
5
|
+
require('./chunk-ACBG3ZAT.cjs');
|
|
6
|
+
require('./chunk-5UPAJJ5R.cjs');
|
|
7
|
+
require('./chunk-S67BO27V.cjs');
|
|
8
|
+
require('./chunk-XH66K43O.cjs');
|
|
9
|
+
require('./chunk-4ZV6DH4B.cjs');
|
|
10
|
+
require('./chunk-VSXW2D6A.cjs');
|
|
11
|
+
require('./chunk-AOYGCE3L.cjs');
|
|
12
|
+
require('./chunk-E7UVS5IM.cjs');
|
|
13
13
|
require('./chunk-REAX6FSO.cjs');
|
|
14
14
|
require('./chunk-4ICWACJM.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.build =
|
|
17
|
+
exports.build = _chunkAC5FITOBcjs.build;
|
package/dist/build.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-AJQAV5CX.js";
|
|
4
|
+
import "./chunk-EH2L2SI7.js";
|
|
5
|
+
import "./chunk-JJWLNGAP.js";
|
|
6
|
+
import "./chunk-ITB7VM2V.js";
|
|
7
|
+
import "./chunk-WTBORTTD.js";
|
|
8
|
+
import "./chunk-6QLFFQ5Y.js";
|
|
9
|
+
import "./chunk-VV6GKN3G.js";
|
|
10
|
+
import "./chunk-QORLU655.js";
|
|
11
|
+
import "./chunk-QOETOATP.js";
|
|
12
|
+
import "./chunk-TDIGS3GR.js";
|
|
13
13
|
import "./chunk-A7I6K5HC.js";
|
|
14
14
|
import "./chunk-GL7N7ANS.js";
|
|
15
15
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVSXW2D6Acjs = require('./chunk-VSXW2D6A.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkREAX6FSOcjs = require('./chunk-REAX6FSO.cjs');
|
|
@@ -20,8 +20,8 @@ var _fs = require('fs');
|
|
|
20
20
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
21
21
|
async function generatePackageJson(context) {
|
|
22
22
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkREAX6FSOcjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
23
|
-
|
|
24
|
-
const stopwatch =
|
|
23
|
+
_chunkE7UVS5IMcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
24
|
+
const stopwatch = _chunkE7UVS5IMcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
25
25
|
const packageJsonPath = _chunkREAX6FSOcjs.joinPaths.call(void 0,
|
|
26
26
|
context.options.projectRoot,
|
|
27
27
|
"project.json"
|
|
@@ -41,13 +41,13 @@ async function generatePackageJson(context) {
|
|
|
41
41
|
if (!packageJson) {
|
|
42
42
|
throw new Error("Cannot find package.json configuration file");
|
|
43
43
|
}
|
|
44
|
-
packageJson = await
|
|
44
|
+
packageJson = await _chunkVSXW2D6Acjs.addPackageDependencies.call(void 0,
|
|
45
45
|
context.workspaceConfig.workspaceRoot,
|
|
46
46
|
context.options.projectRoot,
|
|
47
47
|
context.projectName,
|
|
48
48
|
packageJson
|
|
49
49
|
);
|
|
50
|
-
packageJson = await
|
|
50
|
+
packageJson = await _chunkVSXW2D6Acjs.addWorkspacePackageJsonFields.call(void 0,
|
|
51
51
|
context.workspaceConfig,
|
|
52
52
|
context.options.projectRoot,
|
|
53
53
|
context.sourceRoot,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
|
|
@@ -10,8 +10,8 @@ var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
|
|
|
10
10
|
_chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
|
|
11
11
|
var _promises = require('fs/promises');
|
|
12
12
|
async function clean(name = "ESBuild", directory, config) {
|
|
13
|
-
|
|
14
|
-
const stopwatch =
|
|
13
|
+
_chunkE7UVS5IMcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
14
|
+
const stopwatch = _chunkE7UVS5IMcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
15
15
|
await cleanDirectories(directory);
|
|
16
16
|
stopwatch();
|
|
17
17
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
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 _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 _chunkGXJUQQH3cjs = require('./chunk-GXJUQQH3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkACBG3ZATcjs = require('./chunk-ACBG3ZAT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk5UPAJJ5Rcjs = require('./chunk-5UPAJJ5R.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkS67BO27Vcjs = require('./chunk-S67BO27V.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk4ZV6DH4Bcjs = require('./chunk-4ZV6DH4B.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkAOYGCE3Lcjs = require('./chunk-AOYGCE3L.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ var _chunk4LRLQFJJcjs = require('./chunk-4LRLQFJJ.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
|
|
@@ -35,17 +35,17 @@ var _globby = require('globby');
|
|
|
35
35
|
async function reportResults(context) {
|
|
36
36
|
if (_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) === 0) {
|
|
37
37
|
if (context.result.warnings.length > 0) {
|
|
38
|
-
|
|
38
|
+
_chunkE7UVS5IMcjs.writeWarning.call(void 0,
|
|
39
39
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
40
40
|
context.workspaceConfig
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
_chunkE7UVS5IMcjs.writeSuccess.call(void 0,
|
|
44
44
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
45
45
|
context.workspaceConfig
|
|
46
46
|
);
|
|
47
47
|
} else if (_optionalChain([context, 'access', _4 => _4.result, 'optionalAccess', _5 => _5.errors]) && _optionalChain([context, 'access', _6 => _6.result, 'optionalAccess', _7 => _7.errors, 'access', _8 => _8.length]) > 0) {
|
|
48
|
-
|
|
48
|
+
_chunkE7UVS5IMcjs.writeError.call(void 0,
|
|
49
49
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
50
50
|
context.workspaceConfig
|
|
51
51
|
);
|
|
@@ -74,7 +74,7 @@ async function dependencyCheck(options) {
|
|
|
74
74
|
write: false,
|
|
75
75
|
// no need to write for analysis
|
|
76
76
|
outdir: "out",
|
|
77
|
-
plugins: [
|
|
77
|
+
plugins: [_chunkGXJUQQH3cjs.depsCheckPlugin.call(void 0, options.bundle)]
|
|
78
78
|
});
|
|
79
79
|
await buildPromise.catch(() => {
|
|
80
80
|
});
|
|
@@ -82,36 +82,36 @@ async function dependencyCheck(options) {
|
|
|
82
82
|
}
|
|
83
83
|
async function cleanOutputPath(context) {
|
|
84
84
|
if (context.clean !== false && context.outputPath) {
|
|
85
|
-
|
|
85
|
+
_chunkE7UVS5IMcjs.writeDebug.call(void 0,
|
|
86
86
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
87
87
|
context.workspaceConfig
|
|
88
88
|
);
|
|
89
|
-
const stopwatch =
|
|
90
|
-
await
|
|
89
|
+
const stopwatch = _chunkE7UVS5IMcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
90
|
+
await _chunk5UPAJJ5Rcjs.cleanDirectories.call(void 0, context.outputPath);
|
|
91
91
|
stopwatch();
|
|
92
92
|
}
|
|
93
93
|
return context;
|
|
94
94
|
}
|
|
95
95
|
async function build2(options) {
|
|
96
|
-
|
|
97
|
-
const stopwatch =
|
|
96
|
+
_chunkE7UVS5IMcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
97
|
+
const stopwatch = _chunkE7UVS5IMcjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
98
98
|
try {
|
|
99
99
|
const opts = Array.isArray(options) ? options : [options];
|
|
100
100
|
if (opts.length === 0) {
|
|
101
101
|
throw new Error("No build options were provided");
|
|
102
102
|
}
|
|
103
|
-
const context = await
|
|
103
|
+
const context = await _chunkS67BO27Vcjs.resolveContext.call(void 0, options);
|
|
104
104
|
await cleanOutputPath(context);
|
|
105
105
|
await Promise.all([
|
|
106
106
|
dependencyCheck(context.options),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
_chunk4ZV6DH4Bcjs.generatePackageJson.call(void 0, context),
|
|
108
|
+
_chunkACBG3ZATcjs.copyBuildAssets.call(void 0, context),
|
|
109
|
+
_chunkAOYGCE3Lcjs.executeTsup.call(void 0, context)
|
|
110
110
|
]);
|
|
111
111
|
await reportResults(context);
|
|
112
|
-
|
|
112
|
+
_chunkE7UVS5IMcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
113
113
|
} catch (error) {
|
|
114
|
-
|
|
114
|
+
_chunkE7UVS5IMcjs.writeFatal.call(void 0,
|
|
115
115
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
116
116
|
);
|
|
117
117
|
throw error;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkVSXW2D6Acjs = require('./chunk-VSXW2D6A.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
|
|
@@ -13,12 +13,12 @@ var _chunk4ICWACJMcjs = require('./chunk-4ICWACJM.cjs');
|
|
|
13
13
|
_chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
|
|
14
14
|
async function copyBuildAssets(context) {
|
|
15
15
|
if (!_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
|
|
16
|
-
|
|
16
|
+
_chunkE7UVS5IMcjs.writeDebug.call(void 0,
|
|
17
17
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
18
18
|
context.workspaceConfig
|
|
19
19
|
);
|
|
20
|
-
const stopwatch =
|
|
21
|
-
await
|
|
20
|
+
const stopwatch = _chunkE7UVS5IMcjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
21
|
+
await _chunkVSXW2D6Acjs.copyAssets.call(void 0,
|
|
22
22
|
context.workspaceConfig,
|
|
23
23
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
24
24
|
context.outputPath,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
depsCheckPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EH2L2SI7.js";
|
|
4
4
|
import {
|
|
5
5
|
copyBuildAssets
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JJWLNGAP.js";
|
|
7
7
|
import {
|
|
8
8
|
cleanDirectories
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ITB7VM2V.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WTBORTTD.js";
|
|
13
13
|
import {
|
|
14
14
|
generatePackageJson
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VV6GKN3G.js";
|
|
16
16
|
import {
|
|
17
17
|
executeTsup
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QOETOATP.js";
|
|
19
19
|
import {
|
|
20
20
|
getStopwatch,
|
|
21
21
|
writeDebug,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
writeFatal,
|
|
24
24
|
writeSuccess,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TDIGS3GR.js";
|
|
27
27
|
import {
|
|
28
28
|
init_esm_shims
|
|
29
29
|
} from "./chunk-GL7N7ANS.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard2(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 _nullishCoalesce2(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain2(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; } var _class2;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkREAX6FSOcjs = require('./chunk-REAX6FSO.cjs');
|
|
@@ -2668,11 +2668,11 @@ module.exports = exports.default;
|
|
|
2668
2668
|
_chunk4ICWACJMcjs.init_cjs_shims.call(void 0, );
|
|
2669
2669
|
var import_tsup = _chunk4ICWACJMcjs.__toESM.call(void 0, require_dist(), 1);
|
|
2670
2670
|
async function executeTsup(context) {
|
|
2671
|
-
|
|
2671
|
+
_chunkE7UVS5IMcjs.writeDebug.call(void 0,
|
|
2672
2672
|
` \u{1F680} Running ${context.options.name} build`,
|
|
2673
2673
|
context.workspaceConfig
|
|
2674
2674
|
);
|
|
2675
|
-
const stopwatch =
|
|
2675
|
+
const stopwatch = _chunkE7UVS5IMcjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
2676
2676
|
await (0, import_tsup.build)({
|
|
2677
2677
|
...context.options,
|
|
2678
2678
|
outDir: context.options.distDir ? _chunkREAX6FSOcjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
@@ -47,7 +47,6 @@ var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
|
47
47
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
48
48
|
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
49
49
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
50
|
-
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
51
50
|
var STORM_DEFAULT_SOCIAL_TWITTER = "StormSoftwareHQ";
|
|
52
51
|
var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
53
52
|
var STORM_DEFAULT_SOCIAL_TELEGRAM = "https://t.me/storm_software";
|
|
@@ -135,7 +134,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
135
134
|
positive: PositiveColorSchema,
|
|
136
135
|
negative: NegativeColorSchema
|
|
137
136
|
});
|
|
138
|
-
var RegistryUrlConfigSchema = z.
|
|
137
|
+
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
139
138
|
var RegistryConfigSchema = z.object({
|
|
140
139
|
github: RegistryUrlConfigSchema,
|
|
141
140
|
npm: RegistryUrlConfigSchema,
|
|
@@ -162,18 +161,18 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
162
161
|
name: z.string().trim().default("stormie-bot").describe(
|
|
163
162
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
164
163
|
),
|
|
165
|
-
email: z.
|
|
164
|
+
email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
166
165
|
}).describe(
|
|
167
166
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
168
167
|
);
|
|
169
168
|
var WorkspaceReleaseConfigSchema = z.object({
|
|
170
|
-
banner: z.string().trim().
|
|
169
|
+
banner: z.string().trim().optional().describe(
|
|
171
170
|
"A URL to a banner image used to display the workspace's release"
|
|
172
171
|
),
|
|
173
172
|
header: z.string().trim().optional().describe(
|
|
174
173
|
"A header message appended to the start of the workspace's release notes"
|
|
175
174
|
),
|
|
176
|
-
footer: z.string().trim().
|
|
175
|
+
footer: z.string().trim().optional().describe(
|
|
177
176
|
"A footer message appended to the end of the workspace's release notes"
|
|
178
177
|
)
|
|
179
178
|
}).describe("The workspace's release config used during the release process");
|
|
@@ -205,19 +204,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
205
204
|
);
|
|
206
205
|
var errorConfigSchema = z.object({
|
|
207
206
|
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
208
|
-
url: z.
|
|
207
|
+
url: z.url().optional().describe(
|
|
209
208
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
210
209
|
)
|
|
211
210
|
}).describe("The workspace's error config used during the error process");
|
|
212
211
|
var organizationConfigSchema = z.object({
|
|
213
212
|
name: z.string().trim().describe("The name of the organization"),
|
|
214
213
|
description: z.string().trim().optional().describe("A description of the organization"),
|
|
215
|
-
logo: z.
|
|
216
|
-
icon: z.
|
|
217
|
-
url: z.
|
|
214
|
+
logo: z.url().optional().describe("A URL to the organization's logo image"),
|
|
215
|
+
icon: z.url().optional().describe("A URL to the organization's icon image"),
|
|
216
|
+
url: z.url().optional().describe(
|
|
218
217
|
"A URL to a page that provides more information about the organization"
|
|
219
218
|
)
|
|
220
219
|
}).describe("The workspace's organization details");
|
|
220
|
+
var MODE_OPTIONS = ["development", "staging", "production"];
|
|
221
221
|
var stormWorkspaceConfigSchema = z.object({
|
|
222
222
|
$schema: z.string().trim().default(
|
|
223
223
|
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
@@ -234,12 +234,12 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
234
234
|
),
|
|
235
235
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
236
236
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
237
|
-
homepage: z.
|
|
238
|
-
docs: z.
|
|
239
|
-
portal: z.
|
|
240
|
-
licensing: z.
|
|
241
|
-
contact: z.
|
|
242
|
-
support: z.
|
|
237
|
+
homepage: z.url().optional().describe("The homepage of the workspace"),
|
|
238
|
+
docs: z.url().optional().describe("The documentation site for the workspace"),
|
|
239
|
+
portal: z.url().optional().describe("The development portal site for the workspace"),
|
|
240
|
+
licensing: z.url().optional().describe("The licensing site for the workspace"),
|
|
241
|
+
contact: z.url().optional().describe("The contact site for the workspace"),
|
|
242
|
+
support: z.url().optional().describe(
|
|
243
243
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
244
244
|
),
|
|
245
245
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
@@ -249,7 +249,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
249
249
|
release: WorkspaceReleaseConfigSchema,
|
|
250
250
|
socials: WorkspaceSocialsConfigSchema,
|
|
251
251
|
error: errorConfigSchema,
|
|
252
|
-
mode: z.enum(
|
|
252
|
+
mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
|
|
253
253
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
254
254
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
255
255
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -75,10 +75,10 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
75
75
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
76
76
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
_chunkE7UVS5IMcjs.writeWarning.call(void 0,
|
|
79
79
|
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
80
80
|
);
|
|
81
|
-
|
|
81
|
+
_chunkE7UVS5IMcjs.writeError.call(void 0,
|
|
82
82
|
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
83
83
|
);
|
|
84
84
|
if (filteredMissingDeps.length > 0) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkXH66K43Ocjs = require('./chunk-XH66K43O.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVSXW2D6Acjs = require('./chunk-VSXW2D6A.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkE7UVS5IMcjs = require('./chunk-E7UVS5IM.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkREAX6FSOcjs = require('./chunk-REAX6FSO.cjs');
|
|
@@ -33,11 +33,11 @@ async function resolveContext(userOptions) {
|
|
|
33
33
|
if (!workspaceRoot) {
|
|
34
34
|
throw new Error("Cannot find Nx workspace root");
|
|
35
35
|
}
|
|
36
|
-
const workspaceConfig = await
|
|
36
|
+
const workspaceConfig = await _chunkVSXW2D6Acjs.getWorkspaceConfig.call(void 0, true, {
|
|
37
37
|
workspaceRoot: workspaceRoot.dir
|
|
38
38
|
});
|
|
39
|
-
|
|
40
|
-
const stopwatch =
|
|
39
|
+
_chunkE7UVS5IMcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
40
|
+
const stopwatch = _chunkE7UVS5IMcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
41
41
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
42
42
|
exitOnError: true
|
|
43
43
|
});
|
|
@@ -58,7 +58,7 @@ async function resolveContext(userOptions) {
|
|
|
58
58
|
"The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
61
|
+
const options = _defu2.default.call(void 0, userOptions, _chunkXH66K43Ocjs.DEFAULT_BUILD_OPTIONS);
|
|
62
62
|
options.name ??= projectName;
|
|
63
63
|
const packageJsonPath = _chunkREAX6FSOcjs.joinPaths.call(void 0,
|
|
64
64
|
workspaceRoot.dir,
|
|
@@ -68,7 +68,7 @@ async function resolveContext(userOptions) {
|
|
|
68
68
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
69
69
|
throw new Error("Cannot find package.json configuration");
|
|
70
70
|
}
|
|
71
|
-
const env =
|
|
71
|
+
const env = _chunkVSXW2D6Acjs.getEnv.call(void 0, "esbuild", options);
|
|
72
72
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
73
73
|
const resolvedOptions = {
|
|
74
74
|
...options,
|
|
@@ -107,10 +107,10 @@ async function resolveContext(userOptions) {
|
|
|
107
107
|
};
|
|
108
108
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
109
109
|
if (context.options.verbose) {
|
|
110
|
-
|
|
110
|
+
_chunkE7UVS5IMcjs.writeDebug.call(void 0,
|
|
111
111
|
` \u2699\uFE0F Build options resolved:
|
|
112
112
|
|
|
113
|
-
${
|
|
113
|
+
${_chunkE7UVS5IMcjs.formatLogMessage.call(void 0, context.options)}`,
|
|
114
114
|
workspaceConfig
|
|
115
115
|
);
|
|
116
116
|
}
|