@wolfstar/create-http-framework 2.10.1 → 2.11.0-next-20261201155718

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/README.md CHANGED
@@ -170,4 +170,4 @@ The CLI runs this script automatically once at the end of scaffolding; re-run it
170
170
 
171
171
  ## Requirements
172
172
 
173
- - Node.js `>=20` (`>=24.17.0` for projects using the gateway)
173
+ - Node.js `>=24` (`>=24.17.0` for projects using the gateway)
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import { detect } from "package-manager-detector/detect";
10
10
  import Handlebars from "handlebars";
11
11
  import { fileURLToPath } from "node:url";
12
12
 
13
- //#region src/tools/fileSystem.ts
13
+ // src/tools/fileSystem.ts
14
14
  function directoryExists(path) {
15
15
  return existsSync(path) && statSync(path).isDirectory();
16
16
  }
@@ -33,8 +33,7 @@ function writeFile(filePath, content) {
33
33
  writeFileSync(filePath, content, "utf-8");
34
34
  }
35
35
 
36
- //#endregion
37
- //#region src/tools/options.ts
36
+ // src/tools/options.ts
38
37
  const PACKAGE_MANAGERS = [
39
38
  "npm",
40
39
  "yarn",
@@ -98,8 +97,7 @@ const TYPESCRIPT_RC_VERSION = "7.0.1-rc";
98
97
  /** The environment loaders `--env` can scaffold. `varlock` adds a starter `.env.schema` and derives `Env` from it. */
99
98
  const ENV_LOADERS = ["varlock"];
100
99
 
101
- //#endregion
102
- //#region src/tools/npmHelpers.ts
100
+ // src/tools/npmHelpers.ts
103
101
  async function fetchVersion(packageName) {
104
102
  const response = await fetch(`https://registry.npmjs.org/${packageName}/latest`);
105
103
  if (!response.ok) throw new Error(`Failed to resolve latest version for ${packageName}: ${response.status} ${response.statusText}`);
@@ -161,8 +159,7 @@ async function fetchDependencyVersions(selections) {
161
159
  return versions;
162
160
  }
163
161
 
164
- //#endregion
165
- //#region src/tools/packageManager.ts
162
+ // src/tools/packageManager.ts
166
163
  async function detectPackageManager() {
167
164
  const detected = await detect({ cwd: process.cwd() });
168
165
  if (detected?.name) return detected.name;
@@ -220,8 +217,7 @@ function runCommand(command, args, dir) {
220
217
  if (result.status !== 0) throw new Error(`Command "${command}" failed with exit code ${result.status ?? "unknown"}`);
221
218
  }
222
219
 
223
- //#endregion
224
- //#region src/tools/projectFiles.ts
220
+ // src/tools/projectFiles.ts
225
221
  const caret = (version) => `^${version}`;
226
222
  /** The compatibility version a generated project runs on: the default of `@wolfstar/schema`'s current latest version. */
227
223
  const GENERATED_COMPATIBILITY_VERSION = 6;
@@ -344,7 +340,7 @@ function packageJson(ctx) {
344
340
  dependencies: buildDependencies(ctx),
345
341
  ...ctx.varlockLoadPath ? { varlock: { loadPath: ctx.varlockLoadPath } } : {},
346
342
  ...Object.keys(devDependencies).length > 0 ? { devDependencies } : {},
347
- engines: { node: ctx.gateway ? ">=24.17.0" : ">=20" }
343
+ engines: { node: ctx.gateway ? ">=24.17.0" : ">=24" }
348
344
  });
349
345
  }
350
346
  const sharedCompilerOptions = {
@@ -541,8 +537,7 @@ function writeProjectFiles(targetDir, ctx) {
541
537
  return kept;
542
538
  }
543
539
 
544
- //#endregion
545
- //#region src/tools/templateProcessor.ts
540
+ // src/tools/templateProcessor.ts
546
541
  const templateDir = join(fileURLToPath(import.meta.url), "../..", "template");
547
542
  const baseDir = join(templateDir, "base");
548
543
  const featuresDir = join(templateDir, "features");
@@ -865,8 +860,7 @@ async function processTemplate(outputDir, requested, onKept) {
865
860
  return preserved;
866
861
  }
867
862
 
868
- //#endregion
869
- //#region src/tools/varlock.ts
863
+ // src/tools/varlock.ts
870
864
  function readPackageJson(directory) {
871
865
  try {
872
866
  const parsed = JSON.parse(readFileSync(join(directory, "package.json"), "utf-8"));
@@ -891,8 +885,7 @@ function detectExistingVarlock(directory) {
891
885
  };
892
886
  }
893
887
 
894
- //#endregion
895
- //#region src/index.ts
888
+ // src/index.ts
896
889
  function isValidPackageName(name) {
897
890
  return /^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(name);
898
891
  }
@@ -1443,5 +1436,4 @@ main().catch((error) => {
1443
1436
  process.exit(1);
1444
1437
  });
1445
1438
 
1446
- //#endregion
1447
1439
  export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wolfstar/create-http-framework",
3
- "version": "2.10.1",
3
+ "version": "2.11.0-next-20261201155718",
4
4
  "description": "Create a new WolfStar HTTP Framework bot project",
5
5
  "keywords": [
6
6
  "cli",