@storm-software/workspace-tools 1.240.4 → 1.242.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 (131) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-EFPBJWHS.js → chunk-2OI6IGCD.js} +3 -3
  4. package/dist/chunk-7O34DHUG.js +127 -0
  5. package/dist/chunk-7TLYMNLD.mjs +127 -0
  6. package/dist/{chunk-U4K5KWKS.mjs → chunk-AZGF6LFT.mjs} +1 -1
  7. package/dist/{chunk-5AQJQ72E.mjs → chunk-C2REXPET.mjs} +54 -49
  8. package/dist/{chunk-3SP4ZXOA.mjs → chunk-DR65MBFB.mjs} +1 -1
  9. package/dist/{chunk-RTFFYOEY.js → chunk-P4NR5KOJ.js} +3 -3
  10. package/dist/{chunk-JOJ3CZQC.js → chunk-PVAQKHBQ.js} +3 -3
  11. package/dist/{chunk-XHH2IY66.js → chunk-RAVLTWJV.js} +54 -49
  12. package/dist/{chunk-LNDWWYO3.mjs → chunk-Y4FVIDJI.mjs} +1 -1
  13. package/dist/{executor-CIGyZdrv.d.ts → executor-B1mTS_M5.d.ts} +1 -1
  14. package/dist/{executor-C_QU1lUw.d.mts → executor-B2I8lRie.d.mts} +1 -1
  15. package/dist/{executor-Bk4ug-RW.d.mts → executor-B3LJ1461.d.mts} +1 -1
  16. package/dist/{executor-D2o23AZj.d.mts → executor-CnnrgXKr.d.mts} +1 -1
  17. package/dist/{executor-BHwhDrL-.d.ts → executor-Ct74DTAr.d.ts} +1 -1
  18. package/dist/{executor-ozBp5rj1.d.mts → executor-D5C-erVR.d.mts} +1 -1
  19. package/dist/{executor-DOFe9F7c.d.ts → executor-DZ-0sX_w.d.ts} +1 -1
  20. package/dist/{executor-DL3jAzFW.d.mts → executor-De29T5QB.d.mts} +1 -1
  21. package/dist/{executor-BW_5lER2.d.ts → executor-Dfot53CG.d.ts} +1 -1
  22. package/dist/{executor-hDJ0Fk_g.d.ts → executor-SU5oGftF.d.ts} +1 -1
  23. package/dist/executors.d.mts +6 -6
  24. package/dist/executors.d.ts +6 -6
  25. package/dist/generator-AFivysTp.d.ts +130 -0
  26. package/dist/generator-BAbOohf7.d.mts +130 -0
  27. package/dist/{generator-CiNaIUED.d.ts → generator-BCkqWM1d.d.ts} +1 -1
  28. package/dist/generator-B_HN13az.d.mts +130 -0
  29. package/dist/{generator-BNM0qnMp.d.mts → generator-CRiDjsPp.d.mts} +1 -1
  30. package/dist/generator-CrR9QK6B.d.mts +130 -0
  31. package/dist/{generator-c8PBxLhH.d.mts → generator-DATsTV1E.d.mts} +2 -2
  32. package/dist/{generator-QTX2Ix9P.d.ts → generator-DBa9-HbU.d.ts} +1 -1
  33. package/dist/generator-DNdirMec.d.ts +130 -0
  34. package/dist/{generator-BPXY7sqO.d.mts → generator-DpXgF55u.d.mts} +1 -1
  35. package/dist/generator-F6EuzmJD.d.ts +130 -0
  36. package/dist/{generator-ymaJQAJP.d.ts → generator-rf62OraH.d.ts} +2 -2
  37. package/dist/generators.d.mts +8 -8
  38. package/dist/generators.d.ts +8 -8
  39. package/dist/generators.js +6 -6
  40. package/dist/generators.mjs +7 -7
  41. package/dist/index.d.mts +14 -14
  42. package/dist/index.d.ts +14 -14
  43. package/dist/index.js +7 -7
  44. package/dist/index.mjs +8 -8
  45. package/dist/src/base/base-executor.d.mts +2 -2
  46. package/dist/src/base/base-executor.d.ts +2 -2
  47. package/dist/src/base/base-generator.d.mts +2 -2
  48. package/dist/src/base/base-generator.d.ts +2 -2
  49. package/dist/src/base/index.d.mts +24 -208
  50. package/dist/src/base/index.d.ts +24 -208
  51. package/dist/src/base/index.js +3 -3
  52. package/dist/src/base/index.mjs +2 -2
  53. package/dist/src/base/typescript-library-generator.schema.d.ts +8 -200
  54. package/dist/src/base/typescript-library-generator.schema.json +18 -162
  55. package/dist/src/base/typescript-library-generator.schema.md +9 -177
  56. package/dist/src/base/typescript-library-generator.untyped.js +2 -2
  57. package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
  58. package/dist/src/executors/clean-package/executor.d.mts +1 -1
  59. package/dist/src/executors/clean-package/executor.d.ts +1 -1
  60. package/dist/src/executors/esbuild/executor.d.mts +2 -2
  61. package/dist/src/executors/esbuild/executor.d.ts +2 -2
  62. package/dist/src/executors/size-limit/executor.d.mts +2 -2
  63. package/dist/src/executors/size-limit/executor.d.ts +2 -2
  64. package/dist/src/executors/tsdown/executor.d.mts +2 -2
  65. package/dist/src/executors/tsdown/executor.d.ts +2 -2
  66. package/dist/src/executors/typia/executor.d.mts +2 -2
  67. package/dist/src/executors/typia/executor.d.ts +2 -2
  68. package/dist/src/executors/unbuild/executor.d.mts +2 -2
  69. package/dist/src/executors/unbuild/executor.d.ts +2 -2
  70. package/dist/src/generators/browser-library/generator.d.mts +3 -3
  71. package/dist/src/generators/browser-library/generator.d.ts +3 -3
  72. package/dist/src/generators/browser-library/generator.js +3 -3
  73. package/dist/src/generators/browser-library/generator.mjs +2 -2
  74. package/dist/src/generators/browser-library/schema.d.ts +7 -199
  75. package/dist/src/generators/browser-library/schema.json +17 -162
  76. package/dist/src/generators/browser-library/schema.md +9 -177
  77. package/dist/src/generators/browser-library/untyped.js +2 -2
  78. package/dist/src/generators/browser-library/untyped.mjs +1 -1
  79. package/dist/src/generators/config-schema/generator.d.mts +3 -3
  80. package/dist/src/generators/config-schema/generator.d.ts +3 -3
  81. package/dist/src/generators/neutral-library/generator.d.mts +3 -3
  82. package/dist/src/generators/neutral-library/generator.d.ts +3 -3
  83. package/dist/src/generators/neutral-library/generator.js +3 -3
  84. package/dist/src/generators/neutral-library/generator.mjs +2 -2
  85. package/dist/src/generators/neutral-library/schema.d.ts +7 -199
  86. package/dist/src/generators/neutral-library/schema.json +17 -162
  87. package/dist/src/generators/neutral-library/schema.md +9 -177
  88. package/dist/src/generators/neutral-library/untyped.js +2 -2
  89. package/dist/src/generators/neutral-library/untyped.mjs +1 -1
  90. package/dist/src/generators/node-library/generator.d.mts +3 -3
  91. package/dist/src/generators/node-library/generator.d.ts +3 -3
  92. package/dist/src/generators/node-library/generator.js +3 -3
  93. package/dist/src/generators/node-library/generator.mjs +2 -2
  94. package/dist/src/generators/node-library/schema.d.ts +7 -199
  95. package/dist/src/generators/node-library/schema.json +17 -162
  96. package/dist/src/generators/node-library/schema.md +9 -177
  97. package/dist/src/generators/node-library/untyped.js +2 -2
  98. package/dist/src/generators/node-library/untyped.mjs +1 -1
  99. package/dist/src/generators/preset/generator.d.mts +3 -3
  100. package/dist/src/generators/preset/generator.d.ts +3 -3
  101. package/dist/src/generators/release-version/generator.d.mts +2 -2
  102. package/dist/src/generators/release-version/generator.d.ts +2 -2
  103. package/dist/src/plugins/typescript/tsdown.js +11 -4
  104. package/dist/src/plugins/typescript/tsdown.mjs +11 -4
  105. package/dist/src/plugins/typescript/tsup.js +11 -3
  106. package/dist/src/plugins/typescript/tsup.mjs +11 -3
  107. package/dist/src/types.d.mts +2 -2
  108. package/dist/src/types.d.ts +2 -2
  109. package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
  110. package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
  111. package/dist/src/utils/index.d.mts +2 -2
  112. package/dist/src/utils/index.d.ts +2 -2
  113. package/dist/src/utils/project-tags.d.mts +2 -2
  114. package/dist/src/utils/project-tags.d.ts +2 -2
  115. package/dist/{types-CYi2oThM.d.mts → types-44XkV3HO.d.mts} +1 -1
  116. package/dist/{types-zrlItIRw.d.mts → types-B5IG4iSJ.d.mts} +2 -2
  117. package/dist/{types-zrlItIRw.d.ts → types-B5IG4iSJ.d.ts} +2 -2
  118. package/dist/{types-Bd83s-qg.d.ts → types-DpaECebR.d.ts} +1 -1
  119. package/docs/api/base/typescript-library-generator.schema.md +9 -177
  120. package/docs/api/generators/browser-library/schema.md +9 -177
  121. package/docs/api/generators/neutral-library/schema.md +9 -177
  122. package/docs/api/generators/node-library/schema.md +9 -177
  123. package/package.json +1 -1
  124. package/dist/chunk-RPECQQG4.mjs +0 -288
  125. package/dist/chunk-ZFIZ5Q46.js +0 -288
  126. package/dist/generator-BS6uKMIL.d.mts +0 -322
  127. package/dist/generator-BsxAYGR_.d.mts +0 -322
  128. package/dist/generator-CFxhJoNw.d.ts +0 -322
  129. package/dist/generator-CiDljAEY.d.ts +0 -322
  130. package/dist/generator-DDW7kns9.d.ts +0 -322
  131. package/dist/generator-DatrLGpK.d.mts +0 -322
