@book000/create-ts 0.2.101 → 0.2.103

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
@@ -64,6 +64,8 @@ Every project gets `tsconfig.json`, `.prettierrc.yml`, `eslint.config.mjs`, `ren
64
64
 
65
65
  Inside the generated project, `pnpm run lint`, `pnpm run test` (with `--test`), `pnpm start` and `pnpm run dev` are available.
66
66
 
67
+ The `fastify` test script enables Node.js VM modules so Jest can load ESM dependencies used by request injection. It requires Node.js v24.9 or later; the template pins a compatible version in `engines.node`.
68
+
67
69
  ## Development
68
70
 
69
71
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@book000/create-ts",
3
- "version": "0.2.101",
3
+ "version": "0.2.103",
4
4
  "description": "Create book000-style TypeScript projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,5 @@
1
+ import type { InspectContext } from 'node:util'
2
+
3
+ declare module 'node:util' {
4
+ export type InspectOptionsStylized = InspectContext
5
+ }
@@ -6,6 +6,6 @@
6
6
  "generate-schema": "typescript-json-schema --required src/config.ts ConfigInterface -o schema/Configuration.json"
7
7
  },
8
8
  "depcheckIgnore": ["typescript-json-schema"],
9
- "src": ["src/main.ts", "src/config.ts", "src/discord.ts"],
9
+ "src": ["src/main.ts", "src/config.ts", "src/discord.ts", "src/node-util-compat.d.ts"],
10
10
  "testSrc": ["test/discord.test.ts", "tsconfig.test.json"]
11
11
  }
@@ -8,7 +8,7 @@
8
8
  "preinstall": "npx only-allow pnpm",
9
9
  "start": "tsx ./src/main.ts",
10
10
  "dev": "tsx watch ./src/main.ts",
11
- "test": "jest --runInBand --passWithNoTests --detectOpenHandles --forceExit",
11
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand --passWithNoTests --detectOpenHandles --forceExit",
12
12
  "lint": "run-z lint:prettier,lint:eslint,lint:tsc",
13
13
  "lint:prettier": "prettier --check src/",
14
14
  "lint:eslint": "eslint src/ -c eslint.config.mjs",