@storm-software/projen 0.15.25 → 0.15.27
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 +14 -0
- package/README.md +1 -1
- package/dist/{chunk-UWFMHGH3.mjs → chunk-2F74L3HY.mjs} +47 -4
- package/dist/{chunk-X4UW6KTZ.js → chunk-52KJUW7O.js} +62 -19
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Projen
|
|
4
4
|
|
|
5
|
+
## [0.15.26](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.26) (2025-06-18)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([0975b603d](https://github.com/storm-software/storm-ops/commit/0975b603d))
|
|
11
|
+
|
|
12
|
+
## [0.15.25](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.25) (2025-06-18)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Regenerate README markdown files
|
|
17
|
+
([aa59eabdd](https://github.com/storm-software/storm-ops/commit/aa59eabdd))
|
|
18
|
+
|
|
5
19
|
## [0.15.24](https://github.com/storm-software/storm-ops/releases/tag/projen%400.15.24) (2025-06-18)
|
|
6
20
|
|
|
7
21
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -237,6 +237,15 @@ var errorConfigSchema = z.object({
|
|
|
237
237
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
238
238
|
)
|
|
239
239
|
}).describe("The workspace's error config used during the error process");
|
|
240
|
+
var organizationConfigSchema = z.object({
|
|
241
|
+
name: z.string().trim().describe("The name of the organization"),
|
|
242
|
+
description: z.string().trim().optional().describe("A description of the organization"),
|
|
243
|
+
logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
|
|
244
|
+
icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
|
|
245
|
+
url: z.string().trim().url().optional().describe(
|
|
246
|
+
"A URL to a page that provides more information about the organization"
|
|
247
|
+
)
|
|
248
|
+
}).describe("The workspace's organization details");
|
|
240
249
|
var stormWorkspaceConfigSchema = z.object({
|
|
241
250
|
$schema: z.string().trim().default(
|
|
242
251
|
"https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
|
|
@@ -248,7 +257,9 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
248
257
|
"The name of the service/package/scope using this configuration"
|
|
249
258
|
),
|
|
250
259
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
251
|
-
organization: z.string().trim().
|
|
260
|
+
organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
|
|
261
|
+
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
262
|
+
),
|
|
252
263
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
253
264
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
254
265
|
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
@@ -977,7 +988,13 @@ var getConfigEnv = () => {
|
|
|
977
988
|
medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
|
|
978
989
|
github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
|
|
979
990
|
},
|
|
980
|
-
organization: process.env[`${prefix}ORGANIZATION`] ||
|
|
991
|
+
organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
|
|
992
|
+
name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
|
|
993
|
+
description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
|
|
994
|
+
url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
|
|
995
|
+
logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
|
|
996
|
+
icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
|
|
997
|
+
} : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
|
|
981
998
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
982
999
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
983
1000
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
@@ -1185,7 +1202,33 @@ var setConfigEnv = (config) => {
|
|
|
1185
1202
|
}
|
|
1186
1203
|
}
|
|
1187
1204
|
if (config.organization) {
|
|
1188
|
-
|
|
1205
|
+
if (typeof config.organization === "string") {
|
|
1206
|
+
process.env[`${prefix}ORG`] = config.organization;
|
|
1207
|
+
process.env[`${prefix}ORG_NAME`] = config.organization;
|
|
1208
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
1209
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
|
|
1210
|
+
} else {
|
|
1211
|
+
process.env[`${prefix}ORG`] = config.organization.name;
|
|
1212
|
+
process.env[`${prefix}ORG_NAME`] = config.organization.name;
|
|
1213
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization.name;
|
|
1214
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
|
|
1215
|
+
if (config.organization.url) {
|
|
1216
|
+
process.env[`${prefix}ORG_URL`] = config.organization.url;
|
|
1217
|
+
process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
|
|
1218
|
+
}
|
|
1219
|
+
if (config.organization.description) {
|
|
1220
|
+
process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
|
|
1221
|
+
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
|
|
1222
|
+
}
|
|
1223
|
+
if (config.organization.logo) {
|
|
1224
|
+
process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
|
|
1225
|
+
process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
|
|
1226
|
+
}
|
|
1227
|
+
if (config.organization.icon) {
|
|
1228
|
+
process.env[`${prefix}ORG_ICON`] = config.organization.icon;
|
|
1229
|
+
process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1189
1232
|
}
|
|
1190
1233
|
if (config.packageManager) {
|
|
1191
1234
|
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
|
@@ -3193,7 +3236,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3193
3236
|
addProjectConfiguration(tree, normalized.name, projectConfig);
|
|
3194
3237
|
let repository = {
|
|
3195
3238
|
type: "github",
|
|
3196
|
-
url: config?.repository || `https://github.com/${config?.organization || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
3239
|
+
url: config?.repository || `https://github.com/${(typeof config?.organization === "string" ? config?.organization : config?.organization?.name) || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
3197
3240
|
};
|
|
3198
3241
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3199
3242
|
if (tree.exists("package.json")) {
|
|
@@ -236,6 +236,15 @@ var errorConfigSchema = _zod2.default.object({
|
|
|
236
236
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
237
237
|
)
|
|
238
238
|
}).describe("The workspace's error config used during the error process");
|
|
239
|
+
var organizationConfigSchema = _zod2.default.object({
|
|
240
|
+
name: _zod2.default.string().trim().describe("The name of the organization"),
|
|
241
|
+
description: _zod2.default.string().trim().optional().describe("A description of the organization"),
|
|
242
|
+
logo: _zod2.default.string().trim().url().optional().describe("A URL to the organization's logo image"),
|
|
243
|
+
icon: _zod2.default.string().trim().url().optional().describe("A URL to the organization's icon image"),
|
|
244
|
+
url: _zod2.default.string().trim().url().optional().describe(
|
|
245
|
+
"A URL to a page that provides more information about the organization"
|
|
246
|
+
)
|
|
247
|
+
}).describe("The workspace's organization details");
|
|
239
248
|
var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
240
249
|
$schema: _zod2.default.string().trim().default(
|
|
241
250
|
"https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
|
|
@@ -247,7 +256,9 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
247
256
|
"The name of the service/package/scope using this configuration"
|
|
248
257
|
),
|
|
249
258
|
namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
250
|
-
organization: _zod2.default.string().trim().
|
|
259
|
+
organization: organizationConfigSchema.or(_zod2.default.string().trim().describe("The organization of the workspace")).optional().describe(
|
|
260
|
+
"The organization of the workspace. This can be a string or an object containing the organization's details"
|
|
261
|
+
),
|
|
251
262
|
repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
252
263
|
license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
253
264
|
homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
@@ -976,7 +987,13 @@ var getConfigEnv = () => {
|
|
|
976
987
|
medium: process.env[`${prefix}ACCOUNT_MEDIUM`] || void 0,
|
|
977
988
|
github: process.env[`${prefix}ACCOUNT_GITHUB`] || void 0
|
|
978
989
|
},
|
|
979
|
-
organization: process.env[`${prefix}ORGANIZATION`] ||
|
|
990
|
+
organization: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] ? process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] ? {
|
|
991
|
+
name: process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`],
|
|
992
|
+
description: process.env[`${prefix}ORG_DESCRIPTION`] || process.env[`${prefix}ORGANIZATION_DESCRIPTION`] || void 0,
|
|
993
|
+
url: process.env[`${prefix}ORG_URL`] || process.env[`${prefix}ORGANIZATION_URL`] || void 0,
|
|
994
|
+
logo: process.env[`${prefix}ORG_LOGO`] || process.env[`${prefix}ORGANIZATION_LOGO`] || void 0,
|
|
995
|
+
icon: process.env[`${prefix}ORG_ICON`] || process.env[`${prefix}ORGANIZATION_ICON`] || void 0
|
|
996
|
+
} : process.env[`${prefix}ORG`] || process.env[`${prefix}ORGANIZATION`] || process.env[`${prefix}ORG_NAME`] || process.env[`${prefix}ORGANIZATION_NAME`] : void 0,
|
|
980
997
|
packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
|
|
981
998
|
license: process.env[`${prefix}LICENSE`] || void 0,
|
|
982
999
|
homepage: process.env[`${prefix}HOMEPAGE`] || void 0,
|
|
@@ -1184,7 +1201,33 @@ var setConfigEnv = (config) => {
|
|
|
1184
1201
|
}
|
|
1185
1202
|
}
|
|
1186
1203
|
if (config.organization) {
|
|
1187
|
-
|
|
1204
|
+
if (typeof config.organization === "string") {
|
|
1205
|
+
process.env[`${prefix}ORG`] = config.organization;
|
|
1206
|
+
process.env[`${prefix}ORG_NAME`] = config.organization;
|
|
1207
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
1208
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization;
|
|
1209
|
+
} else {
|
|
1210
|
+
process.env[`${prefix}ORG`] = config.organization.name;
|
|
1211
|
+
process.env[`${prefix}ORG_NAME`] = config.organization.name;
|
|
1212
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization.name;
|
|
1213
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config.organization.name;
|
|
1214
|
+
if (config.organization.url) {
|
|
1215
|
+
process.env[`${prefix}ORG_URL`] = config.organization.url;
|
|
1216
|
+
process.env[`${prefix}ORGANIZATION_URL`] = config.organization.url;
|
|
1217
|
+
}
|
|
1218
|
+
if (config.organization.description) {
|
|
1219
|
+
process.env[`${prefix}ORG_DESCRIPTION`] = config.organization.description;
|
|
1220
|
+
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config.organization.description;
|
|
1221
|
+
}
|
|
1222
|
+
if (config.organization.logo) {
|
|
1223
|
+
process.env[`${prefix}ORG_LOGO`] = config.organization.logo;
|
|
1224
|
+
process.env[`${prefix}ORGANIZATION_LOGO`] = config.organization.logo;
|
|
1225
|
+
}
|
|
1226
|
+
if (config.organization.icon) {
|
|
1227
|
+
process.env[`${prefix}ORG_ICON`] = config.organization.icon;
|
|
1228
|
+
process.env[`${prefix}ORGANIZATION_ICON`] = config.organization.icon;
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1188
1231
|
}
|
|
1189
1232
|
if (config.packageManager) {
|
|
1190
1233
|
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
|
@@ -3192,15 +3235,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3192
3235
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
3193
3236
|
let repository = {
|
|
3194
3237
|
type: "github",
|
|
3195
|
-
url: _optionalChain([config, 'optionalAccess', _168 => _168.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _169 => _169.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess',
|
|
3238
|
+
url: _optionalChain([config, 'optionalAccess', _168 => _168.repository]) || `https://github.com/${(typeof _optionalChain([config, 'optionalAccess', _169 => _169.organization]) === "string" ? _optionalChain([config, 'optionalAccess', _170 => _170.organization]) : _optionalChain([config, 'optionalAccess', _171 => _171.organization, 'optionalAccess', _172 => _172.name])) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _173 => _173.namespace]) || _optionalChain([config, 'optionalAccess', _174 => _174.name]) || "repository"}.git`
|
|
3196
3239
|
};
|
|
3197
3240
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3198
3241
|
if (tree.exists("package.json")) {
|
|
3199
3242
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3200
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3243
|
+
if (_optionalChain([packageJson, 'optionalAccess', _175 => _175.repository])) {
|
|
3201
3244
|
repository = packageJson.repository;
|
|
3202
3245
|
}
|
|
3203
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3246
|
+
if (_optionalChain([packageJson, 'optionalAccess', _176 => _176.description])) {
|
|
3204
3247
|
description = packageJson.description;
|
|
3205
3248
|
}
|
|
3206
3249
|
}
|
|
@@ -3255,9 +3298,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3255
3298
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
3256
3299
|
...json,
|
|
3257
3300
|
pnpm: {
|
|
3258
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3301
|
+
..._optionalChain([json, 'optionalAccess', _177 => _177.pnpm]),
|
|
3259
3302
|
overrides: {
|
|
3260
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3303
|
+
..._optionalChain([json, 'optionalAccess', _178 => _178.pnpm, 'optionalAccess', _179 => _179.overrides]),
|
|
3261
3304
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3262
3305
|
}
|
|
3263
3306
|
}
|
|
@@ -3275,10 +3318,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3275
3318
|
]);
|
|
3276
3319
|
if (tree.exists("package.json")) {
|
|
3277
3320
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3278
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3321
|
+
if (_optionalChain([packageJson, 'optionalAccess', _180 => _180.repository])) {
|
|
3279
3322
|
repository = packageJson.repository;
|
|
3280
3323
|
}
|
|
3281
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3324
|
+
if (_optionalChain([packageJson, 'optionalAccess', _181 => _181.description])) {
|
|
3282
3325
|
description = packageJson.description;
|
|
3283
3326
|
}
|
|
3284
3327
|
}
|
|
@@ -3315,22 +3358,22 @@ function getOutputPath(options) {
|
|
|
3315
3358
|
function createProjectTsConfigJson(tree, options) {
|
|
3316
3359
|
const tsconfig = {
|
|
3317
3360
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
3318
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3361
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _182 => _182.tsconfigOptions]), () => ( {})),
|
|
3319
3362
|
compilerOptions: {
|
|
3320
3363
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3321
3364
|
outDir: _chunkLP4I3FEYjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3322
3365
|
noEmit: true,
|
|
3323
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3366
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _183 => _183.tsconfigOptions, 'optionalAccess', _184 => _184.compilerOptions]), () => ( {}))
|
|
3324
3367
|
},
|
|
3325
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3368
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _185 => _185.tsconfigOptions, 'optionalAccess', _186 => _186.files]), () => ( []))],
|
|
3326
3369
|
include: [
|
|
3327
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3370
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _187 => _187.tsconfigOptions, 'optionalAccess', _188 => _188.include]), () => ( [])),
|
|
3328
3371
|
"src/**/*.ts",
|
|
3329
3372
|
"src/**/*.js",
|
|
3330
3373
|
"bin/**/*"
|
|
3331
3374
|
],
|
|
3332
3375
|
exclude: [
|
|
3333
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3376
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _189 => _189.tsconfigOptions, 'optionalAccess', _190 => _190.exclude]), () => ( [])),
|
|
3334
3377
|
"jest.config.ts",
|
|
3335
3378
|
"src/**/*.spec.ts",
|
|
3336
3379
|
"src/**/*.test.ts"
|
|
@@ -3340,8 +3383,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3340
3383
|
}
|
|
3341
3384
|
async function normalizeOptions(tree, options, config) {
|
|
3342
3385
|
let importPath = options.importPath;
|
|
3343
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
3344
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
3386
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _191 => _191.namespace])) {
|
|
3387
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _192 => _192.namespace])}/${options.name}`;
|
|
3345
3388
|
}
|
|
3346
3389
|
if (options.publishable) {
|
|
3347
3390
|
if (!importPath) {
|
|
@@ -3498,8 +3541,8 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3498
3541
|
});
|
|
3499
3542
|
writeTrace(jsonSchema, config);
|
|
3500
3543
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
3501
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
3502
|
-
_optionalChain([options, 'access',
|
|
3544
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _193 => _193.workspaceRoot]), () => ( findWorkspaceRoot())),
|
|
3545
|
+
_optionalChain([options, 'access', _194 => _194.outputFile, 'optionalAccess', _195 => _195.startsWith, 'call', _196 => _196("./")]) ? "" : "./"
|
|
3503
3546
|
);
|
|
3504
3547
|
writeTrace(
|
|
3505
3548
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-3MCIDYYV.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk52KJUW7Ojs = require('./chunk-52KJUW7O.js');
|
|
5
5
|
require('./chunk-LP4I3FEY.js');
|
|
6
6
|
require('./chunk-MWIFWHR4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunk52KJUW7Ojs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkKFR27Y3Kjs = require('./chunk-KFR27Y3K.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk52KJUW7Ojs = require('./chunk-52KJUW7O.js');
|
|
8
8
|
require('./chunk-LP4I3FEY.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -16,10 +16,10 @@ var _chunkMWIFWHR4js = require('./chunk-MWIFWHR4.js');
|
|
|
16
16
|
// index.ts
|
|
17
17
|
var index_exports = {};
|
|
18
18
|
_chunkMWIFWHR4js.__export.call(void 0, index_exports, {
|
|
19
|
-
initGeneratorFn: () =>
|
|
19
|
+
initGeneratorFn: () => _chunk52KJUW7Ojs.initGeneratorFn
|
|
20
20
|
});
|
|
21
21
|
_chunkMWIFWHR4js.init_cjs_shims.call(void 0, );
|
|
22
22
|
_chunkMWIFWHR4js.__reExport.call(void 0, index_exports, _chunkMWIFWHR4js.__toESM.call(void 0, _chunkKFR27Y3Kjs.require_components.call(void 0, )));
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.initGeneratorFn =
|
|
25
|
+
exports.initGeneratorFn = _chunk52KJUW7Ojs.initGeneratorFn;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk52KJUW7Ojs = require('../../../chunk-52KJUW7O.js');
|
|
5
5
|
require('../../../chunk-LP4I3FEY.js');
|
|
6
6
|
require('../../../chunk-MWIFWHR4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunk52KJUW7Ojs.generator_default; exports.initGeneratorFn = _chunk52KJUW7Ojs.initGeneratorFn;
|