@storm-software/build-tools 0.144.19 → 0.144.21

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 (73) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-6KESXKM3.mjs → chunk-2IACGL5A.mjs} +69 -34
  3. package/dist/{chunk-XLAPHZPX.mjs → chunk-3VZVP5XV.mjs} +0 -5
  4. package/dist/{chunk-MY55IIR6.js → chunk-673CAI2G.js} +5 -14
  5. package/dist/{chunk-M5AC3COW.mjs → chunk-7NL4YIH3.mjs} +4 -13
  6. package/dist/{chunk-LCPSDCDB.mjs → chunk-7YKXR5JJ.mjs} +1 -8
  7. package/dist/{chunk-F7WSCB6H.js → chunk-A75DEKU5.js} +1 -6
  8. package/dist/{chunk-H2MR24BL.mjs → chunk-BKMDH7XQ.mjs} +10 -16
  9. package/dist/chunk-D7ZBIHS7.mjs +76 -0
  10. package/dist/{chunk-STJ5NLSZ.mjs → chunk-DLSOQQ2X.mjs} +24 -11
  11. package/dist/{chunk-LWYVLXCJ.js → chunk-ECGZDTG2.js} +72 -37
  12. package/dist/{chunk-NSNKG4UV.js → chunk-EGKFW7BM.js} +168 -114
  13. package/dist/{chunk-T2R2KKTW.mjs → chunk-HGTDDXA5.mjs} +2 -5
  14. package/dist/{chunk-2TV7ZJSK.js → chunk-HQD5ZBIU.js} +2 -9
  15. package/dist/{chunk-A6F6NNS6.mjs → chunk-JJQN3HTQ.mjs} +183 -119
  16. package/dist/{chunk-CNURHK3D.mjs → chunk-KUEYIH7W.mjs} +2 -6
  17. package/dist/{chunk-Y3HRAWPU.js → chunk-N7HP2YYE.js} +9 -8
  18. package/dist/chunk-ODQKLK6L.mjs +69 -0
  19. package/dist/{chunk-CNKJQMCL.js → chunk-TABRPMJB.js} +28 -15
  20. package/dist/{chunk-JP4YIUPA.js → chunk-TQIOTV5X.js} +25 -21
  21. package/dist/{chunk-4Y7DUAMQ.js → chunk-TSUTFOQG.js} +17 -23
  22. package/dist/{chunk-PBTSVWXL.js → chunk-UHJ5ACWH.js} +3 -7
  23. package/dist/chunk-UNY7ZVZF.js +76 -0
  24. package/dist/{chunk-VQUREEMI.mjs → chunk-VGLIZ2H3.mjs} +8 -7
  25. package/dist/{chunk-QKEUU3L3.mjs → chunk-VWJLKDCB.mjs} +141 -87
  26. package/dist/{chunk-5HOBE4TZ.js → chunk-WLW3DA6X.js} +2 -5
  27. package/dist/{chunk-VSAQXEXD.js → chunk-WNMPQTPH.js} +39 -31
  28. package/dist/{chunk-QCTHJR6E.js → chunk-XXESPGZP.js} +184 -120
  29. package/dist/{chunk-67VZRCF5.mjs → chunk-YZ6ZTM5M.mjs} +27 -23
  30. package/dist/config.js +0 -1
  31. package/dist/config.mjs +0 -1
  32. package/dist/index.js +16 -17
  33. package/dist/index.mjs +15 -16
  34. package/dist/plugins/analyze.js +3 -4
  35. package/dist/plugins/analyze.mjs +2 -3
  36. package/dist/plugins/index.js +6 -7
  37. package/dist/plugins/index.mjs +5 -6
  38. package/dist/plugins/swc.js +2 -3
  39. package/dist/plugins/swc.mjs +1 -2
  40. package/dist/plugins/ts-resolve.js +3 -4
  41. package/dist/plugins/ts-resolve.mjs +2 -3
  42. package/dist/plugins/type-definitions.js +2 -3
  43. package/dist/plugins/type-definitions.mjs +1 -2
  44. package/dist/types.js +1 -1
  45. package/dist/types.mjs +1 -1
  46. package/dist/utilities/copy-assets.js +3 -4
  47. package/dist/utilities/copy-assets.mjs +2 -3
  48. package/dist/utilities/generate-package-json.js +3 -4
  49. package/dist/utilities/generate-package-json.mjs +2 -3
  50. package/dist/utilities/get-entry-points.js +3 -4
  51. package/dist/utilities/get-entry-points.mjs +2 -3
  52. package/dist/utilities/get-env.js +2 -3
  53. package/dist/utilities/get-env.mjs +1 -2
  54. package/dist/utilities/get-file-banner.js +2 -3
  55. package/dist/utilities/get-file-banner.mjs +1 -2
  56. package/dist/utilities/get-out-extension.js +2 -3
  57. package/dist/utilities/get-out-extension.mjs +1 -2
  58. package/dist/utilities/get-project-deps.js +2 -3
  59. package/dist/utilities/get-project-deps.mjs +1 -2
  60. package/dist/utilities/index.js +11 -12
  61. package/dist/utilities/index.mjs +10 -11
  62. package/dist/utilities/read-nx-config.js +3 -4
  63. package/dist/utilities/read-nx-config.mjs +2 -3
  64. package/dist/utilities/task-graph.js +2 -3
  65. package/dist/utilities/task-graph.mjs +1 -2
  66. package/package.json +1 -1
  67. package/dist/chunk-O6YSETKJ.mjs +0 -6
  68. package/dist/chunk-S5V4ROWC.js +0 -67
  69. package/dist/chunk-S7LT43EW.mjs +0 -67
  70. package/dist/chunk-SHUYVCID.js +0 -6
  71. package/dist/chunk-ZW5JWBA4.mjs +0 -61
  72. /package/dist/{chunk-GGNOJ77I.js → chunk-6F4PWJZI.js} +0 -0
  73. /package/dist/{chunk-WAXGOBY2.mjs → chunk-WBQAMGXK.mjs} +0 -0
