@storm-software/cloudflare-tools 0.54.9 → 0.55.1
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 +12 -0
- package/README.md +1 -1
- package/dist/{chunk-UUCB3PD3.js → chunk-52L33AXE.js} +1 -1
- package/dist/{chunk-SXIJ3Y7H.mjs → chunk-5WNLJW4K.mjs} +1 -1
- package/dist/{chunk-6FLJY5GI.mjs → chunk-I3W6J4WY.mjs} +1 -1
- package/dist/{chunk-FRA27Q4O.mjs → chunk-IKCEMAOR.mjs} +76 -232
- package/dist/{chunk-PI2GYWCK.js → chunk-KUTJAYRP.js} +2 -2
- package/dist/{chunk-J4ZEL2FS.js → chunk-ZND42QSU.js} +71 -227
- package/dist/executors.js +1 -1
- package/dist/executors.mjs +1 -1
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +5 -5
- package/dist/index.mjs +4 -4
- package/dist/src/executors/cloudflare-publish/executor.js +1 -1
- package/dist/src/executors/cloudflare-publish/executor.mjs +1 -1
- package/dist/src/executors/serve/executor.js +2 -2
- package/dist/src/executors/serve/executor.mjs +1 -1
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/dist/src/generators/worker/generator.js +3 -3
- package/dist/src/generators/worker/generator.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 0.55.1 (2025-01-24)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous
|
|
4
|
+
|
|
5
|
+
- **monorepo:** Regenerate the README markdown files ([e7d99d45](https://github.com/storm-software/storm-ops/commit/e7d99d45))
|
|
6
|
+
|
|
7
|
+
## 0.55.0 (2025-01-23)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **config:** Update package to use modern tooling ([8ac7afa3](https://github.com/storm-software/storm-ops/commit/8ac7afa3))
|
|
12
|
+
|
|
1
13
|
## 0.54.9 (2025-01-23)
|
|
2
14
|
|
|
3
15
|
### 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 -->
|
|
@@ -8,7 +8,7 @@ var require_package = _chunkJ5SB6L2Ljs.__commonJS.call(void 0, {
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@storm-software/cloudflare-tools",
|
|
11
|
-
version: "0.
|
|
11
|
+
version: "0.55.1",
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
repository: {
|
|
14
14
|
type: "github",
|
|
@@ -8,7 +8,7 @@ var require_package = __commonJS({
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@storm-software/cloudflare-tools",
|
|
11
|
-
version: "0.
|
|
11
|
+
version: "0.55.1",
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
repository: {
|
|
14
14
|
type: "github",
|
|
@@ -2108,7 +2108,7 @@ var executor_default10 = withRunExecutor("TypeScript Unbuild build", unbuildExec
|
|
|
2108
2108
|
});
|
|
2109
2109
|
|
|
2110
2110
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2111
|
-
import { formatFiles as formatFiles2, generateFiles,
|
|
2111
|
+
import { formatFiles as formatFiles2, generateFiles, names as names2, offsetFromRoot as offsetFromRoot2 } from "@nx/devkit";
|
|
2112
2112
|
|
|
2113
2113
|
// ../workspace-tools/src/base/base-generator.ts
|
|
2114
2114
|
var withRunGenerator = /* @__PURE__ */ __name((name, generatorFn, generatorOptions = {
|
|
@@ -2188,48 +2188,48 @@ var nodeVersion = "20.11.0";
|
|
|
2188
2188
|
var pnpmVersion = "8.10.2";
|
|
2189
2189
|
|
|
2190
2190
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
2191
|
-
async function typeScriptLibraryGeneratorFn(tree,
|
|
2192
|
-
const
|
|
2193
|
-
...
|
|
2191
|
+
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
2192
|
+
const normalized = await normalizeOptions(tree, {
|
|
2193
|
+
...options
|
|
2194
2194
|
});
|
|
2195
2195
|
const tasks = [];
|
|
2196
2196
|
tasks.push(await jsInitGenerator(tree, {
|
|
2197
|
-
...
|
|
2198
|
-
tsConfigName:
|
|
2197
|
+
...normalized,
|
|
2198
|
+
tsConfigName: normalized.rootProject ? "tsconfig.json" : "tsconfig.base.json"
|
|
2199
2199
|
}));
|
|
2200
2200
|
tasks.push(addDependenciesToPackageJson(tree, {}, {
|
|
2201
2201
|
"@storm-software/workspace-tools": "latest",
|
|
2202
2202
|
"@storm-software/testing-tools": "latest",
|
|
2203
|
-
...
|
|
2203
|
+
...options.devDependencies ?? {}
|
|
2204
2204
|
}));
|
|
2205
|
-
if (
|
|
2205
|
+
if (normalized.publishable) {
|
|
2206
2206
|
tasks.push(await setupVerdaccio(tree, {
|
|
2207
|
-
...
|
|
2207
|
+
...normalized,
|
|
2208
2208
|
skipFormat: true
|
|
2209
2209
|
}));
|
|
2210
2210
|
}
|
|
2211
2211
|
const projectConfig = {
|
|
2212
|
-
root:
|
|
2212
|
+
root: normalized.directory,
|
|
2213
2213
|
projectType: "library",
|
|
2214
|
-
sourceRoot: joinPaths(
|
|
2214
|
+
sourceRoot: joinPaths(normalized.directory ?? "", "src"),
|
|
2215
2215
|
targets: {
|
|
2216
2216
|
build: {
|
|
2217
|
-
executor:
|
|
2217
|
+
executor: options.buildExecutor,
|
|
2218
2218
|
outputs: [
|
|
2219
2219
|
"{options.outputPath}"
|
|
2220
2220
|
],
|
|
2221
2221
|
options: {
|
|
2222
2222
|
entry: [
|
|
2223
|
-
joinPaths(
|
|
2223
|
+
joinPaths(normalized.projectRoot, "src", "index.ts")
|
|
2224
2224
|
],
|
|
2225
|
-
outputPath: getOutputPath(
|
|
2226
|
-
tsconfig: joinPaths(
|
|
2227
|
-
project: joinPaths(
|
|
2225
|
+
outputPath: getOutputPath(normalized),
|
|
2226
|
+
tsconfig: joinPaths(normalized.projectRoot, "tsconfig.json"),
|
|
2227
|
+
project: joinPaths(normalized.projectRoot, "package.json"),
|
|
2228
2228
|
defaultConfiguration: "production",
|
|
2229
2229
|
platform: "neutral",
|
|
2230
2230
|
assets: [
|
|
2231
2231
|
{
|
|
2232
|
-
input:
|
|
2232
|
+
input: normalized.projectRoot,
|
|
2233
2233
|
glob: "*.md",
|
|
2234
2234
|
output: "/"
|
|
2235
2235
|
},
|
|
@@ -2253,19 +2253,19 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2253
2253
|
}
|
|
2254
2254
|
}
|
|
2255
2255
|
};
|
|
2256
|
-
if (
|
|
2257
|
-
projectConfig.targets.build.options.platform =
|
|
2256
|
+
if (options.platform) {
|
|
2257
|
+
projectConfig.targets.build.options.platform = options.platform === "worker" ? "node" : options.platform;
|
|
2258
2258
|
}
|
|
2259
|
-
addProjectTag(projectConfig, ProjectTagConstants.Platform.TAG_ID,
|
|
2259
|
+
addProjectTag(projectConfig, ProjectTagConstants.Platform.TAG_ID, options.platform === "node" ? ProjectTagConstants.Platform.NODE : options.platform === "worker" ? ProjectTagConstants.Platform.WORKER : options.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL, {
|
|
2260
2260
|
overwrite: false
|
|
2261
2261
|
});
|
|
2262
|
-
createProjectTsConfigJson(tree,
|
|
2263
|
-
addProjectConfiguration(tree,
|
|
2262
|
+
createProjectTsConfigJson(tree, normalized);
|
|
2263
|
+
addProjectConfiguration(tree, normalized.name, projectConfig);
|
|
2264
2264
|
let repository = {
|
|
2265
2265
|
type: "github",
|
|
2266
2266
|
url: config?.repository || `https://github.com/${config?.organization || "storm-software"}/${config?.namespace || config?.name || "repository"}.git`
|
|
2267
2267
|
};
|
|
2268
|
-
let description =
|
|
2268
|
+
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
2269
2269
|
if (tree.exists("package.json")) {
|
|
2270
2270
|
const packageJson = readJson(tree, "package.json");
|
|
2271
2271
|
if (packageJson?.repository) {
|
|
@@ -2275,18 +2275,18 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2275
2275
|
description = packageJson.description;
|
|
2276
2276
|
}
|
|
2277
2277
|
}
|
|
2278
|
-
if (!
|
|
2279
|
-
|
|
2278
|
+
if (!normalized.importPath) {
|
|
2279
|
+
normalized.importPath = normalized.name;
|
|
2280
2280
|
}
|
|
2281
|
-
const packageJsonPath = joinPaths(
|
|
2281
|
+
const packageJsonPath = joinPaths(normalized.projectRoot, "package.json");
|
|
2282
2282
|
if (tree.exists(packageJsonPath)) {
|
|
2283
2283
|
updateJson(tree, packageJsonPath, (json) => {
|
|
2284
|
-
if (!
|
|
2285
|
-
|
|
2284
|
+
if (!normalized.importPath) {
|
|
2285
|
+
normalized.importPath = normalized.name;
|
|
2286
2286
|
}
|
|
2287
|
-
json.name =
|
|
2287
|
+
json.name = normalized.importPath;
|
|
2288
2288
|
json.version = "0.0.1";
|
|
2289
|
-
if (json.private && (
|
|
2289
|
+
if (json.private && (normalized.publishable || normalized.rootProject)) {
|
|
2290
2290
|
json.private = void 0;
|
|
2291
2291
|
}
|
|
2292
2292
|
return {
|
|
@@ -2295,7 +2295,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2295
2295
|
description,
|
|
2296
2296
|
repository: {
|
|
2297
2297
|
...repository,
|
|
2298
|
-
directory:
|
|
2298
|
+
directory: normalized.projectRoot
|
|
2299
2299
|
},
|
|
2300
2300
|
type: "module",
|
|
2301
2301
|
dependencies: {
|
|
@@ -2308,37 +2308,37 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2308
2308
|
});
|
|
2309
2309
|
} else {
|
|
2310
2310
|
writeJson(tree, packageJsonPath, {
|
|
2311
|
-
name:
|
|
2311
|
+
name: normalized.importPath,
|
|
2312
2312
|
version: "0.0.1",
|
|
2313
2313
|
description,
|
|
2314
2314
|
repository: {
|
|
2315
2315
|
...repository,
|
|
2316
|
-
directory:
|
|
2316
|
+
directory: normalized.projectRoot
|
|
2317
2317
|
},
|
|
2318
|
-
private: !
|
|
2318
|
+
private: !normalized.publishable || normalized.rootProject,
|
|
2319
2319
|
type: "module",
|
|
2320
2320
|
publishConfig: {
|
|
2321
2321
|
access: "public"
|
|
2322
2322
|
}
|
|
2323
2323
|
});
|
|
2324
2324
|
}
|
|
2325
|
-
if (tree.exists("package.json") &&
|
|
2325
|
+
if (tree.exists("package.json") && normalized.importPath) {
|
|
2326
2326
|
updateJson(tree, "package.json", (json) => ({
|
|
2327
2327
|
...json,
|
|
2328
2328
|
pnpm: {
|
|
2329
2329
|
...json?.pnpm,
|
|
2330
2330
|
overrides: {
|
|
2331
2331
|
...json?.pnpm?.overrides,
|
|
2332
|
-
[
|
|
2332
|
+
[normalized.importPath ?? ""]: "workspace:*"
|
|
2333
2333
|
}
|
|
2334
2334
|
}
|
|
2335
2335
|
}));
|
|
2336
2336
|
}
|
|
2337
|
-
addTsConfigPath(tree,
|
|
2338
|
-
joinPaths(
|
|
2337
|
+
addTsConfigPath(tree, normalized.importPath, [
|
|
2338
|
+
joinPaths(normalized.projectRoot, "./src", `index.${normalized.js ? "js" : "ts"}`)
|
|
2339
2339
|
]);
|
|
2340
|
-
addTsConfigPath(tree, joinPaths(
|
|
2341
|
-
joinPaths(
|
|
2340
|
+
addTsConfigPath(tree, joinPaths(normalized.importPath, "/*"), [
|
|
2341
|
+
joinPaths(normalized.projectRoot, "./src", "/*")
|
|
2342
2342
|
]);
|
|
2343
2343
|
if (tree.exists("package.json")) {
|
|
2344
2344
|
const packageJson = readJson(tree, "package.json");
|
|
@@ -2349,7 +2349,7 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2349
2349
|
description = packageJson.description;
|
|
2350
2350
|
}
|
|
2351
2351
|
}
|
|
2352
|
-
const tsconfigPath = joinPaths(
|
|
2352
|
+
const tsconfigPath = joinPaths(normalized.projectRoot, "tsconfig.json");
|
|
2353
2353
|
if (tree.exists(tsconfigPath)) {
|
|
2354
2354
|
updateJson(tree, tsconfigPath, (json) => {
|
|
2355
2355
|
json.composite ??= true;
|
|
@@ -2357,10 +2357,10 @@ async function typeScriptLibraryGeneratorFn(tree, schema, config) {
|
|
|
2357
2357
|
});
|
|
2358
2358
|
} else {
|
|
2359
2359
|
writeJson(tree, tsconfigPath, {
|
|
2360
|
-
extends: `${offsetFromRoot(
|
|
2360
|
+
extends: `${offsetFromRoot(normalized.projectRoot)}tsconfig.base.json`,
|
|
2361
2361
|
composite: true,
|
|
2362
2362
|
compilerOptions: {
|
|
2363
|
-
outDir: `${offsetFromRoot(
|
|
2363
|
+
outDir: `${offsetFromRoot(normalized.projectRoot)}dist/out-tsc`
|
|
2364
2364
|
},
|
|
2365
2365
|
files: [],
|
|
2366
2366
|
include: [
|
|
@@ -2419,9 +2419,13 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2419
2419
|
writeJson(tree, joinPaths(options.projectRoot, "tsconfig.json"), tsconfig);
|
|
2420
2420
|
}
|
|
2421
2421
|
__name(createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2422
|
-
async function normalizeOptions(tree, options) {
|
|
2422
|
+
async function normalizeOptions(tree, options, config) {
|
|
2423
|
+
let importPath = options.importPath;
|
|
2424
|
+
if (!importPath && config?.namespace) {
|
|
2425
|
+
importPath = `@${config?.namespace}/${options.name}`;
|
|
2426
|
+
}
|
|
2423
2427
|
if (options.publishable) {
|
|
2424
|
-
if (!
|
|
2428
|
+
if (!importPath) {
|
|
2425
2429
|
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)`);
|
|
2426
2430
|
}
|
|
2427
2431
|
}
|
|
@@ -2430,14 +2434,14 @@ async function normalizeOptions(tree, options) {
|
|
|
2430
2434
|
bundler = "none";
|
|
2431
2435
|
}
|
|
2432
2436
|
const { Linter } = ensurePackage("@nx/eslint", nxVersion);
|
|
2433
|
-
const
|
|
2437
|
+
const rootProject = false;
|
|
2438
|
+
const { projectName, names: projectNames, projectRoot, importPath: normalizedImportPath } = await determineProjectNameAndRootOptions(tree, {
|
|
2434
2439
|
name: options.name,
|
|
2435
2440
|
projectType: "library",
|
|
2436
2441
|
directory: options.directory,
|
|
2437
|
-
importPath
|
|
2438
|
-
rootProject
|
|
2442
|
+
importPath,
|
|
2443
|
+
rootProject
|
|
2439
2444
|
});
|
|
2440
|
-
options.rootProject = projectRoot === ".";
|
|
2441
2445
|
const normalized = names(projectNames.projectFileName);
|
|
2442
2446
|
const fileName = normalized.fileName;
|
|
2443
2447
|
return {
|
|
@@ -2463,14 +2467,15 @@ async function normalizeOptions(tree, options) {
|
|
|
2463
2467
|
projectNames,
|
|
2464
2468
|
projectRoot,
|
|
2465
2469
|
parsedTags: options.tags ? options.tags.split(",").map((s) => s.trim()) : [],
|
|
2466
|
-
importPath
|
|
2470
|
+
importPath: normalizedImportPath,
|
|
2471
|
+
rootProject
|
|
2467
2472
|
};
|
|
2468
2473
|
}
|
|
2469
2474
|
__name(normalizeOptions, "normalizeOptions");
|
|
2470
2475
|
|
|
2471
2476
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
2472
2477
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
2473
|
-
const filesDir =
|
|
2478
|
+
const filesDir = joinPaths(__dirname, "src", "generators", "browser-library", "files");
|
|
2474
2479
|
const tsLibraryGeneratorOptions = {
|
|
2475
2480
|
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
2476
2481
|
platform: "browser",
|
|
@@ -2573,9 +2578,9 @@ var generator_default2 = withRunGenerator("Configuration Schema Creator", config
|
|
|
2573
2578
|
import { addDependenciesToPackageJson as addDependenciesToPackageJson2, formatFiles as formatFiles4 } from "@nx/devkit";
|
|
2574
2579
|
|
|
2575
2580
|
// ../workspace-tools/src/generators/neutral-library/generator.ts
|
|
2576
|
-
import { formatFiles as formatFiles5, generateFiles as generateFiles2,
|
|
2581
|
+
import { formatFiles as formatFiles5, generateFiles as generateFiles2, names as names3, offsetFromRoot as offsetFromRoot3 } from "@nx/devkit";
|
|
2577
2582
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
2578
|
-
const filesDir =
|
|
2583
|
+
const filesDir = joinPaths(__dirname, "src", "generators", "neutral-library", "files");
|
|
2579
2584
|
const tsLibraryGeneratorOptions = {
|
|
2580
2585
|
...schema,
|
|
2581
2586
|
platform: "neutral",
|
|
@@ -2616,9 +2621,9 @@ var generator_default3 = withRunGenerator("TypeScript Library Creator (Neutral P
|
|
|
2616
2621
|
});
|
|
2617
2622
|
|
|
2618
2623
|
// ../workspace-tools/src/generators/node-library/generator.ts
|
|
2619
|
-
import { formatFiles as formatFiles6, generateFiles as generateFiles3,
|
|
2624
|
+
import { formatFiles as formatFiles6, generateFiles as generateFiles3, names as names4, offsetFromRoot as offsetFromRoot4 } from "@nx/devkit";
|
|
2620
2625
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
2621
|
-
const filesDir =
|
|
2626
|
+
const filesDir = joinPaths(__dirname, "src", "generators", "node-library", "files");
|
|
2622
2627
|
const tsLibraryGeneratorOptions = {
|
|
2623
2628
|
platform: "node",
|
|
2624
2629
|
devDependencies: {
|
|
@@ -2663,7 +2668,7 @@ var generator_default4 = withRunGenerator("TypeScript Library Creator (NodeJs Pl
|
|
|
2663
2668
|
});
|
|
2664
2669
|
|
|
2665
2670
|
// ../workspace-tools/src/generators/preset/generator.ts
|
|
2666
|
-
import { addDependenciesToPackageJson as addDependenciesToPackageJson3, addProjectConfiguration as addProjectConfiguration2, formatFiles as formatFiles7, generateFiles as generateFiles4, joinPathFragments as
|
|
2671
|
+
import { addDependenciesToPackageJson as addDependenciesToPackageJson3, addProjectConfiguration as addProjectConfiguration2, formatFiles as formatFiles7, generateFiles as generateFiles4, joinPathFragments as joinPathFragments4, updateJson as updateJson2 } from "@nx/devkit";
|
|
2667
2672
|
import * as path6 from "node:path";
|
|
2668
2673
|
async function presetGeneratorFn(tree, options) {
|
|
2669
2674
|
const projectRoot = ".";
|
|
@@ -2881,14 +2886,14 @@ async function presetGeneratorFn(tree, options) {
|
|
|
2881
2886
|
"nx-cloud": "latest"
|
|
2882
2887
|
};
|
|
2883
2888
|
}
|
|
2884
|
-
await Promise.resolve(addDependenciesToPackageJson3(tree, dependencies, {},
|
|
2889
|
+
await Promise.resolve(addDependenciesToPackageJson3(tree, dependencies, {}, joinPathFragments4(projectRoot, "package.json")));
|
|
2885
2890
|
return null;
|
|
2886
2891
|
}
|
|
2887
2892
|
__name(presetGeneratorFn, "presetGeneratorFn");
|
|
2888
2893
|
var generator_default5 = withRunGenerator("Storm Workspace Preset Generator", presetGeneratorFn);
|
|
2889
2894
|
|
|
2890
2895
|
// ../workspace-tools/src/generators/release-version/generator.ts
|
|
2891
|
-
import { formatFiles as formatFiles8, joinPathFragments as
|
|
2896
|
+
import { formatFiles as formatFiles8, joinPathFragments as joinPathFragments5, output, readJson as readJson2, updateJson as updateJson3, writeJson as writeJson3 } from "@nx/devkit";
|
|
2892
2897
|
import { resolveLocalPackageDependencies as resolveLocalPackageJsonDependencies } from "@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies";
|
|
2893
2898
|
import { updateLockFile } from "@nx/js/src/generators/release-version/utils/update-lock-file";
|
|
2894
2899
|
|
|
@@ -3248,37 +3253,17 @@ var typescript_library_generator_untyped_default = defineUntypedSchema5({
|
|
|
3248
3253
|
enum: [
|
|
3249
3254
|
"neutral",
|
|
3250
3255
|
"node",
|
|
3256
|
+
"worker",
|
|
3251
3257
|
"browser"
|
|
3252
3258
|
]
|
|
3253
3259
|
},
|
|
3254
3260
|
$default: "neutral"
|
|
3255
3261
|
},
|
|
3256
|
-
|
|
3257
|
-
$schema: {
|
|
3258
|
-
title: "Dev Dependencies",
|
|
3259
|
-
type: "object",
|
|
3260
|
-
description: "The dev dependencies to install"
|
|
3261
|
-
}
|
|
3262
|
-
},
|
|
3263
|
-
dependencies: {
|
|
3264
|
-
$schema: {
|
|
3265
|
-
title: "Dependencies",
|
|
3266
|
-
type: "object",
|
|
3267
|
-
description: "The dependencies to install"
|
|
3268
|
-
}
|
|
3269
|
-
},
|
|
3270
|
-
peerDependencies: {
|
|
3271
|
-
$schema: {
|
|
3272
|
-
title: "Peer Dependencies",
|
|
3273
|
-
type: "object",
|
|
3274
|
-
description: "The peer dependencies to install"
|
|
3275
|
-
}
|
|
3276
|
-
},
|
|
3277
|
-
peerDependenciesMeta: {
|
|
3262
|
+
importPath: {
|
|
3278
3263
|
$schema: {
|
|
3279
|
-
title: "
|
|
3280
|
-
type: "
|
|
3281
|
-
description: "The
|
|
3264
|
+
title: "Import Path",
|
|
3265
|
+
type: "string",
|
|
3266
|
+
description: "The import path for the library"
|
|
3282
3267
|
}
|
|
3283
3268
|
},
|
|
3284
3269
|
tags: {
|
|
@@ -3288,41 +3273,6 @@ var typescript_library_generator_untyped_default = defineUntypedSchema5({
|
|
|
3288
3273
|
description: "The tags for the library"
|
|
3289
3274
|
}
|
|
3290
3275
|
},
|
|
3291
|
-
tsconfigOptions: {
|
|
3292
|
-
$schema: {
|
|
3293
|
-
title: "TypeScript Config (tsconfig.json) Options",
|
|
3294
|
-
type: "object",
|
|
3295
|
-
description: "The TypeScript configuration options"
|
|
3296
|
-
}
|
|
3297
|
-
},
|
|
3298
|
-
skipFormat: {
|
|
3299
|
-
$schema: {
|
|
3300
|
-
title: "Skip Format",
|
|
3301
|
-
type: "boolean",
|
|
3302
|
-
description: "Skip formatting"
|
|
3303
|
-
}
|
|
3304
|
-
},
|
|
3305
|
-
skipTsConfig: {
|
|
3306
|
-
$schema: {
|
|
3307
|
-
title: "Skip TsConfig",
|
|
3308
|
-
type: "boolean",
|
|
3309
|
-
description: "Skip TypeScript configuration"
|
|
3310
|
-
}
|
|
3311
|
-
},
|
|
3312
|
-
skipPackageJson: {
|
|
3313
|
-
$schema: {
|
|
3314
|
-
title: "Skip Package Json",
|
|
3315
|
-
type: "boolean",
|
|
3316
|
-
description: "Skip package.json"
|
|
3317
|
-
}
|
|
3318
|
-
},
|
|
3319
|
-
includeBabelRc: {
|
|
3320
|
-
$schema: {
|
|
3321
|
-
title: "Include Babel Rc",
|
|
3322
|
-
type: "boolean",
|
|
3323
|
-
description: "Include Babel configuration"
|
|
3324
|
-
}
|
|
3325
|
-
},
|
|
3326
3276
|
unitTestRunner: {
|
|
3327
3277
|
$schema: {
|
|
3328
3278
|
title: "Unit Test Runner",
|
|
@@ -3335,13 +3285,6 @@ var typescript_library_generator_untyped_default = defineUntypedSchema5({
|
|
|
3335
3285
|
description: "The unit test runner to use"
|
|
3336
3286
|
}
|
|
3337
3287
|
},
|
|
3338
|
-
linter: {
|
|
3339
|
-
$schema: {
|
|
3340
|
-
title: "Linter",
|
|
3341
|
-
type: "string",
|
|
3342
|
-
description: "The linter to use"
|
|
3343
|
-
}
|
|
3344
|
-
},
|
|
3345
3288
|
testEnvironment: {
|
|
3346
3289
|
$schema: {
|
|
3347
3290
|
title: "Test Environment",
|
|
@@ -3353,136 +3296,37 @@ var typescript_library_generator_untyped_default = defineUntypedSchema5({
|
|
|
3353
3296
|
description: "The test environment to use"
|
|
3354
3297
|
}
|
|
3355
3298
|
},
|
|
3356
|
-
importPath: {
|
|
3357
|
-
$schema: {
|
|
3358
|
-
title: "Import Path",
|
|
3359
|
-
type: "string",
|
|
3360
|
-
description: "The import path for the library"
|
|
3361
|
-
}
|
|
3362
|
-
},
|
|
3363
|
-
js: {
|
|
3364
|
-
$schema: {
|
|
3365
|
-
title: "JavaScript",
|
|
3366
|
-
type: "boolean",
|
|
3367
|
-
description: "Use JavaScript instead of TypeScript"
|
|
3368
|
-
}
|
|
3369
|
-
},
|
|
3370
3299
|
pascalCaseFiles: {
|
|
3371
3300
|
$schema: {
|
|
3372
3301
|
title: "Pascal Case Files",
|
|
3373
3302
|
type: "boolean",
|
|
3374
3303
|
description: "Use PascalCase for file names"
|
|
3375
|
-
}
|
|
3304
|
+
},
|
|
3305
|
+
$default: false
|
|
3376
3306
|
},
|
|
3377
3307
|
strict: {
|
|
3378
3308
|
$schema: {
|
|
3379
3309
|
title: "Strict",
|
|
3380
3310
|
type: "boolean",
|
|
3381
3311
|
description: "Enable strict mode"
|
|
3382
|
-
}
|
|
3312
|
+
},
|
|
3313
|
+
$default: true
|
|
3383
3314
|
},
|
|
3384
3315
|
publishable: {
|
|
3385
3316
|
$schema: {
|
|
3386
3317
|
title: "Publishable",
|
|
3387
3318
|
type: "boolean",
|
|
3388
3319
|
description: "Make the library publishable"
|
|
3389
|
-
}
|
|
3320
|
+
},
|
|
3321
|
+
$default: false
|
|
3390
3322
|
},
|
|
3391
3323
|
buildable: {
|
|
3392
3324
|
$schema: {
|
|
3393
3325
|
title: "Buildable",
|
|
3394
3326
|
type: "boolean",
|
|
3395
3327
|
description: "Make the library buildable"
|
|
3396
|
-
}
|
|
3397
|
-
|
|
3398
|
-
setParserOptionsProject: {
|
|
3399
|
-
$schema: {
|
|
3400
|
-
title: "Set Parser Options Project",
|
|
3401
|
-
type: "boolean",
|
|
3402
|
-
description: "Set parser options project"
|
|
3403
|
-
}
|
|
3404
|
-
},
|
|
3405
|
-
config: {
|
|
3406
|
-
$schema: {
|
|
3407
|
-
title: "Config",
|
|
3408
|
-
type: "string",
|
|
3409
|
-
enum: [
|
|
3410
|
-
"workspace",
|
|
3411
|
-
"project",
|
|
3412
|
-
"npm-scripts"
|
|
3413
|
-
],
|
|
3414
|
-
description: "The configuration type"
|
|
3415
|
-
}
|
|
3416
|
-
},
|
|
3417
|
-
compiler: {
|
|
3418
|
-
$schema: {
|
|
3419
|
-
title: "Compiler",
|
|
3420
|
-
type: "string",
|
|
3421
|
-
description: "The compiler to use"
|
|
3422
|
-
}
|
|
3423
|
-
},
|
|
3424
|
-
bundler: {
|
|
3425
|
-
$schema: {
|
|
3426
|
-
title: "Bundler",
|
|
3427
|
-
type: "string",
|
|
3428
|
-
description: "The bundler to use"
|
|
3429
|
-
}
|
|
3430
|
-
},
|
|
3431
|
-
skipTypeCheck: {
|
|
3432
|
-
$schema: {
|
|
3433
|
-
title: "Skip Type Check",
|
|
3434
|
-
type: "boolean",
|
|
3435
|
-
description: "Skip type checking"
|
|
3436
|
-
}
|
|
3437
|
-
},
|
|
3438
|
-
minimal: {
|
|
3439
|
-
$schema: {
|
|
3440
|
-
title: "Minimal",
|
|
3441
|
-
type: "boolean",
|
|
3442
|
-
description: "Create a minimal library"
|
|
3443
|
-
}
|
|
3444
|
-
},
|
|
3445
|
-
rootProject: {
|
|
3446
|
-
$schema: {
|
|
3447
|
-
title: "Root Project",
|
|
3448
|
-
type: "boolean",
|
|
3449
|
-
description: "Create a root project"
|
|
3450
|
-
}
|
|
3451
|
-
},
|
|
3452
|
-
simpleName: {
|
|
3453
|
-
$schema: {
|
|
3454
|
-
title: "Simple Name",
|
|
3455
|
-
type: "boolean",
|
|
3456
|
-
description: "Use a simple name for the library"
|
|
3457
|
-
}
|
|
3458
|
-
},
|
|
3459
|
-
addPlugin: {
|
|
3460
|
-
$schema: {
|
|
3461
|
-
title: "Add Plugin",
|
|
3462
|
-
type: "boolean",
|
|
3463
|
-
description: "Add a plugin to the library"
|
|
3464
|
-
}
|
|
3465
|
-
},
|
|
3466
|
-
useProjectJson: {
|
|
3467
|
-
$schema: {
|
|
3468
|
-
title: "Use Project Json",
|
|
3469
|
-
type: "boolean",
|
|
3470
|
-
description: "Use project.json"
|
|
3471
|
-
}
|
|
3472
|
-
},
|
|
3473
|
-
skipWorkspacesWarning: {
|
|
3474
|
-
$schema: {
|
|
3475
|
-
title: "Skip Workspaces Warning",
|
|
3476
|
-
type: "boolean",
|
|
3477
|
-
description: "Skip workspaces warning"
|
|
3478
|
-
}
|
|
3479
|
-
},
|
|
3480
|
-
useTscExecutor: {
|
|
3481
|
-
$schema: {
|
|
3482
|
-
title: "Use Tsc Executor",
|
|
3483
|
-
type: "boolean",
|
|
3484
|
-
description: "Use TSC executor"
|
|
3485
|
-
}
|
|
3328
|
+
},
|
|
3329
|
+
$default: true
|
|
3486
3330
|
}
|
|
3487
3331
|
});
|
|
3488
3332
|
|
|
@@ -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
|
|
3
|
+
var _chunk52L33AXEjs = require('./chunk-52L33AXE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk6Q4S7VSUjs = require('./chunk-6Q4S7VSU.js');
|
|
@@ -52,7 +52,7 @@ async function applicationGenerator(tree, schema) {
|
|
|
52
52
|
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`, config);
|
|
53
53
|
const options = await normalizeOptions(tree, schema, config);
|
|
54
54
|
const tasks = [];
|
|
55
|
-
tasks.push(await
|
|
55
|
+
tasks.push(await _chunk52L33AXEjs.generator_default.call(void 0, tree, {
|
|
56
56
|
...options,
|
|
57
57
|
skipFormat: true
|
|
58
58
|
}));
|