@@ -18,48 +18,48 @@ var _projectnameandrootutils = require('@nx/devkit/src/generators/project-name-a
18
18
  var _js = require('@nx/js');
19
19
  var _init = require('@nx/js/src/generators/init/init'); var _init2 = _interopRequireDefault(_init);
20
20
  var _generator = require('@nx/js/src/generators/setup-verdaccio/generator'); var _generator2 = _interopRequireDefault(_generator);
21
- async function typeScriptLibraryGeneratorFn(tree, schema, config) {
22
- const options = await normalizeOptions(tree, {
23
- ...schema
21
+ async function typeScriptLibraryGeneratorFn(tree, options, config) {
22
+ const normalized = await normalizeOptions(tree, {
23
+ ...options
24
24
  });
25
25
  const tasks = [];
26
26
  tasks.push(await _init2.default.call(void 0, tree, {
27
- ...options,
28
- tsConfigName: options.rootProject ? "tsconfig.json" : "tsconfig.base.json"
27
+ ...normalized,
28
+ tsConfigName: normalized.rootProject ? "tsconfig.json" : "tsconfig.base.json"
29
29
  }));
30
30
  tasks.push(_devkit.addDependenciesToPackageJson.call(void 0, tree, {}, {
31
31
  "@storm-software/workspace-tools": "latest",
32
32
  "@storm-software/testing-tools": "latest",
33
- ..._nullishCoalesce(schema.devDependencies, () => ( {}))
33
+ ..._nullishCoalesce(options.devDependencies, () => ( {}))
34
34
  }));
35
- if (options.publishable) {
35
+ if (normalized.publishable) {
36
36
  tasks.push(await _generator2.default.call(void 0, tree, {
37
- ...options,
37
+ ...normalized,
38
38
  skipFormat: true
39
39
  }));
40
40
  }
41
41
  const projectConfig = {
42
- root: options.directory,
42
+ root: normalized.directory,
43
43
  projectType: "library",
44
- sourceRoot: _chunkBUXJSVJGjs.joinPaths.call(void 0, _nullishCoalesce(options.directory, () => ( "")), "src"),
44
+ sourceRoot: _chunkBUXJSVJGjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
45
45
  targets: {
46
46
  build: {
47
- executor: schema.buildExecutor,
47
+ executor: options.buildExecutor,
48
48
  outputs: [
49
49
  "{options.outputPath}"
50
50
  ],
51
51
  options: {
52
52
  entry: [
53
- _chunkBUXJSVJGjs.joinPaths.call(void 0, options.projectRoot, "src", "index.ts")
53
+ _chunkBUXJSVJGjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
54
54
  ],
55
- outputPath: getOutputPath(options),
56
- tsconfig: _chunkBUXJSVJGjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
57
- project: _chunkBUXJSVJGjs.joinPaths.call(void 0, options.projectRoot, "package.json"),
55
+ outputPath: getOutputPath(normalized),
56
+ tsconfig: _chunkBUXJSVJGjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
57
+ project: _chunkBUXJSVJGjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
58
58
  defaultConfiguration: "production",
59
59
  platform: "neutral",
60
60
  assets: [
61
61
  {
62
- input: options.projectRoot,
62
+ input: normalized.projectRoot,
63
63
  glob: "*.md",
64
64
  output: "/"
65
65
  },
@@ -83,19 +83,19 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
83
83
  }
84
84
  }
85
85
  };
86
- if (schema.platform) {
87
- projectConfig.targets.build.options.platform = schema.platform === "worker" ? "node" : schema.platform;
86
+ if (options.platform) {
87
+ projectConfig.targets.build.options.platform = options.platform === "worker" ? "node" : options.platform;
88
88
  }
89
- _chunk7YRW5HNXjs.addProjectTag.call(void 0, projectConfig, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.TAG_ID, schema.platform === "node" ? _chunk7YRW5HNXjs.ProjectTagConstants.Platform.NODE : schema.platform === "worker" ? _chunk7YRW5HNXjs.ProjectTagConstants.Platform.WORKER : schema.platform === "browser" ? _chunk7YRW5HNXjs.ProjectTagConstants.Platform.BROWSER : _chunk7YRW5HNXjs.ProjectTagConstants.Platform.NEUTRAL, {
89
+ _chunk7YRW5HNXjs.addProjectTag.call(void 0, projectConfig, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.TAG_ID, options.platform === "node" ? _chunk7YRW5HNXjs.ProjectTagConstants.Platform.NODE : options.platform === "worker" ? _chunk7YRW5HNXjs.ProjectTagConstants.Platform.WORKER : options.platform === "browser" ? _chunk7YRW5HNXjs.ProjectTagConstants.Platform.BROWSER : _chunk7YRW5HNXjs.ProjectTagConstants.Platform.NEUTRAL, {
90
90
  overwrite: false
91
91
  });
92
- createProjectTsConfigJson(tree, options);
93
- _devkit.addProjectConfiguration.call(void 0, tree, options.name, projectConfig);
92
+ createProjectTsConfigJson(tree, normalized);
93
+ _devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
94
94
  let repository = {
95
95
  type: "github",
96
96
  url: _optionalChain([config, 'optionalAccess', _ => _.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _2 => _2.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _3 => _3.namespace]) || _optionalChain([config, 'optionalAccess', _4 => _4.name]) || "repository"}.git`
97
97
  };
98
- let description = schema.description || "A package developed by Storm Software used to create modern, scalable web applications.";
98
+ let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
99
99
  if (tree.exists("package.json")) {
100
100
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
101
101
  if (_optionalChain([packageJson, 'optionalAccess', _5 => _5.repository])) {
@@ -105,18 +105,18 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
105
105
  description = packageJson.description;
106
106
  }
107
107
  }
108
- if (!options.importPath) {
109
- options.importPath = options.name;
108
+ if (!normalized.importPath) {
109
+ normalized.importPath = normalized.name;
110
110
  }
111
- const packageJsonPath = _chunkBUXJSVJGjs.joinPaths.call(void 0, options.projectRoot, "package.json");
111
+ const packageJsonPath = _chunkBUXJSVJGjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
112
112
  if (tree.exists(packageJsonPath)) {
113
113
  _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
114
- if (!options.importPath) {
115
- options.importPath = options.name;
114
+ if (!normalized.importPath) {
115
+ normalized.importPath = normalized.name;
116
116
  }
117
- json.name = options.importPath;
117
+ json.name = normalized.importPath;
118
118
  json.version = "0.0.1";
119
- if (json.private && (options.publishable || options.rootProject)) {
119
+ if (json.private && (normalized.publishable || normalized.rootProject)) {
120
120
  json.private = void 0;
121
121
  }
122
122
  return {
@@ -125,7 +125,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
125
125
  description,
126
126
  repository: {
127
127
  ...repository,
128
- directory: options.projectRoot
128
+ directory: normalized.projectRoot
129
129
  },
130
130
  type: "module",
131
131
  dependencies: {
@@ -138,37 +138,37 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
138
138
  });
139
139
  } else {
140
140
  _devkit.writeJson.call(void 0, tree, packageJsonPath, {
141
- name: options.importPath,
141
+ name: normalized.importPath,
142
142
  version: "0.0.1",
143
143
  description,
144
144
  repository: {
145
145
  ...repository,
146
- directory: options.projectRoot
146
+ directory: normalized.projectRoot
147
147
  },
148
- private: !options.publishable || options.rootProject,
148
+ private: !normalized.publishable || normalized.rootProject,
149
149
  type: "module",
150
150
  publishConfig: {
151
151
  access: "public"
152
152
  }
153
153
  });
154
154
  }
155
- if (tree.exists("package.json") && options.importPath) {
155
+ if (tree.exists("package.json") && normalized.importPath) {
156
156
  _devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
157
157
  ...json,
158
158
  pnpm: {
159
159
  ..._optionalChain([json, 'optionalAccess', _7 => _7.pnpm]),
160
160
  overrides: {
161
161
  ..._optionalChain([json, 'optionalAccess', _8 => _8.pnpm, 'optionalAccess', _9 => _9.overrides]),
162
- [_nullishCoalesce(options.importPath, () => ( ""))]: "workspace:*"
162
+ [_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
163
163
  }
164
164
  }
165
165
  }));
166
166
  }
167
- _js.addTsConfigPath.call(void 0, tree, options.importPath, [
168
- _chunkBUXJSVJGjs.joinPaths.call(void 0, options.projectRoot, "./src", `index.${options.js ? "js" : "ts"}`)
167
+ _js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
168
+ _chunkBUXJSVJGjs.joinPaths.call(void 0, normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
169
169
  ]);
170
- _js.addTsConfigPath.call(void 0, tree, _chunkBUXJSVJGjs.joinPaths.call(void 0, options.importPath, "/*"), [
171
- _chunkBUXJSVJGjs.joinPaths.call(void 0, options.projectRoot, "./src", "/*")
170
+ _js.addTsConfigPath.call(void 0, tree, _chunkBUXJSVJGjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
171
+ _chunkBUXJSVJGjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
172
172
  ]);
173
173
  if (tree.exists("package.json")) {
174
174
  const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
@@ -179,7 +179,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
179
179
  description = packageJson.description;
180
180
  }
181
181
  }
182
- const tsconfigPath = _chunkBUXJSVJGjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json");
182
+ const tsconfigPath = _chunkBUXJSVJGjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
183
183
  if (tree.exists(tsconfigPath)) {
184
184
  _devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
185
185
  json.composite ??= true;
@@ -187,10 +187,10 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
187
187
  });
188
188
  } else {
189
189
  _devkit.writeJson.call(void 0, tree, tsconfigPath, {
190
- extends: `${_devkit.offsetFromRoot.call(void 0, options.projectRoot)}tsconfig.base.json`,
190
+ extends: `${_devkit.offsetFromRoot.call(void 0, normalized.projectRoot)}tsconfig.base.json`,
191
191
  composite: true,
192
192
  compilerOptions: {
193
- outDir: `${_devkit.offsetFromRoot.call(void 0, options.projectRoot)}dist/out-tsc`
193
+ outDir: `${_devkit.offsetFromRoot.call(void 0, normalized.projectRoot)}dist/out-tsc`
194
194
  },
195
195
  files: [],
196
196
  include: [
@@ -249,9 +249,13 @@ function createProjectTsConfigJson(tree, options) {
249
249
  _devkit.writeJson.call(void 0, tree, _chunkBUXJSVJGjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
250
250
  }
251
251
  _chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
252
- async function normalizeOptions(tree, options) {
252
+ async function normalizeOptions(tree, options, config) {
253
+ let importPath = options.importPath;
254
+ if (!importPath && _optionalChain([config, 'optionalAccess', _21 => _21.namespace])) {
255
+ importPath = `@${_optionalChain([config, 'optionalAccess', _22 => _22.namespace])}/${options.name}`;
256
+ }
253
257
  if (options.publishable) {
254
- if (!options.importPath) {
258
+ if (!importPath) {
255
259
  throw new Error(`For publishable libs you have to provide a proper "--importPath" which needs to be a valid npm package name (e.g. my-awesome-lib or @myorg/my-lib)`);
256
260
  }
257
261
  }
@@ -260,14 +264,14 @@ async function normalizeOptions(tree, options) {
260
264
  bundler = "none";
261
265
  }
262
266
  const { Linter } = _devkit.ensurePackage.call(void 0, "@nx/eslint", _chunkHI4G4OOGjs.nxVersion);
263
- const { projectName, names: projectNames, projectRoot, importPath } = await _projectnameandrootutils.determineProjectNameAndRootOptions.call(void 0, tree, {
267
+ const rootProject = false;
268
+ const { projectName, names: projectNames, projectRoot, importPath: normalizedImportPath } = await _projectnameandrootutils.determineProjectNameAndRootOptions.call(void 0, tree, {
264
269
  name: options.name,
265
270
  projectType: "library",
266
271
  directory: options.directory,
267
- importPath: options.importPath,
268
- rootProject: options.rootProject
272
+ importPath,
273
+ rootProject
269
274
  });
270
- options.rootProject = projectRoot === ".";
271
275
  const normalized = _devkit.names.call(void 0, projectNames.projectFileName);
272
276
  const fileName = normalized.fileName;
273
277
  return {
@@ -293,7 +297,8 @@ async function normalizeOptions(tree, options) {
293
297
  projectNames,
294
298
  projectRoot,
295
299
  parsedTags: options.tags ? options.tags.split(",").map((s) => s.trim()) : [],
296
- importPath
300
+ importPath: normalizedImportPath,
301
+ rootProject
297
302
  };
298
303
  }
299
304
  _chunk3GQAWCBQjs.__name.call(void 0, normalizeOptions, "normalizeOptions");
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  normalizeOptions,
3
3
  typeScriptLibraryGeneratorFn
4
- } from "./chunk-5AQJQ72E.mjs";
4
+ } from "./chunk-C2REXPET.mjs";
5
5
  import {
6
6
  withRunGenerator
7
7
  } from "./chunk-SNFZL5BN.mjs";
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-zrlItIRw.js';
3
+ import { S as StormConfig } from './types-B5IG4iSJ.js';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-zrlItIRw.mjs';
3
+ import { S as StormConfig } from './types-B5IG4iSJ.mjs';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-zrlItIRw.mjs';
3
+ import { S as StormConfig } from './types-B5IG4iSJ.mjs';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-zrlItIRw.mjs';
3
+ import { S as StormConfig } from './types-B5IG4iSJ.mjs';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-zrlItIRw.js';
3
+ import { S as StormConfig } from './types-B5IG4iSJ.js';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-zrlItIRw.mjs';
3
+ import { S as StormConfig } from './types-B5IG4iSJ.mjs';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-zrlItIRw.js';
3
+ import { S as StormConfig } from './types-B5IG4iSJ.js';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-zrlItIRw.mjs';
3
+ import { S as StormConfig } from './types-B5IG4iSJ.mjs';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-zrlItIRw.js';
3
+ import { S as StormConfig } from './types-B5IG4iSJ.js';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly
@@ -1,6 +1,6 @@
1
1
  import * as _nx_devkit from '@nx/devkit';
2
2
  import { ExecutorContext } from '@nx/devkit';
3
- import { S as StormConfig } from './types-zrlItIRw.js';
3
+ import { S as StormConfig } from './types-B5IG4iSJ.js';
4
4
 
5
5
  // Generated by @storm-software/untyped
6
6
  // Do not edit this file directly
@@ -5,12 +5,12 @@ export { C as CargoDocExecutorSchema, c as cargoDocExecutor } from './executor-B
5
5
  export { C as CargoFormatExecutorSchema, c as cargoFormatExecutor } from './executor-BD3oxCXJ.mjs';
6
6
  export { C as CargoPublishExecutorSchema, g as getRegistryVersion } from './executor-CpcXNDfG.mjs';
7
7
  export { C as CleanPackageExecutorSchema } from './schema.d-CRz8jtUC.mjs';
8
- export { E as ESBuildExecutorSchema, e as esbuildExecutorFn } from './executor-Bk4ug-RW.mjs';
8
+ export { E as ESBuildExecutorSchema, e as esbuildExecutorFn } from './executor-B3LJ1461.mjs';
9
9
  export { L as LARGE_BUFFER, N as NpmPublishExecutorSchema } from './executor-DTcKLfcw.mjs';
10
- export { S as SizeLimitExecutorSchema, s as sizeLimitExecutorFn } from './executor-D2o23AZj.mjs';
11
- export { T as TSDownExecutorSchema, t as tsdownExecutorFn } from './executor-DL3jAzFW.mjs';
12
- export { T as TypiaExecutorSchema, t as typiaExecutorFn } from './executor-C_QU1lUw.mjs';
13
- export { U as UnbuildExecutorSchema, u as unbuildExecutorFn } from './executor-ozBp5rj1.mjs';
10
+ export { S as SizeLimitExecutorSchema, s as sizeLimitExecutorFn } from './executor-CnnrgXKr.mjs';
11
+ export { T as TSDownExecutorSchema, t as tsdownExecutorFn } from './executor-De29T5QB.mjs';
12
+ export { T as TypiaExecutorSchema, t as typiaExecutorFn } from './executor-B2I8lRie.mjs';
13
+ export { U as UnbuildExecutorSchema, u as unbuildExecutorFn } from './executor-D5C-erVR.mjs';
14
14
  import '@nx/devkit';
15
- import './types-zrlItIRw.mjs';
15
+ import './types-B5IG4iSJ.mjs';
16
16
  import 'zod';
@@ -5,12 +5,12 @@ export { C as CargoDocExecutorSchema, c as cargoDocExecutor } from './executor-B
5
5
  export { C as CargoFormatExecutorSchema, c as cargoFormatExecutor } from './executor-BD3oxCXJ.js';
6
6
  export { C as CargoPublishExecutorSchema, g as getRegistryVersion } from './executor-CpcXNDfG.js';
7
7
  export { C as CleanPackageExecutorSchema } from './schema.d-CRz8jtUC.js';
8
- export { E as ESBuildExecutorSchema, e as esbuildExecutorFn } from './executor-CIGyZdrv.js';
8
+ export { E as ESBuildExecutorSchema, e as esbuildExecutorFn } from './executor-B1mTS_M5.js';
9
9
  export { L as LARGE_BUFFER, N as NpmPublishExecutorSchema } from './executor-DTcKLfcw.js';
10
- export { S as SizeLimitExecutorSchema, s as sizeLimitExecutorFn } from './executor-hDJ0Fk_g.js';
11
- export { T as TSDownExecutorSchema, t as tsdownExecutorFn } from './executor-BW_5lER2.js';
12
- export { T as TypiaExecutorSchema, t as typiaExecutorFn } from './executor-DOFe9F7c.js';
13
- export { U as UnbuildExecutorSchema, u as unbuildExecutorFn } from './executor-BHwhDrL-.js';
10
+ export { S as SizeLimitExecutorSchema, s as sizeLimitExecutorFn } from './executor-SU5oGftF.js';
11
+ export { T as TSDownExecutorSchema, t as tsdownExecutorFn } from './executor-Dfot53CG.js';
12
+ export { T as TypiaExecutorSchema, t as typiaExecutorFn } from './executor-DZ-0sX_w.js';
13
+ export { U as UnbuildExecutorSchema, u as unbuildExecutorFn } from './executor-Ct74DTAr.js';
14
14
  import '@nx/devkit';
15
- import './types-zrlItIRw.js';
15
+ import './types-B5IG4iSJ.js';
16
16
  import 'zod';
@@ -0,0 +1,130 @@
1
+ import { e as BaseGeneratorResult } from './types-DpaECebR.js';
2
+ import * as _nx_devkit from '@nx/devkit';
3
+ import { Tree } from '@nx/devkit';
4
+ import { S as StormConfig } from './types-B5IG4iSJ.js';
5
+
6
+ // Generated by @storm-software/untyped
7
+ // Do not edit this file directly
8
+
9
+ interface NeutralLibraryGeneratorSchema {
10
+ /**
11
+ * Directory
12
+ *
13
+ * The directory to create the library in
14
+ *
15
+ */
16
+ directory: string,
17
+
18
+ /**
19
+ * Name
20
+ *
21
+ * The name of the library
22
+ *
23
+ */
24
+ name: string,
25
+
26
+ /**
27
+ * Description
28
+ *
29
+ * The description of the library
30
+ *
31
+ */
32
+ description?: string,
33
+
34
+ /**
35
+ * Build Executor
36
+ *
37
+ * The executor to use for building the library
38
+ *
39
+ * @default "@storm-software/workspace-tools:unbuild"
40
+ */
41
+ buildExecutor?: string,
42
+
43
+ /**
44
+ * Platform
45
+ *
46
+ * The platform to target with the library
47
+ *
48
+ * @default "neutral"
49
+ *
50
+ * @enum neutral
51
+ */
52
+ platform?: string,
53
+
54
+ /**
55
+ * Import Path
56
+ *
57
+ * The import path for the library
58
+ *
59
+ */
60
+ importPath?: string,
61
+
62
+ /**
63
+ * Tags
64
+ *
65
+ * The tags for the library
66
+ *
67
+ */
68
+ tags?: string,
69
+
70
+ /**
71
+ * Unit Test Runner
72
+ *
73
+ * The unit test runner to use
74
+ *
75
+ *
76
+ * @enum jest,vitest,none
77
+ */
78
+ unitTestRunner?: string,
79
+
80
+ /**
81
+ * Test Environment
82
+ *
83
+ * The test environment to use
84
+ *
85
+ *
86
+ * @enum jsdom,node
87
+ */
88
+ testEnvironment?: string,
89
+
90
+ /**
91
+ * Pascal Case Files
92
+ *
93
+ * Use PascalCase for file names
94
+ *
95
+ * @default false
96
+ */
97
+ pascalCaseFiles?: boolean,
98
+
99
+ /**
100
+ * Strict
101
+ *
102
+ * Enable strict mode
103
+ *
104
+ * @default true
105
+ */
106
+ strict?: boolean,
107
+
108
+ /**
109
+ * Publishable
110
+ *
111
+ * Make the library publishable
112
+ *
113
+ * @default false
114
+ */
115
+ publishable?: boolean,
116
+
117
+ /**
118
+ * Buildable
119
+ *
120
+ * Make the library buildable
121
+ *
122
+ * @default true
123
+ */
124
+ buildable?: boolean,
125
+ }
126
+
127
+ declare function neutralLibraryGeneratorFn(tree: Tree, schema: NeutralLibraryGeneratorSchema, config?: StormConfig): Promise<null>;
128
+ declare const _default: (tree: Tree, _options: NeutralLibraryGeneratorSchema) => Promise<_nx_devkit.GeneratorCallback | BaseGeneratorResult>;
129
+
130
+ export { type NeutralLibraryGeneratorSchema as N, _default as _, neutralLibraryGeneratorFn as n };
@@ -0,0 +1,130 @@
1
+ import { e as BaseGeneratorResult } from './types-44XkV3HO.mjs';
2
+ import * as _nx_devkit from '@nx/devkit';
3
+ import { Tree } from '@nx/devkit';
4
+ import { S as StormConfig } from './types-B5IG4iSJ.mjs';
5
+
6
+ // Generated by @storm-software/untyped
7
+ // Do not edit this file directly
8
+
9
+ interface NodeLibraryGeneratorSchema {
10
+ /**
11
+ * Directory
12
+ *
13
+ * The directory to create the library in
14
+ *
15
+ */
16
+ directory: string,
17
+
18
+ /**
19
+ * Name
20
+ *
21
+ * The name of the library
22
+ *
23
+ */
24
+ name: string,
25
+
26
+ /**
27
+ * Description
28
+ *
29
+ * The description of the library
30
+ *
31
+ */
32
+ description?: string,
33
+
34
+ /**
35
+ * Build Executor
36
+ *
37
+ * The executor to use for building the library
38
+ *
39
+ * @default "@storm-software/workspace-tools:unbuild"
40
+ */
41
+ buildExecutor?: string,
42
+
43
+ /**
44
+ * Platform
45
+ *
46
+ * The platform to target with the library
47
+ *
48
+ * @default "node"
49
+ *
50
+ * @enum node,neutral
51
+ */
52
+ platform?: string,
53
+
54
+ /**
55
+ * Import Path
56
+ *
57
+ * The import path for the library
58
+ *
59
+ */
60
+ importPath?: string,
61
+
62
+ /**
63
+ * Tags
64
+ *
65
+ * The tags for the library
66
+ *
67
+ */
68
+ tags?: string,
69
+
70
+ /**
71
+ * Unit Test Runner
72
+ *
73
+ * The unit test runner to use
74
+ *
75
+ *
76
+ * @enum jest,vitest,none
77
+ */
78
+ unitTestRunner?: string,
79
+
80
+ /**
81
+ * Test Environment
82
+ *
83
+ * The test environment to use
84
+ *
85
+ *
86
+ * @enum jsdom,node
87
+ */
88
+ testEnvironment?: string,
89
+
90
+ /**
91
+ * Pascal Case Files
92
+ *
93
+ * Use PascalCase for file names
94
+ *
95
+ * @default false
96
+ */
97
+ pascalCaseFiles?: boolean,
98
+
99
+ /**
100
+ * Strict
101
+ *
102
+ * Enable strict mode
103
+ *
104
+ * @default true
105
+ */
106
+ strict?: boolean,
107
+
108
+ /**
109
+ * Publishable
110
+ *
111
+ * Make the library publishable
112
+ *
113
+ * @default false
114
+ */
115
+ publishable?: boolean,
116
+
117
+ /**
118
+ * Buildable
119
+ *
120
+ * Make the library buildable
121
+ *
122
+ * @default true
123
+ */
124
+ buildable?: boolean,
125
+ }
126
+
127
+ declare function nodeLibraryGeneratorFn(tree: Tree, schema: NodeLibraryGeneratorSchema, config?: StormConfig): Promise<null>;
128
+ declare const _default: (tree: Tree, _options: NodeLibraryGeneratorSchema) => Promise<_nx_devkit.GeneratorCallback | BaseGeneratorResult>;
129
+
130
+ export { type NodeLibraryGeneratorSchema as N, _default as _, nodeLibraryGeneratorFn as n };
@@ -1,4 +1,4 @@
1
- import { e as BaseGeneratorResult } from './types-Bd83s-qg.js';
1
+ import { e as BaseGeneratorResult } from './types-DpaECebR.js';
2
2
  import * as _nx_devkit from '@nx/devkit';
3
3
  import { Tree } from '@nx/devkit';
4
4