@storm-software/esbuild 0.43.7 → 0.44.0
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 +6 -6
- package/dist/assets.js +5 -5
- package/dist/build.cjs +13 -13
- package/dist/build.js +12 -12
- package/dist/{chunk-VE4VV2RJ.cjs → chunk-22Y32YFI.cjs} +64 -64
- package/dist/{chunk-2PCZNBCY.cjs → chunk-2MLKNJIP.cjs} +2 -2
- package/dist/{chunk-A42LXU6F.js → chunk-4GQ6VEDS.js} +2 -2
- package/dist/{chunk-DXFWHUBZ.cjs → chunk-AFE2UT4Q.cjs} +24 -24
- package/dist/{chunk-CS3ZYTWZ.js → chunk-APZBBHBH.js} +8 -8
- package/dist/{chunk-RWWCGHRU.js → chunk-BWA66YXK.js} +4 -4
- package/dist/{chunk-Y6EKVIOV.js → chunk-CBJD4ZVH.js} +3 -3
- package/dist/{chunk-AJS6FK72.js → chunk-CMGKATE3.js} +3 -3
- package/dist/{chunk-XDA7WJ75.js → chunk-EGEZ5E36.js} +1 -1
- package/dist/{chunk-TPSXM3FF.cjs → chunk-EQKXL4UE.cjs} +18 -18
- package/dist/{chunk-OWOXTJBI.js → chunk-EVDYZUME.js} +2 -2
- package/dist/{chunk-NUOMVE65.cjs → chunk-F7CMBEUZ.cjs} +5 -5
- package/dist/{chunk-ORKSXQRJ.js → chunk-GVOLTKQ7.js} +2 -2
- package/dist/{chunk-2M2UOWI7.cjs → chunk-HXSSSITW.cjs} +13 -13
- package/dist/{chunk-7TCJHISQ.js → chunk-KAK4OSJG.js} +2 -2
- package/dist/{chunk-LJGF7W63.cjs → chunk-KAVAYRRT.cjs} +20 -20
- package/dist/{chunk-KTLTKHBV.js → chunk-KZKQIIWT.js} +1 -1
- package/dist/{chunk-SHS7OFKX.cjs → chunk-L4TWXFIY.cjs} +7 -7
- package/dist/{chunk-LOULAUL6.cjs → chunk-MAU5D7AT.cjs} +6 -6
- package/dist/chunk-O6V6IV3F.cjs +6 -0
- package/dist/{chunk-XTIORJDZ.js → chunk-PJO5UO4I.js} +15 -15
- package/dist/{chunk-MSU7FWCI.js → chunk-Q6RVGOQC.js} +5 -5
- package/dist/{chunk-5ZS3SZTA.js → chunk-SKNDSL4F.js} +2 -2
- package/dist/{chunk-32HQN6XY.cjs → chunk-UNQ5U2S4.cjs} +2 -2
- package/dist/{chunk-U7GA2PTN.cjs → chunk-YBYGEWSU.cjs} +5 -5
- package/dist/{chunk-LSA5WYIT.cjs → chunk-Z425RPHD.cjs} +85 -85
- package/dist/clean.cjs +5 -5
- package/dist/clean.js +4 -4
- package/dist/config.cjs +6 -6
- package/dist/config.js +5 -5
- package/dist/context.cjs +7 -7
- package/dist/context.js +6 -6
- package/dist/index.cjs +15 -15
- package/dist/index.js +13 -13
- package/dist/package-json.cjs +6 -6
- package/dist/package-json.js +5 -5
- package/dist/plugins/deps-check.cjs +5 -5
- package/dist/plugins/deps-check.js +4 -4
- package/dist/plugins/resolve-paths.cjs +11 -11
- package/dist/plugins/resolve-paths.js +2 -2
- package/dist/tsup.cjs +5 -5
- package/dist/tsup.js +4 -4
- package/dist/types.cjs +2 -2
- package/dist/types.js +2 -2
- package/dist/watch.cjs +7 -7
- package/dist/watch.js +3 -3
- package/package.json +4 -4
- package/dist/chunk-ZZECF32S.cjs +0 -6
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
writeDebug,
|
|
15
15
|
writeTrace,
|
|
16
16
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KAK4OSJG.js";
|
|
18
18
|
import {
|
|
19
19
|
correctPaths,
|
|
20
20
|
joinPaths
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KZKQIIWT.js";
|
|
22
22
|
import {
|
|
23
23
|
init_esm_shims
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GVOLTKQ7.js";
|
|
25
25
|
|
|
26
26
|
// ../build-tools/src/config.ts
|
|
27
27
|
init_esm_shims();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyAssets
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CBJD4ZVH.js";
|
|
4
4
|
import {
|
|
5
5
|
getStopwatch,
|
|
6
6
|
writeDebug
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KAK4OSJG.js";
|
|
8
8
|
import {
|
|
9
9
|
init_esm_shims
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GVOLTKQ7.js";
|
|
11
11
|
|
|
12
12
|
// src/assets.ts
|
|
13
13
|
init_esm_shims();
|
|
@@ -1,24 +1,24 @@
|
|
|
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 _chunkF7CMBEUZcjs = require('./chunk-F7CMBEUZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZ425RPHDcjs = require('./chunk-Z425RPHD.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkKAVAYRRTcjs = require('./chunk-KAVAYRRT.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkUNQ5U2S4cjs = require('./chunk-UNQ5U2S4.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk2MLKNJIPcjs = require('./chunk-2MLKNJIP.cjs');
|
|
19
19
|
|
|
20
20
|
// src/context.ts
|
|
21
|
-
|
|
21
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -33,15 +33,15 @@ 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 _chunkZ425RPHDcjs.getWorkspaceConfig.call(void 0, true, {
|
|
37
37
|
workspaceRoot: workspaceRoot.dir
|
|
38
38
|
});
|
|
39
|
-
|
|
40
|
-
const stopwatch =
|
|
39
|
+
_chunkKAVAYRRTcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
40
|
+
const stopwatch = _chunkKAVAYRRTcjs.getStopwatch.call(void 0, "Build options resolution");
|
|
41
41
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
42
42
|
exitOnError: true
|
|
43
43
|
});
|
|
44
|
-
const projectJsonPath =
|
|
44
|
+
const projectJsonPath = _chunkUNQ5U2S4cjs.joinPaths.call(void 0,
|
|
45
45
|
workspaceRoot.dir,
|
|
46
46
|
projectRoot,
|
|
47
47
|
"project.json"
|
|
@@ -58,9 +58,9 @@ 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, _chunkF7CMBEUZcjs.DEFAULT_BUILD_OPTIONS);
|
|
62
62
|
options.name ??= projectName;
|
|
63
|
-
const packageJsonPath =
|
|
63
|
+
const packageJsonPath = _chunkUNQ5U2S4cjs.joinPaths.call(void 0,
|
|
64
64
|
workspaceRoot.dir,
|
|
65
65
|
options.projectRoot,
|
|
66
66
|
"package.json"
|
|
@@ -68,10 +68,10 @@ 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 = _chunkZ425RPHDcjs.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
|
-
tsconfig:
|
|
74
|
+
tsconfig: _chunkUNQ5U2S4cjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
|
|
75
75
|
...options,
|
|
76
76
|
metafile: userOptions.mode === "development",
|
|
77
77
|
clean: false,
|
|
@@ -97,8 +97,8 @@ async function resolveContext(userOptions) {
|
|
|
97
97
|
projectConfigurations,
|
|
98
98
|
projectName,
|
|
99
99
|
projectGraph,
|
|
100
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
101
|
-
outputPath: resolvedOptions.outputPath ||
|
|
100
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkUNQ5U2S4cjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
101
|
+
outputPath: resolvedOptions.outputPath || _chunkUNQ5U2S4cjs.joinPaths.call(void 0,
|
|
102
102
|
workspaceConfig.workspaceRoot,
|
|
103
103
|
"dist",
|
|
104
104
|
resolvedOptions.projectRoot
|
|
@@ -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
|
+
_chunkKAVAYRRTcjs.writeDebug.call(void 0,
|
|
111
111
|
` \u2699\uFE0F Build options resolved:
|
|
112
112
|
|
|
113
|
-
${
|
|
113
|
+
${_chunkKAVAYRRTcjs.formatLogMessage.call(void 0, context.options)}`,
|
|
114
114
|
workspaceConfig
|
|
115
115
|
);
|
|
116
116
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeWarning
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KAK4OSJG.js";
|
|
5
5
|
import {
|
|
6
6
|
__require,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GVOLTKQ7.js";
|
|
9
9
|
|
|
10
10
|
// src/plugins/deps-check.ts
|
|
11
11
|
init_esm_shims();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZ425RPHDcjs = require('./chunk-Z425RPHD.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2MLKNJIPcjs = require('./chunk-2MLKNJIP.cjs');
|
|
7
7
|
|
|
8
8
|
// src/config.ts
|
|
9
|
-
|
|
9
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
10
10
|
var DEFAULT_BUILD_OPTIONS = {
|
|
11
11
|
assets: [],
|
|
12
12
|
platform: "node",
|
|
@@ -46,8 +46,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
46
46
|
".woff2": "file"
|
|
47
47
|
},
|
|
48
48
|
banner: {
|
|
49
|
-
js:
|
|
50
|
-
css:
|
|
49
|
+
js: _chunkZ425RPHDcjs.DEFAULT_COMPILED_BANNER,
|
|
50
|
+
css: _chunkZ425RPHDcjs.DEFAULT_COMPILED_BANNER
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
|
|
@@ -33,12 +33,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
mod
|
|
34
34
|
));
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/assets/esm_shims.js
|
|
37
37
|
import { fileURLToPath } from "url";
|
|
38
38
|
import path from "path";
|
|
39
39
|
var getFilename, getDirname, __dirname;
|
|
40
40
|
var init_esm_shims = __esm({
|
|
41
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
41
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/assets/esm_shims.js"() {
|
|
42
42
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
43
43
|
getDirname = () => path.dirname(getFilename());
|
|
44
44
|
__dirname = /* @__PURE__ */ getDirname();
|
|
@@ -1,28 +1,28 @@
|
|
|
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 _chunkZ425RPHDcjs = require('./chunk-Z425RPHD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkKAVAYRRTcjs = require('./chunk-KAVAYRRT.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkUNQ5U2S4cjs = require('./chunk-UNQ5U2S4.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2MLKNJIPcjs = require('./chunk-2MLKNJIP.cjs');
|
|
15
15
|
|
|
16
16
|
// src/package-json.ts
|
|
17
|
-
|
|
17
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _fs = require('fs');
|
|
20
20
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
21
21
|
async function generatePackageJson(context) {
|
|
22
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
23
|
-
|
|
24
|
-
const stopwatch =
|
|
25
|
-
const packageJsonPath =
|
|
22
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkUNQ5U2S4cjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
23
|
+
_chunkKAVAYRRTcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
24
|
+
const stopwatch = _chunkKAVAYRRTcjs.getStopwatch.call(void 0, "Write package.json file");
|
|
25
|
+
const packageJsonPath = _chunkUNQ5U2S4cjs.joinPaths.call(void 0,
|
|
26
26
|
context.options.projectRoot,
|
|
27
27
|
"project.json"
|
|
28
28
|
);
|
|
@@ -30,7 +30,7 @@ async function generatePackageJson(context) {
|
|
|
30
30
|
throw new Error("Cannot find package.json configuration");
|
|
31
31
|
}
|
|
32
32
|
const packageJsonFile = await _promises2.default.readFile(
|
|
33
|
-
|
|
33
|
+
_chunkUNQ5U2S4cjs.joinPaths.call(void 0,
|
|
34
34
|
context.workspaceConfig.workspaceRoot,
|
|
35
35
|
context.options.projectRoot,
|
|
36
36
|
"package.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 _chunkZ425RPHDcjs.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 _chunkZ425RPHDcjs.addWorkspacePackageJsonFields.call(void 0,
|
|
51
51
|
context.workspaceConfig,
|
|
52
52
|
context.options.projectRoot,
|
|
53
53
|
context.sourceRoot,
|
|
@@ -136,7 +136,7 @@ async function generatePackageJson(context) {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
await _devkit.writeJsonFile.call(void 0,
|
|
139
|
-
|
|
139
|
+
_chunkUNQ5U2S4cjs.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
140
140
|
packageJson
|
|
141
141
|
);
|
|
142
142
|
stopwatch();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
correctPaths,
|
|
3
3
|
joinPaths
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KZKQIIWT.js";
|
|
5
5
|
import {
|
|
6
6
|
init_esm_shims
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GVOLTKQ7.js";
|
|
8
8
|
|
|
9
9
|
// ../config-tools/src/logger/console.ts
|
|
10
10
|
init_esm_shims();
|
|
@@ -1,16 +1,16 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUNQ5U2S4cjs = require('./chunk-UNQ5U2S4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2MLKNJIPcjs = require('./chunk-2MLKNJIP.cjs');
|
|
8
8
|
|
|
9
9
|
// ../config-tools/src/logger/console.ts
|
|
10
|
-
|
|
10
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
11
11
|
|
|
12
12
|
// ../config-tools/src/types.ts
|
|
13
|
-
|
|
13
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
14
14
|
var LogLevel = {
|
|
15
15
|
SILENT: 0,
|
|
16
16
|
FATAL: 10,
|
|
@@ -35,13 +35,13 @@ var LogLevelLabel = {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
38
|
-
|
|
38
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
39
39
|
|
|
40
40
|
// ../config/src/index.ts
|
|
41
|
-
|
|
41
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
42
42
|
|
|
43
43
|
// ../config/src/constants.ts
|
|
44
|
-
|
|
44
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
45
45
|
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
46
46
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
47
47
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
@@ -64,10 +64,10 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
64
64
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
65
65
|
|
|
66
66
|
// ../config/src/define-config.ts
|
|
67
|
-
|
|
67
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
68
68
|
|
|
69
69
|
// ../config/src/schema.ts
|
|
70
|
-
|
|
70
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
71
71
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
72
72
|
var DarkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
73
73
|
var LightColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
@@ -278,7 +278,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
278
278
|
);
|
|
279
279
|
|
|
280
280
|
// ../config/src/types.ts
|
|
281
|
-
|
|
281
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
282
282
|
var COLOR_KEYS = [
|
|
283
283
|
"dark",
|
|
284
284
|
"light",
|
|
@@ -303,10 +303,10 @@ var _promises = require('fs/promises');
|
|
|
303
303
|
var _path = require('path');
|
|
304
304
|
|
|
305
305
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
306
|
-
|
|
306
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
307
307
|
|
|
308
308
|
// ../config-tools/src/utilities/find-up.ts
|
|
309
|
-
|
|
309
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
310
310
|
|
|
311
311
|
|
|
312
312
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -375,11 +375,11 @@ var rootDirectories = [
|
|
|
375
375
|
];
|
|
376
376
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
377
377
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
378
|
-
return
|
|
378
|
+
return _chunkUNQ5U2S4cjs.correctPaths.call(void 0,
|
|
379
379
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
380
380
|
);
|
|
381
381
|
}
|
|
382
|
-
return
|
|
382
|
+
return _chunkUNQ5U2S4cjs.correctPaths.call(void 0,
|
|
383
383
|
findFolderUp(
|
|
384
384
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
385
385
|
rootFiles,
|
|
@@ -440,7 +440,7 @@ async function getPackageJsonConfig(root) {
|
|
|
440
440
|
const workspaceRoot = findWorkspaceRoot(root);
|
|
441
441
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
|
|
442
442
|
const file = await _promises.readFile.call(void 0,
|
|
443
|
-
|
|
443
|
+
_chunkUNQ5U2S4cjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
444
444
|
"utf8"
|
|
445
445
|
);
|
|
446
446
|
if (file) {
|
|
@@ -514,7 +514,7 @@ function applyDefaultConfig(config) {
|
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
// ../config-tools/src/logger/chalk.ts
|
|
517
|
-
|
|
517
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
518
518
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
519
519
|
var chalkDefault = {
|
|
520
520
|
hex: (_) => (message) => message,
|
|
@@ -544,10 +544,10 @@ var getChalk = () => {
|
|
|
544
544
|
};
|
|
545
545
|
|
|
546
546
|
// ../config-tools/src/logger/console-icons.ts
|
|
547
|
-
|
|
547
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
548
548
|
|
|
549
549
|
// ../config-tools/src/logger/is-unicode-supported.ts
|
|
550
|
-
|
|
550
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
551
551
|
function isUnicodeSupported() {
|
|
552
552
|
if (process.platform !== "win32") {
|
|
553
553
|
return process.env.TERM !== "linux";
|
|
@@ -572,13 +572,13 @@ var CONSOLE_ICONS = {
|
|
|
572
572
|
};
|
|
573
573
|
|
|
574
574
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
575
|
-
|
|
575
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
576
576
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
577
577
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
578
578
|
};
|
|
579
579
|
|
|
580
580
|
// ../config-tools/src/logger/get-log-level.ts
|
|
581
|
-
|
|
581
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
582
582
|
var getLogLevel = (label) => {
|
|
583
583
|
switch (label) {
|
|
584
584
|
case "all":
|
|
@@ -1,24 +1,24 @@
|
|
|
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 _chunkZ425RPHDcjs = require('./chunk-Z425RPHD.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKAVAYRRTcjs = require('./chunk-KAVAYRRT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk2MLKNJIPcjs = require('./chunk-2MLKNJIP.cjs');
|
|
11
11
|
|
|
12
12
|
// src/assets.ts
|
|
13
|
-
|
|
13
|
+
_chunk2MLKNJIPcjs.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]) === 0) {
|
|
16
|
-
|
|
16
|
+
_chunkKAVAYRRTcjs.writeDebug.call(void 0,
|
|
17
17
|
` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`,
|
|
18
18
|
context.workspaceConfig
|
|
19
19
|
);
|
|
20
|
-
const stopwatch =
|
|
21
|
-
await
|
|
20
|
+
const stopwatch = _chunkKAVAYRRTcjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
21
|
+
await _chunkZ425RPHDcjs.copyAssets.call(void 0,
|
|
22
22
|
context.workspaceConfig,
|
|
23
23
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
24
24
|
context.outputPath,
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunkKAVAYRRTcjs = require('./chunk-KAVAYRRT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2MLKNJIPcjs = require('./chunk-2MLKNJIP.cjs');
|
|
9
9
|
|
|
10
10
|
// src/plugins/deps-check.ts
|
|
11
|
-
|
|
11
|
+
_chunk2MLKNJIPcjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
var _module = require('module');
|
|
13
13
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
14
14
|
var unusedIgnore = [
|
|
@@ -40,7 +40,7 @@ var depsCheckPlugin = (bundle) => ({
|
|
|
40
40
|
name: "storm:deps-check",
|
|
41
41
|
setup(build) {
|
|
42
42
|
const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
|
|
43
|
-
const pkgContents =
|
|
43
|
+
const pkgContents = _chunk2MLKNJIPcjs.__require.call(void 0, pkgJsonPath);
|
|
44
44
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
45
45
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
46
46
|
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
@@ -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
|
+
_chunkKAVAYRRTcjs.writeWarning.call(void 0,
|
|
79
79
|
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
80
80
|
);
|
|
81
|
-
|
|
81
|
+
_chunkKAVAYRRTcjs.writeError.call(void 0,
|
|
82
82
|
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
83
83
|
);
|
|
84
84
|
if (filteredMissingDeps.length > 0) {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getStopwatch,
|
|
3
3
|
writeDebug
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KAK4OSJG.js";
|
|
5
5
|
import {
|
|
6
6
|
joinPaths
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KZKQIIWT.js";
|
|
8
8
|
import {
|
|
9
9
|
__commonJS,
|
|
10
10
|
__dirname,
|
|
11
11
|
__require,
|
|
12
12
|
__toESM,
|
|
13
13
|
init_esm_shims
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GVOLTKQ7.js";
|
|
15
15
|
|
|
16
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
16
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/chunk-BYH4XDRH.js
|
|
17
17
|
var require_chunk_BYH4XDRH = __commonJS({
|
|
18
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
18
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports) {
|
|
19
19
|
"use strict";
|
|
20
20
|
init_esm_shims();
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -24,13 +24,13 @@ var require_chunk_BYH4XDRH = __commonJS({
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
27
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/chunk-TWFEYLU4.js
|
|
28
28
|
import * as __import_fs from "fs";
|
|
29
29
|
import * as __import_path from "path";
|
|
30
30
|
import * as __import_resolveFrom from "resolve-from";
|
|
31
31
|
import * as __import_tinyglobby from "tinyglobby";
|
|
32
32
|
var require_chunk_TWFEYLU4 = __commonJS({
|
|
33
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
33
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports) {
|
|
34
34
|
init_esm_shims();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
function _interopRequireDefault(obj) {
|
|
@@ -406,7 +406,7 @@ var require_chunk_TWFEYLU4 = __commonJS({
|
|
|
406
406
|
}
|
|
407
407
|
});
|
|
408
408
|
|
|
409
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
409
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/chunk-VGC3FXLU.js
|
|
410
410
|
import * as __import_fs2 from "fs";
|
|
411
411
|
import * as __import_path2 from "path";
|
|
412
412
|
import * as __import_joycon from "joycon";
|
|
@@ -415,7 +415,7 @@ import * as __import_util from "util";
|
|
|
415
415
|
import * as __import_worker_threads from "worker_threads";
|
|
416
416
|
import * as __import_picocolors from "picocolors";
|
|
417
417
|
var require_chunk_VGC3FXLU = __commonJS({
|
|
418
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
418
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports) {
|
|
419
419
|
init_esm_shims();
|
|
420
420
|
var __import___chunkTWFEYLU4_js = __toESM(require_chunk_TWFEYLU4());
|
|
421
421
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -642,11 +642,11 @@ var require_chunk_VGC3FXLU = __commonJS({
|
|
|
642
642
|
}
|
|
643
643
|
});
|
|
644
644
|
|
|
645
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
645
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/chunk-JZ25TPTY.js
|
|
646
646
|
import * as __import_worker_threads2 from "worker_threads";
|
|
647
647
|
import * as __import_picocolors2 from "picocolors";
|
|
648
648
|
var require_chunk_JZ25TPTY = __commonJS({
|
|
649
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
649
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports) {
|
|
650
650
|
init_esm_shims();
|
|
651
651
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
652
652
|
function _interopRequireDefault(obj) {
|
|
@@ -694,11 +694,11 @@ var require_chunk_JZ25TPTY = __commonJS({
|
|
|
694
694
|
}
|
|
695
695
|
});
|
|
696
696
|
|
|
697
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
697
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/commonjs-plugin.js
|
|
698
698
|
import * as __import_fs3 from "fs";
|
|
699
699
|
import * as __import_esbuild from "esbuild";
|
|
700
700
|
var require_commonjs_plugin = __commonJS({
|
|
701
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
701
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/commonjs-plugin.js"(exports, module) {
|
|
702
702
|
init_esm_shims();
|
|
703
703
|
var __defProp = Object.defineProperty;
|
|
704
704
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1026,7 +1026,7 @@ var require_commonjs_plugin = __commonJS({
|
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
1028
|
|
|
1029
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
1029
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/index.js
|
|
1030
1030
|
import * as __import_path3 from "path";
|
|
1031
1031
|
import * as __import_fs4 from "fs";
|
|
1032
1032
|
import * as __import_worker_threads3 from "worker_threads";
|
|
@@ -1042,7 +1042,7 @@ import * as __import_rollup from "rollup";
|
|
|
1042
1042
|
import * as __import_typescript from "typescript";
|
|
1043
1043
|
import * as __import_chokidar from "chokidar";
|
|
1044
1044
|
var require_dist = __commonJS({
|
|
1045
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
1045
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__32e55f1b9382019767849fa1f15db804/node_modules/tsup/dist/index.js"(exports) {
|
|
1046
1046
|
init_esm_shims();
|
|
1047
1047
|
var __import___chunkBYH4XDRH_js = __toESM(require_chunk_BYH4XDRH());
|
|
1048
1048
|
var __import___chunkVGC3FXLU_js = __toESM(require_chunk_VGC3FXLU());
|