@storm-software/cloudflare-tools 0.71.210 → 0.71.212

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 (50) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/README.md +7 -7
  3. package/dist/{chunk-MZFOPOSA.mjs → chunk-3Z2F7VN4.mjs} +1 -1
  4. package/dist/{chunk-2UW4WAHW.js → chunk-6KDWHW2G.js} +29 -1
  5. package/dist/{chunk-37JKGWKW.mjs → chunk-6Z2WUPYH.mjs} +4 -4
  6. package/dist/{chunk-F5RW4AZL.mjs → chunk-CSTZEHUP.mjs} +2 -73
  7. package/dist/chunk-E52DON6Y.mjs +132 -0
  8. package/dist/{chunk-75CHHXTR.js → chunk-E5RARE7E.js} +2 -2
  9. package/dist/chunk-E7ITICBK.js +77 -0
  10. package/dist/chunk-FBLD25X4.js +93 -0
  11. package/dist/{chunk-O7L7SGHE.js → chunk-KUGKM6MY.js} +5 -5
  12. package/dist/{chunk-LBHXS7RE.js → chunk-O327KKPU.js} +2 -2
  13. package/dist/{chunk-FEGLXQK4.mjs → chunk-OL24QIXM.mjs} +1 -1
  14. package/dist/chunk-T6GKRQUF.mjs +77 -0
  15. package/dist/{chunk-TNVZ6KHS.mjs → chunk-U6OMVOFA.mjs} +1 -1
  16. package/dist/{chunk-5KJIDUNK.mjs → chunk-UUTVNCRX.mjs} +29 -1
  17. package/dist/chunk-VJLWHQ5B.js +132 -0
  18. package/dist/{chunk-U7XMCD6Y.js → chunk-XB6S7S3C.js} +3 -3
  19. package/dist/executors.js +5 -4
  20. package/dist/executors.mjs +5 -4
  21. package/dist/generators.js +3 -3
  22. package/dist/generators.mjs +2 -2
  23. package/dist/index.d.mts +2 -6
  24. package/dist/index.d.ts +2 -6
  25. package/dist/index.js +23 -144
  26. package/dist/index.mjs +11 -132
  27. package/dist/src/executors/cloudflare-publish/executor.js +5 -4
  28. package/dist/src/executors/cloudflare-publish/executor.mjs +4 -3
  29. package/dist/src/executors/r2-upload-publish/executor.js +4 -3
  30. package/dist/src/executors/r2-upload-publish/executor.mjs +3 -2
  31. package/dist/src/executors/r2-upload-publish/untyped.d.mts +5 -0
  32. package/dist/src/executors/r2-upload-publish/untyped.d.ts +5 -0
  33. package/dist/src/executors/r2-upload-publish/untyped.js +86 -0
  34. package/dist/src/executors/r2-upload-publish/untyped.mjs +86 -0
  35. package/dist/src/executors/serve/executor.js +5 -4
  36. package/dist/src/executors/serve/executor.mjs +3 -2
  37. package/dist/src/generators/init/generator.js +2 -2
  38. package/dist/src/generators/init/generator.mjs +1 -1
  39. package/dist/src/generators/worker/generator.js +3 -3
  40. package/dist/src/generators/worker/generator.mjs +2 -2
  41. package/dist/src/plugins/index.d.mts +6 -0
  42. package/dist/src/plugins/index.d.ts +6 -0
  43. package/dist/src/plugins/index.js +10 -0
  44. package/dist/src/plugins/index.mjs +10 -0
  45. package/package.json +33 -5
  46. package/dist/chunk-XKQ3HGET.js +0 -164
  47. package/dist/tsup.config.d.mts +0 -5
  48. package/dist/tsup.config.d.ts +0 -5
  49. package/dist/tsup.config.js +0 -31
  50. package/dist/tsup.config.mjs +0 -31