@@ -2,16 +2,13 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkQCTHJR6Ejs = require('./chunk-QCTHJR6E.js');
6
-
7
-
8
- var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
5
+ var _chunkXXESPGZPjs = require('./chunk-XXESPGZP.js');
9
6
 
10
7
  // src/utilities/copy-assets.ts
11
8
  var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
12
9
  var _glob = require('glob');
13
10
  var _promises = require('fs/promises');
14
- var copyAssets = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson = true, includeSrc = false, banner, footer) => {
11
+ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson = true, includeSrc = false, banner, footer) => {
15
12
  const pendingAssets = Array.from(_nullishCoalesce(assets, () => ( [])));
16
13
  pendingAssets.push({
17
14
  input: projectRoot,
@@ -37,8 +34,11 @@ var copyAssets = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (con
37
34
  output: "src/"
38
35
  });
39
36
  }
40
- _chunkQCTHJR6Ejs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
41
- ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkQCTHJR6Ejs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
37
+ _chunkXXESPGZPjs.writeTrace.call(void 0,
38
+ `\u{1F4DD} Copying the following assets to the output directory:
39
+ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkXXESPGZPjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
40
+ config
41
+ );
42
42
  const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
43
43
  projectDir: projectRoot,
44
44
  rootDir: config.workspaceRoot,
@@ -47,20 +47,33 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
47
47
  });
48
48
  await assetHandler.processAllAssetsOnce();
49
49
  if (includeSrc === true) {
50
- _chunkQCTHJR6Ejs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkQCTHJR6Ejs.joinPaths.call(void 0, outputPath, "src")}`, config);
50
+ _chunkXXESPGZPjs.writeDebug.call(void 0,
51
+ `\u{1F4DD} Adding banner and writing source files: ${_chunkXXESPGZPjs.joinPaths.call(void 0,
52
+ outputPath,
53
+ "src"
54
+ )}`,
55
+ config
56
+ );
51
57
  const files = await _glob.glob.call(void 0, [
52
- _chunkQCTHJR6Ejs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
53
- _chunkQCTHJR6Ejs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
54
- _chunkQCTHJR6Ejs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
55
- _chunkQCTHJR6Ejs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
58
+ _chunkXXESPGZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
59
+ _chunkXXESPGZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
60
+ _chunkXXESPGZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
61
+ _chunkXXESPGZPjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
56
62
  ]);
57
- await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
63
+ await Promise.allSettled(
64
+ files.map(
65
+ async (file) => _promises.writeFile.call(void 0,
66
+ file,
67
+ `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
58
68
 
59
69
  ${await _promises.readFile.call(void 0, file, "utf8")}
60
70
 
61
- ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`)));
71
+ ${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`
72
+ )
73
+ )
74
+ );
62
75
  }
63
- }, "copyAssets");
76
+ };
64
77
 
65
78
 
66
79
 
@@ -1,11 +1,12 @@
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; }
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; }// src/utilities/task-graph.ts
2
+
2
3
 
3
- var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
4
4
 
5
- // src/utilities/task-graph.ts
6
5
  var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
7
6
  function getAllWorkspaceTaskGraphs(nxJson, projectGraph) {
8
- const defaultDependencyConfigs = _createtaskgraph.mapTargetDefaultsToDependencies.call(void 0, nxJson.targetDefaults);
7
+ const defaultDependencyConfigs = _createtaskgraph.mapTargetDefaultsToDependencies.call(void 0,
8
+ nxJson.targetDefaults
9
+ );
9
10
  const taskGraphs = {};
10
11
  const taskGraphErrors = {};
11
12
  for (const projectName in projectGraph.nodes) {
@@ -14,11 +15,14 @@ function getAllWorkspaceTaskGraphs(nxJson, projectGraph) {
14
15
  for (const target of targets) {
15
16
  const taskId = createTaskId(projectName, target);
16
17
  try {
17
- taskGraphs[taskId] = _createtaskgraph.createTaskGraph.call(void 0, projectGraph, defaultDependencyConfigs, [
18
- projectName
19
- ], [
20
- target
21
- ], void 0, {});
18
+ taskGraphs[taskId] = _createtaskgraph.createTaskGraph.call(void 0,
19
+ projectGraph,
20
+ defaultDependencyConfigs,
21
+ [projectName],
22
+ [target],
23
+ void 0,
24
+ {}
25
+ );
22
26
  } catch (err) {
23
27
  taskGraphs[taskId] = {
24
28
  tasks: {},
@@ -27,16 +31,21 @@ function getAllWorkspaceTaskGraphs(nxJson, projectGraph) {
27
31
  };
28
32
  taskGraphErrors[taskId] = err.message;
29
33
  }
30
- const configurations = Object.keys(_optionalChain([project, 'optionalAccess', _3 => _3.data, 'optionalAccess', _4 => _4.targets, 'optionalAccess', _5 => _5[target], 'optionalAccess', _6 => _6.configurations]) || {});
34
+ const configurations = Object.keys(
35
+ _optionalChain([project, 'optionalAccess', _3 => _3.data, 'optionalAccess', _4 => _4.targets, 'optionalAccess', _5 => _5[target], 'optionalAccess', _6 => _6.configurations]) || {}
36
+ );
31
37
  if (configurations.length > 0) {
32
38
  for (const configuration of configurations) {
33
39
  const taskId2 = createTaskId(projectName, target, configuration);
34
40
  try {
35
- taskGraphs[taskId2] = _createtaskgraph.createTaskGraph.call(void 0, projectGraph, defaultDependencyConfigs, [
36
- projectName
37
- ], [
38
- target
39
- ], configuration, {});
41
+ taskGraphs[taskId2] = _createtaskgraph.createTaskGraph.call(void 0,
42
+ projectGraph,
43
+ defaultDependencyConfigs,
44
+ [projectName],
45
+ [target],
46
+ configuration,
47
+ {}
48
+ );
40
49
  } catch (err) {
41
50
  taskGraphs[taskId2] = {
42
51
  tasks: {},
@@ -49,19 +58,14 @@ function getAllWorkspaceTaskGraphs(nxJson, projectGraph) {
49
58
  }
50
59
  }
51
60
  }
52
- return {
53
- taskGraphs,
54
- errors: taskGraphErrors
55
- };
61
+ return { taskGraphs, errors: taskGraphErrors };
56
62
  }
57
- _chunkSHUYVCIDjs.__name.call(void 0, getAllWorkspaceTaskGraphs, "getAllWorkspaceTaskGraphs");
58
63
  function createTaskId(projectId, targetId, configurationId) {
59
64
  if (configurationId) {
60
65
  return `${projectId}:${targetId}:${configurationId}`;
61
66
  }
62
67
  return `${projectId}:${targetId}`;
63
68
  }
64
- _chunkSHUYVCIDjs.__name.call(void 0, createTaskId, "createTaskId");
65
69
 
66
70
 
67
71
 
@@ -1,16 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkQCTHJR6Ejs = require('./chunk-QCTHJR6E.js');
4
-
5
-
6
- var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
3
+ var _chunkXXESPGZPjs = require('./chunk-XXESPGZP.js');
7
4
 
8
5
  // src/plugins/ts-resolve.ts
9
6
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
10
7
  var _module = require('module');
11
8
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
12
9
  var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
13
- var resolveModule = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (id, opts) => new Promise((resolve, reject) => {
10
+ var resolveModule = (id, opts) => new Promise((resolve, reject) => {
14
11
  _resolve3.default.call(void 0, id, opts, (err, res) => {
15
12
  if (_optionalChain([err, 'optionalAccess', _ => _.code]) === "MODULE_NOT_FOUND") {
16
13
  return resolve(null);
@@ -20,17 +17,17 @@ var resolveModule = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (id, op
20
17
  }
21
18
  resolve(res || null);
22
19
  });
23
- }), "resolveModule");
24
- var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ resolveOnly, ignore } = {}) => {
25
- const resolveExtensions = [
26
- ".d.ts",
27
- ".ts"
28
- ];
20
+ });
21
+ var tsResolvePlugin = ({
22
+ resolveOnly,
23
+ ignore
24
+ } = {}) => {
25
+ const resolveExtensions = [".d.ts", ".ts"];
29
26
  return {
30
27
  name: `storm:ts-resolve`,
31
28
  async resolveId(source, importer) {
32
- _chunkQCTHJR6Ejs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
33
- _chunkQCTHJR6Ejs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
29
+ _chunkXXESPGZPjs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
30
+ _chunkXXESPGZPjs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
34
31
  if (!importer) {
35
32
  return null;
36
33
  }
@@ -41,7 +38,7 @@ var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ re
41
38
  return false;
42
39
  }
43
40
  if (ignore && ignore(source, importer)) {
44
- _chunkQCTHJR6Ejs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
41
+ _chunkXXESPGZPjs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
45
42
  return null;
46
43
  }
47
44
  if (resolveOnly) {
@@ -50,12 +47,12 @@ var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ re
50
47
  return v.test(source);
51
48
  });
52
49
  if (!shouldResolve) {
53
- _chunkQCTHJR6Ejs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
50
+ _chunkXXESPGZPjs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
54
51
  return null;
55
52
  }
56
53
  }
57
54
  if (_path2.default.isAbsolute(source)) {
58
- _chunkQCTHJR6Ejs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
55
+ _chunkXXESPGZPjs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
59
56
  return null;
60
57
  }
61
58
  const basedir = importer ? await _fs2.default.promises.realpath(_path2.default.dirname(importer)) : process.cwd();
@@ -80,21 +77,18 @@ var tsResolvePlugin = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, ({ re
80
77
  pkg.main = pkg.types || pkg.typings;
81
78
  return pkg;
82
79
  },
83
- paths: [
84
- "node_modules",
85
- "node_modules/@types"
86
- ]
80
+ paths: ["node_modules", "node_modules/@types"]
87
81
  });
88
82
  }
89
83
  if (id) {
90
- _chunkQCTHJR6Ejs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
84
+ _chunkXXESPGZPjs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
91
85
  return id;
92
86
  }
93
- _chunkQCTHJR6Ejs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
87
+ _chunkXXESPGZPjs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
94
88
  return false;
95
89
  }
96
90
  };
97
- }, "tsResolvePlugin");
91
+ };
98
92
 
99
93
 
100
94
 
@@ -1,9 +1,5 @@
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
-
3
- var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
4
-
5
- // src/utilities/get-file-banner.ts
6
- var getFileBanner = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, (name, commentStart = "//") => {
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; }// src/utilities/get-file-banner.ts
2
+ var getFileBanner = (name, commentStart = "//") => {
7
3
  let padding = "";
8
4
  while (name.length + padding.length < 12) {
9
5
  padding += " ";
@@ -37,7 +33,7 @@ ${commentStart} ----------------------------------------------------------------
37
33
 
38
34
 
39
35
  `;
40
- }, "getFileBanner");
36
+ };
41
37
 
