@storm-software/esbuild 0.35.5 → 0.35.6
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 +2 -1
- package/dist/assets.cjs +6 -6
- package/dist/assets.js +5 -5
- package/dist/build.cjs +14 -14
- package/dist/build.js +13 -13
- package/dist/{chunk-N5MGZ2YM.cjs → chunk-2O4ICDGO.cjs} +7 -7
- package/dist/{chunk-2SU3HI5Q.cjs → chunk-2VOJGBTN.cjs} +51 -51
- package/dist/{chunk-FBR7AR6F.cjs → chunk-3RAC4FZO.cjs} +734 -459
- package/dist/{chunk-WCXP7IBU.js → chunk-65VVMOZG.js} +2 -2
- package/dist/{chunk-FWIPARM7.js → chunk-6FTOKP4Y.js} +2 -2
- package/dist/{chunk-V5SXPYDB.js → chunk-7GTV27I3.js} +2 -2
- package/dist/{chunk-XWGV6MFZ.js → chunk-CT2JN373.js} +6 -6
- package/dist/{chunk-AEHXBLG2.cjs → chunk-EKHZJ4M2.cjs} +7 -7
- package/dist/{chunk-T2DBJGI2.cjs → chunk-FD7TNV2W.cjs} +8 -8
- package/dist/chunk-IDUGUMC5.cjs +6 -0
- package/dist/{chunk-RT5QOWTF.js → chunk-JHNO43TF.js} +514 -237
- package/dist/{chunk-6WPLL2C2.cjs → chunk-K3P3M3WZ.cjs} +7 -7
- package/dist/{chunk-POL6NUTY.cjs → chunk-K7O5MSIA.cjs} +19 -19
- package/dist/{chunk-IGG5GIIV.js → chunk-KIU5S3AJ.js} +2 -2
- package/dist/{chunk-2DAVPJ7D.cjs → chunk-KJZPYCZ3.cjs} +106 -106
- package/dist/{chunk-QNVXA3GL.js → chunk-MKWQ32YS.js} +3 -3
- package/dist/{chunk-SJESTPEC.cjs → chunk-NDGCAOGY.cjs} +2 -2
- package/dist/{chunk-X3XWFR6F.js → chunk-OI72SBIC.js} +1 -1
- package/dist/{chunk-C23H24WU.cjs → chunk-PWNHPJJM.cjs} +5 -5
- package/dist/{chunk-6YDZYQLV.js → chunk-QCVGEU2D.js} +2 -2
- package/dist/{chunk-CQGBWOR4.cjs → chunk-RLF3EK6Q.cjs} +28 -28
- package/dist/{chunk-EP4M3VJ3.cjs → chunk-U4QY2FDF.cjs} +14 -14
- package/dist/{chunk-MFZUNTR7.js → chunk-VA4XN7N3.js} +4 -4
- package/dist/{chunk-VW5VOVX7.js → chunk-VSA5PVM5.js} +2 -2
- package/dist/{chunk-RIGD2PFD.cjs → chunk-WOKMOSA3.cjs} +7 -7
- package/dist/{chunk-ODOBFGX6.js → chunk-XNZ7JM4N.js} +8 -8
- package/dist/{chunk-347I4FKJ.js → chunk-YZMPHNIX.js} +1 -1
- package/dist/{chunk-DK7FJ3YJ.js → chunk-Z6V4NRWA.js} +3 -3
- 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 +8 -8
- package/dist/context.js +7 -7
- package/dist/index.cjs +16 -16
- package/dist/index.js +14 -14
- 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 +4 -4
- package/dist/plugins/resolve-paths.js +3 -3
- 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 +14 -14
- package/dist/watch.js +3 -3
- package/package.json +4 -4
- package/dist/chunk-N3AYB46G.cjs +0 -6
|
@@ -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(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk2VOJGBTNcjs = require('./chunk-2VOJGBTN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkNDGCAOGYcjs = require('./chunk-NDGCAOGY.cjs');
|
|
10
10
|
|
|
11
11
|
// src/plugins/deps-check.ts
|
|
12
|
-
|
|
12
|
+
_chunkNDGCAOGYcjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
var _module = require('module');
|
|
14
14
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
15
15
|
var unusedIgnore = [
|
|
@@ -41,11 +41,11 @@ var missingIgnore = [
|
|
|
41
41
|
"@prisma/client",
|
|
42
42
|
"ts-toolbelt"
|
|
43
43
|
];
|
|
44
|
-
var depsCheckPlugin = /* @__PURE__ */
|
|
44
|
+
var depsCheckPlugin = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (bundle) => ({
|
|
45
45
|
name: "storm:deps-check",
|
|
46
46
|
setup(build) {
|
|
47
47
|
const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
|
|
48
|
-
const pkgContents =
|
|
48
|
+
const pkgContents = _chunkNDGCAOGYcjs.__require.call(void 0, pkgJsonPath);
|
|
49
49
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
50
50
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
51
51
|
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
@@ -88,8 +88,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (bun
|
|
|
88
88
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
89
89
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
90
90
|
});
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
_chunk2VOJGBTNcjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
92
|
+
_chunk2VOJGBTNcjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
93
93
|
if (filteredMissingDeps.length > 0) {
|
|
94
94
|
throw new Error(`Missing dependencies detected - please install them:
|
|
95
95
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -1,27 +1,27 @@
|
|
|
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 _chunkEKHZJ4M2cjs = require('./chunk-EKHZJ4M2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPWNHPJJMcjs = require('./chunk-PWNHPJJM.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKJZPYCZ3cjs = require('./chunk-KJZPYCZ3.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2VOJGBTNcjs = require('./chunk-2VOJGBTN.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkWOKMOSA3cjs = require('./chunk-WOKMOSA3.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkNDGCAOGYcjs = require('./chunk-NDGCAOGY.cjs');
|
|
22
22
|
|
|
23
23
|
// src/context.ts
|
|
24
|
-
|
|
24
|
+
_chunkNDGCAOGYcjs.init_cjs_shims.call(void 0, );
|
|
25
25
|
var _devkit = require('@nx/devkit');
|
|
26
26
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
27
27
|
var _fs = require('fs');
|
|
@@ -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 _chunkKJZPYCZ3cjs.getWorkspaceConfig.call(void 0, true, {
|
|
37
37
|
workspaceRoot: workspaceRoot.dir
|
|
38
38
|
});
|
|
39
|
-
|
|
40
|
-
const stopwatch =
|
|
39
|
+
_chunk2VOJGBTNcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
40
|
+
const stopwatch = _chunk2VOJGBTNcjs.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 = _chunkWOKMOSA3cjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
|
|
45
45
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
46
46
|
throw new Error("Cannot find project.json configuration");
|
|
47
47
|
}
|
|
@@ -52,17 +52,17 @@ async function resolveContext(userOptions) {
|
|
|
52
52
|
if (!_optionalChain([projectConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName]])) {
|
|
53
53
|
throw new Error("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.");
|
|
54
54
|
}
|
|
55
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
55
|
+
const options = _defu2.default.call(void 0, userOptions, _chunkPWNHPJJMcjs.DEFAULT_BUILD_OPTIONS);
|
|
56
56
|
options.name ??= projectName;
|
|
57
|
-
const packageJsonPath =
|
|
57
|
+
const packageJsonPath = _chunkWOKMOSA3cjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
58
58
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
59
59
|
throw new Error("Cannot find package.json configuration");
|
|
60
60
|
}
|
|
61
|
-
const env =
|
|
61
|
+
const env = _chunkKJZPYCZ3cjs.getEnv.call(void 0, "esbuild", options);
|
|
62
62
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
63
63
|
const resolvedOptions = {
|
|
64
64
|
...options,
|
|
65
|
-
tsconfig:
|
|
65
|
+
tsconfig: _chunkWOKMOSA3cjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
66
66
|
metafile: userOptions.mode === "development",
|
|
67
67
|
clean: false,
|
|
68
68
|
env,
|
|
@@ -87,17 +87,17 @@ async function resolveContext(userOptions) {
|
|
|
87
87
|
projectConfigurations,
|
|
88
88
|
projectName,
|
|
89
89
|
projectGraph,
|
|
90
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
91
|
-
outputPath: resolvedOptions.outputPath ||
|
|
90
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkWOKMOSA3cjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
91
|
+
outputPath: resolvedOptions.outputPath || _chunkWOKMOSA3cjs.joinPaths.call(void 0, workspaceConfig.workspaceRoot, "dist", resolvedOptions.projectRoot),
|
|
92
92
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
93
93
|
};
|
|
94
94
|
context.options.esbuildPlugins = [
|
|
95
|
-
|
|
95
|
+
_chunkEKHZJ4M2cjs.resolvePathsPlugin.call(void 0, context),
|
|
96
96
|
..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))
|
|
97
97
|
];
|
|
98
98
|
return context;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkNDGCAOGYcjs.__name.call(void 0, resolveContext, "resolveContext");
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|