@storm-software/esbuild 0.47.19 → 0.49.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.
Files changed (51) hide show
  1. package/README.md +2 -1
  2. package/dist/assets.cjs +6 -6
  3. package/dist/assets.js +5 -5
  4. package/dist/build.cjs +12 -12
  5. package/dist/build.js +11 -11
  6. package/dist/{chunk-NNPOK4ZA.cjs → chunk-27QZEPTJ.cjs} +2 -2
  7. package/dist/{chunk-NXEDGL2L.cjs → chunk-3BP44YM5.cjs} +5 -5
  8. package/dist/{chunk-3IYN4AMY.cjs → chunk-47V6EQ6C.cjs} +64 -64
  9. package/dist/{chunk-V6TA4CW2.cjs → chunk-5EQ2JTQP.cjs} +7 -7
  10. package/dist/{chunk-UUUQVVRP.js → chunk-65GBSOHO.js} +1 -1
  11. package/dist/{chunk-AT3RW36N.js → chunk-7BG5MW6F.js} +5 -5
  12. package/dist/{chunk-GLXNRZYU.js → chunk-BPGCR6N5.js} +7 -7
  13. package/dist/{chunk-E7YPFD24.js → chunk-H3UGI6K3.js} +1 -1
  14. package/dist/{chunk-FRBKIMUD.cjs → chunk-JEQDRKFQ.cjs} +18 -18
  15. package/dist/{chunk-6UVHYR74.js → chunk-L2G3IGG7.js} +4 -4
  16. package/dist/{chunk-2XCF5O46.js → chunk-LLY6GY6I.js} +3 -3
  17. package/dist/chunk-MZQ25SHR.cjs +6 -0
  18. package/dist/{chunk-SC3XZEBK.cjs → chunk-ODJD6MXD.cjs} +5 -5
  19. package/dist/{chunk-4WZ6P6VK.cjs → chunk-PDJKPN5A.cjs} +2 -2
  20. package/dist/{chunk-N4CUGRY6.cjs → chunk-QDZYEJUZ.cjs} +22 -22
  21. package/dist/{chunk-SBA6SHS4.cjs → chunk-QLWZJY6H.cjs} +13 -13
  22. package/dist/{chunk-T4NOOBMK.cjs → chunk-R2U7CSOX.cjs} +83 -83
  23. package/dist/{chunk-4ZDNVWJS.js → chunk-RVOMG3ZA.js} +2 -2
  24. package/dist/{chunk-SUEOLCXE.cjs → chunk-SNDP6MVM.cjs} +9 -9
  25. package/dist/{chunk-U7RMK5ET.js → chunk-V4OQRIHI.js} +15 -15
  26. package/dist/{chunk-STRFS2LT.js → chunk-X33VEVCJ.js} +2 -2
  27. package/dist/{chunk-NO5VVOAS.js → chunk-X3DZ5OK7.js} +2 -2
  28. package/dist/{chunk-KGEGX6KW.js → chunk-YBT2VSX7.js} +3 -3
  29. package/dist/{chunk-OHR2A47N.js → chunk-Z2T7Y5BP.js} +1 -1
  30. package/dist/clean.cjs +4 -4
  31. package/dist/clean.js +3 -3
  32. package/dist/config.cjs +6 -6
  33. package/dist/config.js +5 -5
  34. package/dist/context.cjs +7 -7
  35. package/dist/context.js +6 -6
  36. package/dist/index.cjs +14 -14
  37. package/dist/index.js +12 -12
  38. package/dist/package-json.cjs +6 -6
  39. package/dist/package-json.js +5 -5
  40. package/dist/plugins/deps-check.cjs +6 -6
  41. package/dist/plugins/deps-check.js +2 -2
  42. package/dist/plugins/resolve-paths.cjs +11 -11
  43. package/dist/plugins/resolve-paths.js +2 -2
  44. package/dist/tsup.cjs +5 -5
  45. package/dist/tsup.js +4 -4
  46. package/dist/types.cjs +2 -2
  47. package/dist/types.js +2 -2
  48. package/dist/watch.cjs +6 -6
  49. package/dist/watch.js +2 -2
  50. package/package.json +5 -5
  51. package/dist/chunk-KOTL3LZB.cjs +0 -6