42
38
 
43
39
 
@@ -0,0 +1,76 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkXXESPGZPjs = require('./chunk-XXESPGZP.js');
7
+
8
+ // src/utilities/get-entry-points.ts
9
+ var _glob = require('glob');
10
+ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
11
+ const workspaceRoot = config.workspaceRoot || _chunkXXESPGZPjs.findWorkspaceRoot.call(void 0, );
12
+ const entryPoints = [];
13
+ if (entry) {
14
+ if (typeof entry === "string") {
15
+ entryPoints.push(entry);
16
+ } else if (Array.isArray(entry)) {
17
+ entryPoints.push(...entry);
18
+ } else {
19
+ entryPoints.push(...Object.values(entry));
20
+ }
21
+ }
22
+ if (emitOnAll) {
23
+ entryPoints.push(
24
+ _chunkXXESPGZPjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
25
+ );
26
+ }
27
+ const results = await Promise.all(
28
+ entryPoints.map(async (entryPoint) => {
29
+ const paths = [];
30
+ if (entryPoint.includes("*")) {
31
+ const files = await _glob.glob.call(void 0, entryPoint, {
32
+ withFileTypes: true,
33
+ ignore: ["**/node_modules/**"]
34
+ });
35
+ paths.push(
36
+ ...files.reduce((ret, filePath) => {
37
+ const result = _chunkXXESPGZPjs.correctPaths.call(void 0,
38
+ _chunkXXESPGZPjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXXESPGZPjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXXESPGZPjs.correctPaths.call(void 0, projectRoot), "")
39
+ );
40
+ if (result) {
41
+ _chunkXXESPGZPjs.writeDebug.call(void 0,
42
+ `Trying to add entry point ${result} at "${_chunkXXESPGZPjs.joinPaths.call(void 0,
43
+ filePath.path,
44
+ filePath.name
45
+ )}"`,
46
+ config
47
+ );
48
+ if (!paths.includes(result)) {
49
+ paths.push(result);
50
+ }
51
+ }
52
+ return ret;
53
+ }, [])
54
+ );
55
+ } else {
56
+ _chunkXXESPGZPjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
57
+ if (!paths.includes(entryPoint)) {
58
+ paths.push(entryPoint);
59
+ }
60
+ }
61
+ return paths;
62
+ })
63
+ );
64
+ return results.filter(Boolean).reduce((ret, result) => {
65
+ result.forEach((res) => {
66
+ if (res && !ret.includes(res)) {
67
+ ret.push(res);
68
+ }
69
+ });
70
+ return ret;
71
+ }, []);
72
+ };
73
+
74
+
75
+
76
+ exports.getEntryPoints = getEntryPoints;
@@ -1,7 +1,3 @@
1
- import {
2
- __name
3
- } from "./chunk-O6YSETKJ.mjs";
4
-
5
1
  // src/plugins/type-definitions.ts
