@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.
- package/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/dist/{chunk-EFPBJWHS.js → chunk-2OI6IGCD.js} +3 -3
- package/dist/chunk-7O34DHUG.js +127 -0
- package/dist/chunk-7TLYMNLD.mjs +127 -0
- package/dist/{chunk-U4K5KWKS.mjs → chunk-AZGF6LFT.mjs} +1 -1
- package/dist/{chunk-5AQJQ72E.mjs → chunk-C2REXPET.mjs} +54 -49
- package/dist/{chunk-3SP4ZXOA.mjs → chunk-DR65MBFB.mjs} +1 -1
- package/dist/{chunk-RTFFYOEY.js → chunk-P4NR5KOJ.js} +3 -3
- package/dist/{chunk-JOJ3CZQC.js → chunk-PVAQKHBQ.js} +3 -3
- package/dist/{chunk-XHH2IY66.js → chunk-RAVLTWJV.js} +54 -49
- package/dist/{chunk-LNDWWYO3.mjs → chunk-Y4FVIDJI.mjs} +1 -1
- package/dist/{executor-CIGyZdrv.d.ts → executor-B1mTS_M5.d.ts} +1 -1
- package/dist/{executor-C_QU1lUw.d.mts → executor-B2I8lRie.d.mts} +1 -1
- package/dist/{executor-Bk4ug-RW.d.mts → executor-B3LJ1461.d.mts} +1 -1
- package/dist/{executor-D2o23AZj.d.mts → executor-CnnrgXKr.d.mts} +1 -1
- package/dist/{executor-BHwhDrL-.d.ts → executor-Ct74DTAr.d.ts} +1 -1
- package/dist/{executor-ozBp5rj1.d.mts → executor-D5C-erVR.d.mts} +1 -1
- package/dist/{executor-DOFe9F7c.d.ts → executor-DZ-0sX_w.d.ts} +1 -1
- package/dist/{executor-DL3jAzFW.d.mts → executor-De29T5QB.d.mts} +1 -1
- package/dist/{executor-BW_5lER2.d.ts → executor-Dfot53CG.d.ts} +1 -1
- package/dist/{executor-hDJ0Fk_g.d.ts → executor-SU5oGftF.d.ts} +1 -1
- package/dist/executors.d.mts +6 -6
- package/dist/executors.d.ts +6 -6
- package/dist/generator-AFivysTp.d.ts +130 -0
- package/dist/generator-BAbOohf7.d.mts +130 -0
- package/dist/{generator-CiNaIUED.d.ts → generator-BCkqWM1d.d.ts} +1 -1
- package/dist/generator-B_HN13az.d.mts +130 -0
- package/dist/{generator-BNM0qnMp.d.mts → generator-CRiDjsPp.d.mts} +1 -1
- package/dist/generator-CrR9QK6B.d.mts +130 -0
- package/dist/{generator-c8PBxLhH.d.mts → generator-DATsTV1E.d.mts} +2 -2
- package/dist/{generator-QTX2Ix9P.d.ts → generator-DBa9-HbU.d.ts} +1 -1
- package/dist/generator-DNdirMec.d.ts +130 -0
- package/dist/{generator-BPXY7sqO.d.mts → generator-DpXgF55u.d.mts} +1 -1
- package/dist/generator-F6EuzmJD.d.ts +130 -0
- package/dist/{generator-ymaJQAJP.d.ts → generator-rf62OraH.d.ts} +2 -2
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +6 -6
- package/dist/generators.mjs +7 -7
- package/dist/index.d.mts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +7 -7
- package/dist/index.mjs +8 -8
- package/dist/src/base/base-executor.d.mts +2 -2
- package/dist/src/base/base-executor.d.ts +2 -2
- package/dist/src/base/base-generator.d.mts +2 -2
- package/dist/src/base/base-generator.d.ts +2 -2
- package/dist/src/base/index.d.mts +24 -208
- package/dist/src/base/index.d.ts +24 -208
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/typescript-library-generator.schema.d.ts +8 -200
- package/dist/src/base/typescript-library-generator.schema.json +18 -162
- package/dist/src/base/typescript-library-generator.schema.md +9 -177
- package/dist/src/base/typescript-library-generator.untyped.js +2 -2
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.d.mts +1 -1
- package/dist/src/executors/clean-package/executor.d.ts +1 -1
- package/dist/src/executors/esbuild/executor.d.mts +2 -2
- package/dist/src/executors/esbuild/executor.d.ts +2 -2
- package/dist/src/executors/size-limit/executor.d.mts +2 -2
- package/dist/src/executors/size-limit/executor.d.ts +2 -2
- package/dist/src/executors/tsdown/executor.d.mts +2 -2
- package/dist/src/executors/tsdown/executor.d.ts +2 -2
- package/dist/src/executors/typia/executor.d.mts +2 -2
- package/dist/src/executors/typia/executor.d.ts +2 -2
- package/dist/src/executors/unbuild/executor.d.mts +2 -2
- package/dist/src/executors/unbuild/executor.d.ts +2 -2
- package/dist/src/generators/browser-library/generator.d.mts +3 -3
- package/dist/src/generators/browser-library/generator.d.ts +3 -3
- package/dist/src/generators/browser-library/generator.js +3 -3
- package/dist/src/generators/browser-library/generator.mjs +2 -2
- package/dist/src/generators/browser-library/schema.d.ts +7 -199
- package/dist/src/generators/browser-library/schema.json +17 -162
- package/dist/src/generators/browser-library/schema.md +9 -177
- package/dist/src/generators/browser-library/untyped.js +2 -2
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.d.mts +3 -3
- package/dist/src/generators/config-schema/generator.d.ts +3 -3
- package/dist/src/generators/neutral-library/generator.d.mts +3 -3
- package/dist/src/generators/neutral-library/generator.d.ts +3 -3
- package/dist/src/generators/neutral-library/generator.js +3 -3
- package/dist/src/generators/neutral-library/generator.mjs +2 -2
- package/dist/src/generators/neutral-library/schema.d.ts +7 -199
- package/dist/src/generators/neutral-library/schema.json +17 -162
- package/dist/src/generators/neutral-library/schema.md +9 -177
- package/dist/src/generators/neutral-library/untyped.js +2 -2
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.d.mts +3 -3
- package/dist/src/generators/node-library/generator.d.ts +3 -3
- package/dist/src/generators/node-library/generator.js +3 -3
- package/dist/src/generators/node-library/generator.mjs +2 -2
- package/dist/src/generators/node-library/schema.d.ts +7 -199
- package/dist/src/generators/node-library/schema.json +17 -162
- package/dist/src/generators/node-library/schema.md +9 -177
- package/dist/src/generators/node-library/untyped.js +2 -2
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.d.mts +3 -3
- package/dist/src/generators/preset/generator.d.ts +3 -3
- package/dist/src/generators/release-version/generator.d.mts +2 -2
- package/dist/src/generators/release-version/generator.d.ts +2 -2
- package/dist/src/plugins/typescript/tsdown.js +11 -4
- package/dist/src/plugins/typescript/tsdown.mjs +11 -4
- package/dist/src/plugins/typescript/tsup.js +11 -3
- package/dist/src/plugins/typescript/tsup.mjs +11 -3
- package/dist/src/types.d.mts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
- package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
- package/dist/src/utils/index.d.mts +2 -2
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/src/utils/project-tags.d.mts +2 -2
- package/dist/src/utils/project-tags.d.ts +2 -2
- package/dist/{types-CYi2oThM.d.mts → types-44XkV3HO.d.mts} +1 -1
- package/dist/{types-zrlItIRw.d.mts → types-B5IG4iSJ.d.mts} +2 -2
- package/dist/{types-zrlItIRw.d.ts → types-B5IG4iSJ.d.ts} +2 -2
- package/dist/{types-Bd83s-qg.d.ts → types-DpaECebR.d.ts} +1 -1
- package/docs/api/base/typescript-library-generator.schema.md +9 -177
- package/docs/api/generators/browser-library/schema.md +9 -177
- package/docs/api/generators/neutral-library/schema.md +9 -177
- package/docs/api/generators/node-library/schema.md +9 -177
- package/package.json +1 -1
- package/dist/chunk-RPECQQG4.mjs +0 -288
- package/dist/chunk-ZFIZ5Q46.js +0 -288
- package/dist/generator-BS6uKMIL.d.mts +0 -322
- package/dist/generator-BsxAYGR_.d.mts +0 -322
- package/dist/generator-CFxhJoNw.d.ts +0 -322
- package/dist/generator-CiDljAEY.d.ts +0 -322
- package/dist/generator-DDW7kns9.d.ts +0 -322
- 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,
|
|
22
|
-
const
|
|
23
|
-
...
|
|
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
|
-
...
|
|
28
|
-
tsConfigName:
|
|
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(
|
|
33
|
+
..._nullishCoalesce(options.devDependencies, () => ( {}))
|
|
34
34
|
}));
|
|
35
|
-
if (
|
|
35
|
+
if (normalized.publishable) {
|
|
36
36
|
tasks.push(await _generator2.default.call(void 0, tree, {
|
|
37
|
-
...
|
|
37
|
+
...normalized,
|
|
38
38
|
skipFormat: true
|
|
39
39
|
}));
|
|
40
40
|
}
|
|
41
41
|
const projectConfig = {
|
|
42
|
-
root:
|
|
42
|
+
root: normalized.directory,
|
|
43
43
|
projectType: "library",
|
|
44
|
-
sourceRoot: _chunkBUXJSVJGjs.joinPaths.call(void 0, _nullishCoalesce(
|
|
44
|
+
sourceRoot: _chunkBUXJSVJGjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
45
45
|
targets: {
|
|
46
46
|
build: {
|
|
47
|
-
executor:
|
|
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,
|
|
53
|
+
_chunkBUXJSVJGjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")
|
|
54
54
|
],
|
|
55
|
-
outputPath: getOutputPath(
|
|
56
|
-
tsconfig: _chunkBUXJSVJGjs.joinPaths.call(void 0,
|
|
57
|
-
project: _chunkBUXJSVJGjs.joinPaths.call(void 0,
|
|
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:
|
|
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 (
|
|
87
|
-
projectConfig.targets.build.options.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,
|
|
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,
|
|
93
|
-
_devkit.addProjectConfiguration.call(void 0, tree,
|
|
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 =
|
|
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 (!
|
|
109
|
-
|
|
108
|
+
if (!normalized.importPath) {
|
|
109
|
+
normalized.importPath = normalized.name;
|
|
110
110
|
}
|
|
111
|
-
const packageJsonPath = _chunkBUXJSVJGjs.joinPaths.call(void 0,
|
|
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 (!
|
|
115
|
-
|
|
114
|
+
if (!normalized.importPath) {
|
|
115
|
+
normalized.importPath = normalized.name;
|
|
116
116
|
}
|
|
117
|
-
json.name =
|
|
117
|
+
json.name = normalized.importPath;
|
|
118
118
|
json.version = "0.0.1";
|
|
119
|
-
if (json.private && (
|
|
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:
|
|
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:
|
|
141
|
+
name: normalized.importPath,
|
|
142
142
|
version: "0.0.1",
|
|
143
143
|
description,
|
|
144
144
|
repository: {
|
|
145
145
|
...repository,
|
|
146
|
-
directory:
|
|
146
|
+
directory: normalized.projectRoot
|
|
147
147
|
},
|
|
148
|
-
private: !
|
|
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") &&
|
|
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(
|
|
162
|
+
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
}
|
|
167
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
168
|
-
_chunkBUXJSVJGjs.joinPaths.call(void 0,
|
|
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,
|
|
171
|
-
_chunkBUXJSVJGjs.joinPaths.call(void 0,
|
|
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,
|
|
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,
|
|
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,
|
|
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 (!
|
|
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
|
|
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
|
|
268
|
-
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,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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
package/dist/executors.d.mts
CHANGED
|
@@ -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-
|
|
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-
|
|
11
|
-
export { T as TSDownExecutorSchema, t as tsdownExecutorFn } from './executor-
|
|
12
|
-
export { T as TypiaExecutorSchema, t as typiaExecutorFn } from './executor-
|
|
13
|
-
export { U as UnbuildExecutorSchema, u as unbuildExecutorFn } from './executor-
|
|
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-
|
|
15
|
+
import './types-B5IG4iSJ.mjs';
|
|
16
16
|
import 'zod';
|
package/dist/executors.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
11
|
-
export { T as TSDownExecutorSchema, t as tsdownExecutorFn } from './executor-
|
|
12
|
-
export { T as TypiaExecutorSchema, t as typiaExecutorFn } from './executor-
|
|
13
|
-
export { U as UnbuildExecutorSchema, u as unbuildExecutorFn } from './executor-
|
|
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-
|
|
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 };
|