package/CHANGELOG.md CHANGED
@@ -1,7 +1,25 @@
1
- ![Storm Software's logo banner](https://public.storm-cdn.com/storm-software/banner-1280x320.gif)
1
+ ![Storm Software's logo banner](https://public.storm-cdn.com/storm-software/media/banner-1280x320.gif)
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.71.211](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.211) (06/14/2026)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **cloudflare-tools:** Updated package.json exports to include sub-modules ([27336f19b](https://github.com/storm-software/storm-ops/commit/27336f19b))
10
+
11
+ ## [0.71.210](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.210) (06/14/2026)
12
+
13
+ ### Miscellaneous
14
+
15
+ - **monorepo:** Added internal Nx plugin to ensure `implicitDependencies` are applied to all of the workspace's packages ([bbe43f892](https://github.com/storm-software/storm-ops/commit/bbe43f892))
16
+
17
+ ### Updated Dependencies
18
+
19
+ - Updated **config** to **v1.138.5**
20
+ - Updated **config-tools** to **v1.190.68**
21
+ - Updated **workspace-tools** to **v1.296.48**
22
+
5
23
  ## [0.71.209](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.209) (06/14/2026)
6
24
 
7
25
  ### Updated Dependencies
package/README.md CHANGED
@@ -5,9 +5,9 @@
5
5
 
6
6
  <div align="center">
7
7
  <picture>
8
- <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-dark.gif">
9
- <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-light.gif">
10
- <img src="https://public.storm-cdn.com/storm-software/banner-1280x640-dark.gif" width="100%" alt="Storm Software" />
8
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/media/banner-1280x640-dark.gif">
9
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/media/banner-1280x640-light.gif">
10
+ <img src="https://public.storm-cdn.com/storm-software/media/banner-1280x640-dark.gif" width="100%" alt="Storm Software" />
11
11
  </picture>
12
12
  </div>
13
13
  <br />
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.71.208-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.71.211-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -338,9 +338,9 @@ specification. Contributions of any kind welcome!
338
338
 
339
339
  <div align="center">
340
340
  <picture>
341
- <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp">
342
- <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light.webp">
343
- <img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp" width="100%" alt="Storm Software" />
341
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/media/banner-1280x320-dark.webp">
342
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/media/banner-1280x320-light.webp">
343
+ <img src="https://public.storm-cdn.com/storm-software/media/banner-1280x320-dark.webp" width="100%" alt="Storm Software" />
344
344
  </picture>
345
345
  </div>
346
346
  <br />
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-5KJIDUNK.mjs";
3
+ } from "./chunk-UUTVNCRX.mjs";
4
4
  import {
5
5
  findWorkspaceRoot,
6
6
  getConfig
@@ -7,7 +7,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
7
7
  "package.json"(exports, module) {
8
8
  module.exports = {
9
9
  name: "@storm-software/cloudflare-tools",
10
- version: "0.71.209",
10
+ version: "0.71.211",
11
11
  private: false,
12
12
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
13
13
  keywords: [
@@ -82,6 +82,20 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
82
82
  default: "./dist/executors.js"
83
83
  }
84
84
  },
85
+ "./executors/*": {
86
+ import: {
87
+ types: "./dist/src/executors/*.d.mts",
88
+ default: "./dist/src/executors/*.mjs"
89
+ },
90
+ require: {
91
+ types: "./dist/src/executors/*.d.ts",
92
+ default: "./dist/src/executors/*.js"
93
+ },
94
+ default: {
95
+ types: "./dist/src/executors/*.d.ts",
96
+ default: "./dist/src/executors/*.js"
97
+ }
98
+ },
85
99
  "./generators": {
86
100
  import: {
87
101
  types: "./dist/generators.d.mts",
@@ -96,6 +110,20 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
96
110
  default: "./dist/generators.js"
97
111
  }
98
112
  },
113
+ "./generators/*": {
114
+ import: {
115
+ types: "./dist/src/generators/*.d.mts",
116
+ default: "./dist/src/generators/*.mjs"
117
+ },
118
+ require: {
119
+ types: "./dist/src/generators/*.d.ts",
120
+ default: "./dist/src/generators/*.js"
121
+ },
122
+ default: {
123
+ types: "./dist/src/generators/*.d.ts",
124
+ default: "./dist/src/generators/*.js"
125
+ }
126
+ },
99
127
  "./utils": {
100
128
  import: {
101
129
  types: "./dist/src/utils/index.d.mts",
@@ -1,7 +1,3 @@
1
- import {
2
- ProjectTagConstants,
3
- addProjectTag
4
- } from "./chunk-F5RW4AZL.mjs";
5
1
  import {
6
2
  findWorkspaceRoot,
7
3
  getConfig,
@@ -9,6 +5,10 @@ import {
9
5
  schemaRegistry,
10
6
  workspaceConfigSchema
11
7
  } from "./chunk-5MAMLVMV.mjs";
8
+ import {
9
+ ProjectTagConstants,
10
+ addProjectTag
11
+ } from "./chunk-CSTZEHUP.mjs";
12
12
  import {
13
13
  brandIcon,
14
14
  correctPaths,
@@ -1,27 +1,3 @@
1
- // ../workspace-tools/src/utils/package-helpers.ts
2
- import {
3
- joinPathFragments,
4
- readJsonFile
5
- } from "@nx/devkit";
6
-
7
- // ../config-tools/src/utilities/toml.ts
8
- import TOML from "@ltd/j-toml";
9
- function parseCargoToml(cargoString) {
10
- if (!cargoString) {
11
- throw new Error("Cargo.toml is empty");
12
- }
13
- return TOML.parse(cargoString, {
14
- x: { comment: true }
15
- });
16
- }
17
-
18
- // ../workspace-tools/src/utils/package-helpers.ts
19
- import { execFileSync } from "child_process";
20
- import { existsSync } from "node:fs";
21
- import { readFile, writeFile } from "node:fs/promises";
22
- import { dirname, resolve } from "path";
23
- import { format } from "prettier";
24
-
25
1
  // ../package-constants/src/tags.ts
26
2
  var ProjectTagConstants = {
27
3
  Language: {
@@ -110,55 +86,8 @@ var addProjectTag = (project, variant, value, options = {
110
86
  }
111
87
  };
112
88
 
113
- // ../workspace-tools/src/utils/package-helpers.ts
114
- var getPackageInfo = (project) => {
115
- if (isEqualProjectTag(
116
- project,
117
- ProjectTagConstants.Language.TAG_ID,
118
- ProjectTagConstants.Language.RUST
119
- ) && existsSync(joinPathFragments(project.root, "Cargo.toml"))) {
120
- return {
121
- type: "Cargo.toml",
122
- content: parseCargoToml(joinPathFragments(project.root, "Cargo.toml"))
123
- };
124
- } else if (isEqualProjectTag(
125
- project,
126
- ProjectTagConstants.Language.TAG_ID,
127
- ProjectTagConstants.Language.TYPESCRIPT
128
- ) && existsSync(joinPathFragments(project.root, "package.json"))) {
129
- return {
130
- type: "package.json",
131
- content: readJsonFile(
132
- joinPathFragments(project.root, "package.json")
133
- )
134
- };
135
- }
136
- return null;
137
- };
138
-
139
- // ../workspace-tools/src/utils/create-cli-options.ts
140
- import { names } from "@nx/devkit";
141
- function createCliOptions(obj) {
142
- const args = [];
143
- for (const key in obj) {
144
- const value = obj[key];
145
- if (value) {
146
- const arg = names(key).fileName;
147
- if (Array.isArray(value)) {
148
- args.push(
149
- `--${arg.toLowerCase()}=${value.map((v) => v.trim()).join(",")}`
150
- );
151
- } else {
152
- args.push(`--${arg.toLowerCase()}=${value}`);
153
- }
154
- }
155
- }
156
- return args;
157
- }
158
-
159
89
  export {
160
90
  ProjectTagConstants,
161
- addProjectTag,
162
- getPackageInfo,
163
- createCliOptions
91
+ isEqualProjectTag,
92
+ addProjectTag
164
93
  };
@@ -0,0 +1,132 @@
1
+ import {
2
+ ProjectTagConstants,
3
+ addProjectTag
4
+ } from "./chunk-CSTZEHUP.mjs";
5
+
6
+ // src/plugins/index.ts
7
+ import {
8
+ createNodesFromFiles
9
+ } from "@nx/devkit";
10
+ import defu from "defu";
11
+ import { existsSync } from "node:fs";
12
+ import { dirname, join } from "node:path";
13
+ import { readJsonFile } from "nx/src/utils/fileutils";
14
+ var name = "storm-software/cloudflare-tools/cloudflare";
15
+ var createNodesV2 = [
16
+ "{**/wrangler.toml}",
17
+ async (configFiles, options = { includeApps: true }, context) => {
18
+ return await createNodesFromFiles(
19
+ async (file, options2, context2) => {
20
+ try {
21
+ const packageJson = createPackageJson(file, context2.workspaceRoot);
22
+ if (!packageJson) {
23
+ return {};
24
+ }
25
+ const project = createProjectFromPackageJsonNextToProjectJson(
26
+ file,
27
+ packageJson
28
+ );
29
+ const targets = {};
30
+ targets["serve"] = {
31
+ cache: false,
32
+ inputs: ["typescript", "^production"],
33
+ dependsOn: ["build"],
34
+ executor: "@storm-software/cloudflare-tools:serve",
35
+ options: {
36
+ port: 4500
37
+ }
38
+ };
39
+ targets["clean-package"] = {
40
+ cache: true,
41
+ dependsOn: ["build"],
42
+ inputs: ["typescript", "^production"],
43
+ outputs: ["{workspaceRoot}/dist/{projectRoot}"],
44
+ executor: "@storm-software/workspace-tools:clean-package",
45
+ options: {
46
+ cleanReadMe: true,
47
+ cleanComments: true
48
+ }
49
+ };
50
+ targets["nx-release-publish"] = {
51
+ cache: false,
52
+ inputs: ["typescript", "^production"],
53
+ dependsOn: ["clean-package", "^nx-release-publish"],
54
+ executor: "@storm-software/cloudflare-tools:cloudflare-publish",
55
+ options: {}
56
+ };
57
+ addProjectTag(
58
+ project,
59
+ ProjectTagConstants.ProjectType.TAG_ID,
60
+ project.projectType === "application" ? ProjectTagConstants.ProjectType.APPLICATION : ProjectTagConstants.ProjectType.LIBRARY,
61
+ { overwrite: true }
62
+ );
63
+ addProjectTag(
64
+ project,
65
+ ProjectTagConstants.DistStyle.TAG_ID,
66
+ ProjectTagConstants.DistStyle.CLEAN,
67
+ { overwrite: true }
68
+ );
69
+ addProjectTag(
70
+ project,
71
+ ProjectTagConstants.Provider.TAG_ID,
72
+ "cloudflare",
73
+ {
74
+ overwrite: true
75
+ }
76
+ );
77
+ const projects = {};
78
+ const externalNodes = {};
79
+ projects[project.root] = defu(
80
+ {
81
+ targets,
82
+ release: {
83
+ version: {
84
+ versionActions: "@storm-software/workspace-tools/release/js-release-actions"
85
+ }
86
+ }
87
+ },
88
+ project
89
+ );
90
+ return {
91
+ projects,
92
+ externalNodes
93
+ };
94
+ } catch (e) {
95
+ console.error(e);
96
+ return {};
97
+ }
98
+ },
99
+ configFiles,
100
+ options,
101
+ context
102
+ );
103
+ }
104
+ ];
105
+ function createProjectFromPackageJsonNextToProjectJson(projectJsonPath, packageJson) {
106
+ const { nx, name: name2 } = packageJson;
107
+ const root = dirname(projectJsonPath);
108
+ return {
109
+ ...nx,
110
+ name: name2,
111
+ root,
112
+ targets: {}
113
+ };
114
+ }
115
+ function createPackageJson(projectJsonPath, workspaceRoot) {
116
+ try {
117
+ const root = dirname(projectJsonPath);
118
+ const packageJsonPath = join(workspaceRoot, root, "package.json");
119
+ if (!existsSync(packageJsonPath)) {
120
+ return null;
121
+ }
122
+ return readJsonFile(packageJsonPath);
123
+ } catch (e) {
124
+ console.log(e);
125
+ return null;
126
+ }
127
+ }
128
+
129
+ export {
130
+ name,
131
+ createNodesV2
132
+ };
@@ -1,6 +1,6 @@
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 _chunk2UW4WAHWjs = require('./chunk-2UW4WAHW.js');
3
+ var _chunk6KDWHW2Gjs = require('./chunk-6KDWHW2G.js');
4
4
 
5
5
 
6
6
 
@@ -70,7 +70,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
70
70
  const options = await normalizeOptions(tree, schema, config);
71
71
  const tasks = [];
72
72
  tasks.push(
73
- await _chunk2UW4WAHWjs.generator_default.call(void 0, tree, {
73
+ await _chunk6KDWHW2Gjs.generator_default.call(void 0, tree, {
74
74
  ...options,
75
75
  skipFormat: true
76
76
  })
@@ -0,0 +1,77 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
+
3
+
4
+ var _chunkFBLD25X4js = require('./chunk-FBLD25X4.js');
5
+
6
+ // ../workspace-tools/src/utils/package-helpers.ts
7
+
8
+
9
+
10
+ var _devkit = require('@nx/devkit');
11
+
12
+ // ../config-tools/src/utilities/toml.ts
13
+ var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
14
+ function parseCargoToml(cargoString) {
15
+ if (!cargoString) {
16
+ throw new Error("Cargo.toml is empty");
17
+ }
18
+ return _jtoml2.default.parse(cargoString, {
19
+ x: { comment: true }
20
+ });
21
+ }
22
+
23
+ // ../workspace-tools/src/utils/package-helpers.ts
24
+ var _child_process = require('child_process');
25
+ var _fs = require('fs');
26
+ var _promises = require('fs/promises');
27
+ var _path = require('path');
28
+ var _prettier = require('prettier');
29
+ var getPackageInfo = (project) => {
30
+ if (_chunkFBLD25X4js.isEqualProjectTag.call(void 0,
31
+ project,
32
+ _chunkFBLD25X4js.ProjectTagConstants.Language.TAG_ID,
33
+ _chunkFBLD25X4js.ProjectTagConstants.Language.RUST
34
+ ) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
35
+ return {
36
+ type: "Cargo.toml",
37
+ content: parseCargoToml(_devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
38
+ };
39
+ } else if (_chunkFBLD25X4js.isEqualProjectTag.call(void 0,
40
+ project,
41
+ _chunkFBLD25X4js.ProjectTagConstants.Language.TAG_ID,
42
+ _chunkFBLD25X4js.ProjectTagConstants.Language.TYPESCRIPT
43
+ ) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "package.json"))) {
44
+ return {
45
+ type: "package.json",
46
+ content: _devkit.readJsonFile.call(void 0,
47
+ _devkit.joinPathFragments.call(void 0, project.root, "package.json")
48
+ )
49
+ };
50
+ }
51
+ return null;
52
+ };
53
+
54
+ // ../workspace-tools/src/utils/create-cli-options.ts
55
+
56
+ function createCliOptions(obj) {
57
+ const args = [];
58
+ for (const key in obj) {
59
+ const value = obj[key];
60
+ if (value) {
61
+ const arg = _devkit.names.call(void 0, key).fileName;
62
+ if (Array.isArray(value)) {
63
+ args.push(
64
+ `--${arg.toLowerCase()}=${value.map((v) => v.trim()).join(",")}`
65
+ );
66
+ } else {
67
+ args.push(`--${arg.toLowerCase()}=${value}`);
68
+ }
69
+ }
70
+ }
71
+ return args;
72
+ }
73
+
74
+
75
+
76
+
77
+ exports.getPackageInfo = getPackageInfo; exports.createCliOptions = createCliOptions;
@@ -0,0 +1,93 @@
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; }// ../package-constants/src/tags.ts
2
+ var ProjectTagConstants = {
3
+ Language: {
4
+ TAG_ID: "language",
5
+ TYPESCRIPT: "typescript",
6
+ RUST: "rust"
7
+ },
8
+ ProjectType: {
9
+ TAG_ID: "type",
10
+ LIBRARY: "library",
11
+ APPLICATION: "application"
12
+ },
13
+ ProjectLinking: {
14
+ TAG_ID: "project-linking",
15
+ REFERENCE: "reference",
16
+ ALIAS: "alias"
17
+ },
18
+ DistStyle: {
19
+ TAG_ID: "dist-style",
20
+ NORMAL: "normal",
21
+ CLEAN: "clean"
22
+ },
23
+ Provider: {
24
+ TAG_ID: "provider"
25
+ },
26
+ Platform: {
27
+ TAG_ID: "platform",
28
+ NODE: "node",
29
+ BROWSER: "browser",
30
+ NEUTRAL: "neutral",
31
+ WORKER: "worker"
32
+ },
33
+ Registry: {
34
+ TAG_ID: "registry",
35
+ CARGO: "cargo",
36
+ NPM: "npm",
37
+ CONTAINER: "container",
38
+ CYCLONE: "cyclone"
39
+ },
40
+ Plugin: {
41
+ TAG_ID: "plugin"
42
+ },
43
+ Builder: {
44
+ TAG_ID: "builder",
45
+ TSC: "tsc",
46
+ TSUP: "tsup",
47
+ TSDOWN: "tsdown",
48
+ VITE: "vite",
49
+ ROLLDOWN: "rolldown"
50
+ }
51
+ };
52
+ var formatProjectTag = (variant, value) => {
53
+ return `${variant}:${value}`;
54
+ };
55
+ var hasProjectTag = (project, variant) => {
56
+ project.tags = _nullishCoalesce(project.tags, () => ( []));
57
+ const prefix = formatProjectTag(variant, "");
58
+ return project.tags.some(
59
+ (tag) => tag.startsWith(prefix) && tag.length > prefix.length
60
+ );
61
+ };
62
+ var getProjectTag = (project, variant) => {
63
+ if (!hasProjectTag(project, variant)) {
64
+ return void 0;
65
+ }
66
+ project.tags = _nullishCoalesce(project.tags, () => ( []));
67
+ const prefix = formatProjectTag(variant, "");
68
+ const tag = project.tags.find((tag2) => tag2.startsWith(prefix));
69
+ return _optionalChain([tag, 'optionalAccess', _ => _.replace, 'call', _2 => _2(prefix, "")]);
70
+ };
71
+ var isEqualProjectTag = (project, variant, value) => {
72
+ const tag = getProjectTag(project, variant);
73
+ return !!(tag && _optionalChain([tag, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]) === value.toUpperCase());
74
+ };
75
+
76
+ // ../workspace-tools/src/utils/project-tags.ts
77
+ var addProjectTag = (project, variant, value, options = {
78
+ overwrite: false
79
+ }) => {
80
+ project.tags = _nullishCoalesce(project.tags, () => ( []));
81
+ if (options.overwrite || !hasProjectTag(project, variant)) {
82
+ project.tags = project.tags.filter(
83
+ (tag) => !tag.startsWith(formatProjectTag(variant, ""))
84
+ );
85
+ project.tags.push(formatProjectTag(variant, value));
86
+ }
87
+ };
88
+
89
+
90
+
91
+
92
+
93
+ exports.ProjectTagConstants = ProjectTagConstants; exports.isEqualProjectTag = isEqualProjectTag; exports.addProjectTag = addProjectTag;
@@ -1,14 +1,14 @@
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 _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 _chunkXKQ3HGETjs = require('./chunk-XKQ3HGET.js');
5
4
 
6
5
 
7
6
 
7
+ var _chunkPGTHXO6Mjs = require('./chunk-PGTHXO6M.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkPGTHXO6Mjs = require('./chunk-PGTHXO6M.js');
11
+ var _chunkFBLD25X4js = require('./chunk-FBLD25X4.js');
12
12
 
13
13
 
14
14
 
@@ -2022,10 +2022,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
2022
2022
  if (options.platform) {
2023
2023
  projectConfig.targets.build.options.platform = options.platform === "worker" ? "node" : options.platform;
2024
2024
  }
2025
- _chunkXKQ3HGETjs.addProjectTag.call(void 0,
2025
+ _chunkFBLD25X4js.addProjectTag.call(void 0,
2026
2026
  projectConfig,
2027
- _chunkXKQ3HGETjs.ProjectTagConstants.Platform.TAG_ID,
2028
- options.platform === "node" ? _chunkXKQ3HGETjs.ProjectTagConstants.Platform.NODE : options.platform === "worker" ? _chunkXKQ3HGETjs.ProjectTagConstants.Platform.WORKER : options.platform === "browser" ? _chunkXKQ3HGETjs.ProjectTagConstants.Platform.BROWSER : _chunkXKQ3HGETjs.ProjectTagConstants.Platform.NEUTRAL,
2027
+ _chunkFBLD25X4js.ProjectTagConstants.Platform.TAG_ID,
2028
+ options.platform === "node" ? _chunkFBLD25X4js.ProjectTagConstants.Platform.NODE : options.platform === "worker" ? _chunkFBLD25X4js.ProjectTagConstants.Platform.WORKER : options.platform === "browser" ? _chunkFBLD25X4js.ProjectTagConstants.Platform.BROWSER : _chunkFBLD25X4js.ProjectTagConstants.Platform.NEUTRAL,
2029
2029
  { overwrite: false }
2030
2030
  );
2031
2031
  createProjectTsConfigJson(tree, normalized);
@@ -1,6 +1,6 @@
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 _chunkXKQ3HGETjs = require('./chunk-XKQ3HGET.js');
3
+ var _chunkE7ITICBKjs = require('./chunk-E7ITICBK.js');
4
4
 
5
5
 
6
6
  var _chunkMCKGQKYUjs = require('./chunk-MCKGQKYU.js');
@@ -24,7 +24,7 @@ async function runExecutor(options, context) {
24
24
  _optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.root])
25
25
  );
26
26
  try {
27
- const args = _chunkXKQ3HGETjs.createCliOptions.call(void 0, { ...options });
27
+ const args = _chunkE7ITICBKjs.createCliOptions.call(void 0, { ...options });
28
28
  if (isDryRun) {
29
29
  args.push("--dry-run");
30
30
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCliOptions
3
- } from "./chunk-F5RW4AZL.mjs";
3
+ } from "./chunk-T6GKRQUF.mjs";
4
4
  import {
5
5
  __require
6
6
  } from "./chunk-5RBVGYWH.mjs";