@@ -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 _chunkSC3XZEBKcjs = require('./chunk-SC3XZEBK.cjs');
3
+ var _chunkODJD6MXDcjs = require('./chunk-ODJD6MXD.cjs');
4
4
 
5
5
 
6
6
 
7
- var _chunkT4NOOBMKcjs = require('./chunk-T4NOOBMK.cjs');
7
+ var _chunkR2U7CSOXcjs = require('./chunk-R2U7CSOX.cjs');
8
8
 
9
9
 
10
- var _chunkNNPOK4ZAcjs = require('./chunk-NNPOK4ZA.cjs');
10
+ var _chunk27QZEPTJcjs = require('./chunk-27QZEPTJ.cjs');
11
11
 
12
12
 
13
13
 
14
14
 
15
- var _chunkSUEOLCXEcjs = require('./chunk-SUEOLCXE.cjs');
15
+ var _chunkSNDP6MVMcjs = require('./chunk-SNDP6MVM.cjs');
16
16
 
17
17
 
18
- var _chunk4WZ6P6VKcjs = require('./chunk-4WZ6P6VK.cjs');
18
+ var _chunkPDJKPN5Acjs = require('./chunk-PDJKPN5A.cjs');
19
19
 
20
20
  // src/context.ts
21
- _chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
21
+ _chunkPDJKPN5Acjs.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 _chunkT4NOOBMKcjs.getWorkspaceConfig.call(void 0, true, {
36
+ const workspaceConfig = await _chunkR2U7CSOXcjs.getWorkspaceConfig.call(void 0, true, {
37
37
  workspaceRoot: workspaceRoot.dir
38
38
  });
39
- _chunkSUEOLCXEcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
40
- const stopwatch = _chunkSUEOLCXEcjs.getStopwatch.call(void 0, "Build options resolution");
39
+ _chunkSNDP6MVMcjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
40
+ const stopwatch = _chunkSNDP6MVMcjs.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 = _chunkNNPOK4ZAcjs.joinPaths.call(void 0,
44
+ const projectJsonPath = _chunk27QZEPTJcjs.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, _chunkSC3XZEBKcjs.DEFAULT_BUILD_OPTIONS);
61
+ const options = _defu2.default.call(void 0, userOptions, _chunkODJD6MXDcjs.DEFAULT_BUILD_OPTIONS);
62
62
  options.name ??= projectName;
63
- const packageJsonPath = _chunkNNPOK4ZAcjs.joinPaths.call(void 0,
63
+ const packageJsonPath = _chunk27QZEPTJcjs.joinPaths.call(void 0,
64
64
  workspaceRoot.dir,
65
65
  options.projectRoot,
66
66
  "package.json"
@@ -68,11 +68,11 @@ 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 = _chunkT4NOOBMKcjs.getEnv.call(void 0, "esbuild", options);
71
+ const env = _chunkR2U7CSOXcjs.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,
75
- tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkNNPOK4ZAcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
75
+ tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunk27QZEPTJcjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "tsconfig.json"),
76
76
  metafile: userOptions.mode === "development",
77
77
  clean: false,
78
78
  env,
@@ -97,8 +97,8 @@ async function resolveContext(userOptions) {
97
97
  projectConfigurations,
98
98
  projectName,
99
99
  projectGraph,
100
- sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkNNPOK4ZAcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
101
- outputPath: resolvedOptions.outputPath || _chunkNNPOK4ZAcjs.joinPaths.call(void 0,
100
+ sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunk27QZEPTJcjs.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
101
+ outputPath: resolvedOptions.outputPath || _chunk27QZEPTJcjs.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
- _chunkSUEOLCXEcjs.writeDebug.call(void 0,
110
+ _chunkSNDP6MVMcjs.writeDebug.call(void 0,
111
111
  ` \u2699\uFE0F Build options resolved:
112
112
 
113
- ${_chunkSUEOLCXEcjs.formatLogMessage.call(void 0, context.options)}`,
113
+ ${_chunkSNDP6MVMcjs.formatLogMessage.call(void 0, context.options)}`,
114
114
  workspaceConfig
115
115
  );
116
116
  }
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  addPackageDependencies,
3
3
  addWorkspacePackageJsonFields
4
- } from "./chunk-2XCF5O46.js";
4
+ } from "./chunk-LLY6GY6I.js";
5
5
  import {
6
6
  joinPaths
7
- } from "./chunk-UUUQVVRP.js";
7
+ } from "./chunk-65GBSOHO.js";
8
8
  import {
9
9
  getStopwatch,
10
10
  writeDebug
11
- } from "./chunk-E7YPFD24.js";
11
+ } from "./chunk-H3UGI6K3.js";
12
12
  import {
13
13
  init_esm_shims
14
- } from "./chunk-4ZDNVWJS.js";
14
+ } from "./chunk-RVOMG3ZA.js";
15
15
 
16
16
  // src/package-json.ts
17
17
  init_esm_shims();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  correctPaths,
3
3
  joinPaths
4
- } from "./chunk-UUUQVVRP.js";
4
+ } from "./chunk-65GBSOHO.js";
5
5
  import {
6
6
  LogLevel,
7
7
  formatLogMessage,
@@ -10,10 +10,10 @@ import {
10
10
  writeDebug,
11
11
  writeTrace,
12
12
  writeWarning
13
- } from "./chunk-E7YPFD24.js";
13
+ } from "./chunk-H3UGI6K3.js";
14
14
  import {
15
15
  init_esm_shims
16
- } from "./chunk-4ZDNVWJS.js";
16
+ } from "./chunk-RVOMG3ZA.js";
17
17
 
18
18
  // ../build-tools/src/config.ts
19
19
  init_esm_shims();
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ var _chunkPDJKPN5Acjs = require('./chunk-PDJKPN5A.cjs');
4
+
5
+ // src/types.ts
6
+ _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkT4NOOBMKcjs = require('./chunk-T4NOOBMK.cjs');
3
+ var _chunkR2U7CSOXcjs = require('./chunk-R2U7CSOX.cjs');
4
4
 
5
5
 
6
- var _chunk4WZ6P6VKcjs = require('./chunk-4WZ6P6VK.cjs');
6
+ var _chunkPDJKPN5Acjs = require('./chunk-PDJKPN5A.cjs');
7
7
 
8
8
  // src/config.ts
9
- _chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
9
+ _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
10
10
  var DEFAULT_BUILD_OPTIONS = {
11
11
  platform: "node",
12
12
  target: "node22",
@@ -44,8 +44,8 @@ var DEFAULT_BUILD_OPTIONS = {
44
44
  ".woff2": "file"
45
45
  },
46
46
  banner: {
47
- js: _chunkT4NOOBMKcjs.DEFAULT_COMPILED_BANNER,
48
- css: _chunkT4NOOBMKcjs.DEFAULT_COMPILED_BANNER
47
+ js: _chunkR2U7CSOXcjs.DEFAULT_COMPILED_BANNER,
48
+ css: _chunkR2U7CSOXcjs.DEFAULT_COMPILED_BANNER
49
49
  }
50
50
  };
51
51
 
@@ -33,9 +33,9 @@ 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=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__297f17f1454f91c6953e15139a881a25/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/assets/cjs_shims.js
37
37
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__297f17f1454f91c6953e15139a881a25/node_modules/tsup/assets/cjs_shims.js"() {
38
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__d6e611a074328ae4b12204b5bb78c504/node_modules/tsup/assets/cjs_shims.js"() {
39
39
  }
40
40
  });
41
41
 
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkV6TA4CW2cjs = require('./chunk-V6TA4CW2.cjs');
3
+ var _chunk5EQ2JTQPcjs = require('./chunk-5EQ2JTQP.cjs');
4
4
 
5
5
 
6
- var _chunkNXEDGL2Lcjs = require('./chunk-NXEDGL2L.cjs');
6
+ var _chunk3BP44YM5cjs = require('./chunk-3BP44YM5.cjs');
7
7
 
8
8
 
9
- var _chunkFRBKIMUDcjs = require('./chunk-FRBKIMUD.cjs');
9
+ var _chunkJEQDRKFQcjs = require('./chunk-JEQDRKFQ.cjs');
10
10
 
11
11
 
12
- var _chunkSBA6SHS4cjs = require('./chunk-SBA6SHS4.cjs');
12
+ var _chunkQLWZJY6Hcjs = require('./chunk-QLWZJY6H.cjs');
13
13
 
14
14
 
15
- var _chunk3IYN4AMYcjs = require('./chunk-3IYN4AMY.cjs');
15
+ var _chunk47V6EQ6Ccjs = require('./chunk-47V6EQ6C.cjs');
16
16
 
17
17
 
18
18
 
@@ -20,27 +20,27 @@ var _chunk3IYN4AMYcjs = require('./chunk-3IYN4AMY.cjs');
20
20
 
21
21
 
22
22
 
23
- var _chunkSUEOLCXEcjs = require('./chunk-SUEOLCXE.cjs');
23
+ var _chunkSNDP6MVMcjs = require('./chunk-SNDP6MVM.cjs');
24
24
 
25
25
 
26
- var _chunk4WZ6P6VKcjs = require('./chunk-4WZ6P6VK.cjs');
26
+ var _chunkPDJKPN5Acjs = require('./chunk-PDJKPN5A.cjs');
27
27
 
28
28
  // src/build.ts
29
- _chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
29
+ _chunkPDJKPN5Acjs.init_cjs_shims.call(void 0, );
30
30
  async function reportResults(context) {
31
31
  if (_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) === 0) {
32
32
  if (context.result.warnings.length > 0) {
33
- _chunkSUEOLCXEcjs.writeWarning.call(void 0,
33
+ _chunkSNDP6MVMcjs.writeWarning.call(void 0,
34
34
  ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
35
35
  context.workspaceConfig
36
36
  );
37
37
  }
38
- _chunkSUEOLCXEcjs.writeSuccess.call(void 0,
38
+ _chunkSNDP6MVMcjs.writeSuccess.call(void 0,
39
39
  ` \u{1F4E6} The ${context.options.name} build completed successfully`,
40
40
  context.workspaceConfig
41
41
  );
42
42
  } 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) {
43
- _chunkSUEOLCXEcjs.writeError.call(void 0,
43
+ _chunkSNDP6MVMcjs.writeError.call(void 0,
44
44
  ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
45
45
  context.workspaceConfig
46
46
  );
@@ -51,36 +51,36 @@ async function reportResults(context) {
51
51
  }
52
52
  async function cleanOutputPath(context) {
53
53
  if (context.clean !== false && context.outputPath) {
54
- _chunkSUEOLCXEcjs.writeDebug.call(void 0,
54
+ _chunkSNDP6MVMcjs.writeDebug.call(void 0,
55
55
  ` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
56
56
  context.workspaceConfig
57
57
  );
58
- const stopwatch = _chunkSUEOLCXEcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
59
- await _chunkNXEDGL2Lcjs.cleanDirectories.call(void 0, context.outputPath);
58
+ const stopwatch = _chunkSNDP6MVMcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
59
+ await _chunk3BP44YM5cjs.cleanDirectories.call(void 0, context.outputPath);
60
60
  stopwatch();
61
61
  }
62
62
  return context;
63
63
  }
64
64
  async function build(options) {
65
- _chunkSUEOLCXEcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
66
- const stopwatch = _chunkSUEOLCXEcjs.getStopwatch.call(void 0, "ESBuild pipeline");
65
+ _chunkSNDP6MVMcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
66
+ const stopwatch = _chunkSNDP6MVMcjs.getStopwatch.call(void 0, "ESBuild pipeline");
67
67
  try {
68
68
  const opts = Array.isArray(options) ? options : [options];
69
69
  if (opts.length === 0) {
70
70
  throw new Error("No build options were provided");
71
71
  }
72
- const context = await _chunkFRBKIMUDcjs.resolveContext.call(void 0, options);
72
+ const context = await _chunkJEQDRKFQcjs.resolveContext.call(void 0, options);
73
73
  await cleanOutputPath(context);
74
74
  await Promise.all([
75
75
  // dependencyCheck(context.options),
76
- _chunkSBA6SHS4cjs.generatePackageJson.call(void 0, context),
77
- _chunkV6TA4CW2cjs.copyBuildAssets.call(void 0, context),
78
- _chunk3IYN4AMYcjs.executeTsup.call(void 0, context)
76
+ _chunkQLWZJY6Hcjs.generatePackageJson.call(void 0, context),
77
+ _chunk5EQ2JTQPcjs.copyBuildAssets.call(void 0, context),
78
+ _chunk47V6EQ6Ccjs.executeTsup.call(void 0, context)
79
79
  ]);
80
80
  await reportResults(context);
81
- _chunkSUEOLCXEcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
81
+ _chunkSNDP6MVMcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
82
82
  } catch (error) {
83
- _chunkSUEOLCXEcjs.writeFatal.call(void 0,
83
+ _chunkSNDP6MVMcjs.writeFatal.call(void 0,
84
84
  "Fatal errors that the build process could not recover from have occured. The build process has been terminated."
85
85
  );
86
86
  throw error;
@@ -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 _chunkT4NOOBMKcjs = require('./chunk-T4NOOBMK.cjs');
4
+ var _chunkR2U7CSOXcjs = require('./chunk-R2U7CSOX.cjs');
5
5
 
6
6
 
7
- var _chunkNNPOK4ZAcjs = require('./chunk-NNPOK4ZA.cjs');
7
+ var _chunk27QZEPTJcjs = require('./chunk-27QZEPTJ.cjs');
8
8
 
9
9
 
10
10
 
11
- var _chunkSUEOLCXEcjs = require('./chunk-SUEOLCXE.cjs');
11
+ var _chunkSNDP6MVMcjs = require('./chunk-SNDP6MVM.cjs');
12
12
 
13
13
 
14
- var _chunk4WZ6P6VKcjs = require('./chunk-4WZ6P6VK.cjs');
14
+ var _chunkPDJKPN5Acjs = require('./chunk-PDJKPN5A.cjs');
15
15
 
16
16
  // src/package-json.ts
17
- _chunk4WZ6P6VKcjs.init_cjs_shims.call(void 0, );
17
+ _chunkPDJKPN5Acjs.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, _chunkNNPOK4ZAcjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
23
- _chunkSUEOLCXEcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
24
- const stopwatch = _chunkSUEOLCXEcjs.getStopwatch.call(void 0, "Write package.json file");
25
- const packageJsonPath = _chunkNNPOK4ZAcjs.joinPaths.call(void 0,
22
+ if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunk27QZEPTJcjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
23
+ _chunkSNDP6MVMcjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
24
+ const stopwatch = _chunkSNDP6MVMcjs.getStopwatch.call(void 0, "Write package.json file");
25
+ const packageJsonPath = _chunk27QZEPTJcjs.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
- _chunkNNPOK4ZAcjs.joinPaths.call(void 0,
33
+ _chunk27QZEPTJcjs.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 _chunkT4NOOBMKcjs.addPackageDependencies.call(void 0,
44
+ packageJson = await _chunkR2U7CSOXcjs.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 _chunkT4NOOBMKcjs.addWorkspacePackageJsonFields.call(void 0,
50
+ packageJson = await _chunkR2U7CSOXcjs.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
- _chunkNNPOK4ZAcjs.joinPaths.call(void 0, context.outputPath, "package.json"),
139
+ _chunk27QZEPTJcjs.joinPaths.call(void 0, context.outputPath, "package.json"),
140
140
  packageJson
141
141
  );
142
142
  stopwatch();