6
2
  import { stripIndents } from "@nx/devkit";
7
3
  import { relative } from "path";
@@ -14,8 +10,14 @@ function typeDefinitions(options) {
14
10
  continue;
15
11
  }
16
12
  const hasDefaultExport = file.exports.includes("default");
17
- const entrySourceFileName = relative(options.projectRoot, file.facadeModuleId);
18
- const entrySourceDtsName = entrySourceFileName.replace(/\.[cm]?[jt]sx?$/, "");
13
+ const entrySourceFileName = relative(
14
+ options.projectRoot,
15
+ file.facadeModuleId
16
+ );
17
+ const entrySourceDtsName = entrySourceFileName.replace(
18
+ /\.[cm]?[jt]sx?$/,
19
+ ""
20
+ );
19
21
  const dtsFileName = file.fileName.replace(/\.[cm]?js$/, ".d.ts");
20
22
  const relativeSourceDtsName = JSON.stringify("./" + entrySourceDtsName);
21
23
  const dtsFileSource = hasDefaultExport ? stripIndents`
@@ -32,7 +34,6 @@ function typeDefinitions(options) {
32
34
  }
33
35
  };
34
36
  }
35
- __name(typeDefinitions, "typeDefinitions");
36
37
 
37
38
  export {
38
39
  typeDefinitions