@cbnventures/nova 0.25.2 → 0.26.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.
Files changed (193) hide show
  1. package/build/package.json +10 -8
  2. package/build/src/cli/generate/github/workflows-blueprint-validate.js +1 -1
  3. package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -1
  4. package/build/src/cli/generate/github/workflows-blueprint.d.ts +6 -3
  5. package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -1
  6. package/build/src/cli/generate/github/workflows-blueprint.js +101 -22
  7. package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -1
  8. package/build/src/cli/index.js +79 -28
  9. package/build/src/cli/index.js.map +1 -1
  10. package/build/src/cli/recipe/github/gh-commands.d.ts +3 -0
  11. package/build/src/cli/recipe/github/gh-commands.d.ts.map +1 -0
  12. package/build/src/cli/recipe/github/gh-commands.js +28 -0
  13. package/build/src/cli/recipe/github/gh-commands.js.map +1 -0
  14. package/build/src/cli/recipe/github/sync-actions.d.ts +5 -0
  15. package/build/src/cli/recipe/github/sync-actions.d.ts.map +1 -0
  16. package/build/src/cli/recipe/github/sync-actions.js +103 -0
  17. package/build/src/cli/recipe/github/sync-actions.js.map +1 -0
  18. package/build/src/cli/recipe/github/sync-features.d.ts.map +1 -1
  19. package/build/src/cli/recipe/github/sync-features.js +46 -11
  20. package/build/src/cli/recipe/github/sync-features.js.map +1 -1
  21. package/build/src/cli/recipe/github/sync-labels.d.ts +5 -0
  22. package/build/src/cli/recipe/github/sync-labels.d.ts.map +1 -0
  23. package/build/src/cli/recipe/github/sync-labels.js +40 -0
  24. package/build/src/cli/recipe/github/sync-labels.js.map +1 -0
  25. package/build/src/cli/recipe/github/sync-policies.d.ts.map +1 -1
  26. package/build/src/cli/recipe/github/sync-policies.js +89 -10
  27. package/build/src/cli/recipe/github/sync-policies.js.map +1 -1
  28. package/build/src/cli/recipe/github/sync-rulesets.d.ts +5 -0
  29. package/build/src/cli/recipe/github/sync-rulesets.d.ts.map +1 -0
  30. package/build/src/cli/recipe/github/sync-rulesets.js +137 -0
  31. package/build/src/cli/recipe/github/sync-rulesets.js.map +1 -0
  32. package/build/src/cli/recipe/github/sync-security.d.ts +5 -0
  33. package/build/src/cli/recipe/github/sync-security.d.ts.map +1 -0
  34. package/build/src/cli/recipe/github/sync-security.js +69 -0
  35. package/build/src/cli/recipe/github/sync-security.js.map +1 -0
  36. package/build/src/cli/recipe/index.d.ts.map +1 -1
  37. package/build/src/cli/recipe/index.js +20 -0
  38. package/build/src/cli/recipe/index.js.map +1 -1
  39. package/build/src/cli/recipe/package-json/sync-environment.d.ts.map +1 -1
  40. package/build/src/cli/recipe/package-json/sync-environment.js +16 -15
  41. package/build/src/cli/recipe/package-json/sync-environment.js.map +1 -1
  42. package/build/src/cli/scaffold/docs/docusaurus.d.ts +2 -1
  43. package/build/src/cli/scaffold/docs/docusaurus.d.ts.map +1 -1
  44. package/build/src/cli/scaffold/docs/docusaurus.js +41 -1
  45. package/build/src/cli/scaffold/docs/docusaurus.js.map +1 -1
  46. package/build/src/cli/scaffold/starter/base.d.ts.map +1 -1
  47. package/build/src/cli/scaffold/starter/base.js +57 -6
  48. package/build/src/cli/scaffold/starter/base.js.map +1 -1
  49. package/build/src/cli/utility/changelog.d.ts +1 -0
  50. package/build/src/cli/utility/changelog.d.ts.map +1 -1
  51. package/build/src/cli/utility/changelog.js +183 -67
  52. package/build/src/cli/utility/changelog.js.map +1 -1
  53. package/build/src/cli/utility/initialize.d.ts.map +1 -1
  54. package/build/src/cli/utility/initialize.js +133 -45
  55. package/build/src/cli/utility/initialize.js.map +1 -1
  56. package/build/src/cli/utility/run-scripts.d.ts +5 -5
  57. package/build/src/cli/utility/run-scripts.d.ts.map +1 -1
  58. package/build/src/cli/utility/run-scripts.js +28 -252
  59. package/build/src/cli/utility/run-scripts.js.map +1 -1
  60. package/build/src/cli/utility/transpile.d.ts.map +1 -1
  61. package/build/src/cli/utility/transpile.js +23 -5
  62. package/build/src/cli/utility/transpile.js.map +1 -1
  63. package/build/src/cli/utility/type-check.d.ts +2 -4
  64. package/build/src/cli/utility/type-check.d.ts.map +1 -1
  65. package/build/src/cli/utility/type-check.js +13 -54
  66. package/build/src/cli/utility/type-check.js.map +1 -1
  67. package/build/src/cli/utility/version.d.ts.map +1 -1
  68. package/build/src/cli/utility/version.js +0 -12
  69. package/build/src/cli/utility/version.js.map +1 -1
  70. package/build/src/lib/corepack.d.ts +5 -0
  71. package/build/src/lib/corepack.d.ts.map +1 -0
  72. package/build/src/lib/corepack.js +26 -0
  73. package/build/src/lib/corepack.js.map +1 -0
  74. package/build/src/lib/item.d.ts.map +1 -1
  75. package/build/src/lib/item.js +4 -1
  76. package/build/src/lib/item.js.map +1 -1
  77. package/build/src/lib/nova-config.d.ts +8 -0
  78. package/build/src/lib/nova-config.d.ts.map +1 -1
  79. package/build/src/lib/nova-config.js +329 -7
  80. package/build/src/lib/nova-config.js.map +1 -1
  81. package/build/src/lib/regex.d.ts +7 -0
  82. package/build/src/lib/regex.d.ts.map +1 -1
  83. package/build/src/lib/regex.js +8 -1
  84. package/build/src/lib/regex.js.map +1 -1
  85. package/build/src/lib/release-history.d.ts +5 -0
  86. package/build/src/lib/release-history.d.ts.map +1 -0
  87. package/build/src/lib/release-history.js +86 -0
  88. package/build/src/lib/release-history.js.map +1 -0
  89. package/build/src/lib/run-scripts.d.ts +10 -0
  90. package/build/src/lib/run-scripts.d.ts.map +1 -0
  91. package/build/src/lib/run-scripts.js +310 -0
  92. package/build/src/lib/run-scripts.js.map +1 -0
  93. package/build/src/lib/scaffold.d.ts +7 -2
  94. package/build/src/lib/scaffold.d.ts.map +1 -1
  95. package/build/src/lib/scaffold.js +398 -53
  96. package/build/src/lib/scaffold.js.map +1 -1
  97. package/build/src/lib/type-check.d.ts +3 -0
  98. package/build/src/lib/type-check.d.ts.map +1 -0
  99. package/build/src/lib/type-check.js +69 -0
  100. package/build/src/lib/type-check.js.map +1 -0
  101. package/build/src/presets/tsconfig/dx-strict.json +0 -1
  102. package/build/src/presets/tsconfig/fw-homebridge.json +11 -0
  103. package/build/src/rules/eslint/regex/no-regex-literals.d.ts +1 -0
  104. package/build/src/rules/eslint/regex/no-regex-literals.d.ts.map +1 -1
  105. package/build/src/rules/eslint/regex/no-regex-literals.js +20 -1
  106. package/build/src/rules/eslint/regex/no-regex-literals.js.map +1 -1
  107. package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts +1 -0
  108. package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts.map +1 -1
  109. package/build/src/rules/eslint/typescript/no-shared-type-import.js +19 -1
  110. package/build/src/rules/eslint/typescript/no-shared-type-import.js.map +1 -1
  111. package/build/src/toolkit/index.d.ts +1 -0
  112. package/build/src/toolkit/index.d.ts.map +1 -1
  113. package/build/src/toolkit/index.js +1 -0
  114. package/build/src/toolkit/index.js.map +1 -1
  115. package/build/src/toolkit/vitest-setup.d.ts +6 -0
  116. package/build/src/toolkit/vitest-setup.d.ts.map +1 -0
  117. package/build/src/toolkit/vitest-setup.js +21 -0
  118. package/build/src/toolkit/vitest-setup.js.map +1 -0
  119. package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +4 -4
  120. package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +67 -3
  121. package/build/src/types/cli/recipe/github/gh-commands.d.ts +34 -0
  122. package/build/src/types/cli/recipe/github/sync-actions.d.ts +43 -0
  123. package/build/src/types/cli/recipe/github/sync-features.d.ts +16 -2
  124. package/build/src/types/cli/recipe/github/sync-labels.d.ts +36 -0
  125. package/build/src/types/cli/recipe/github/sync-policies.d.ts +14 -2
  126. package/build/src/types/cli/recipe/github/sync-rulesets.d.ts +71 -0
  127. package/build/src/types/cli/recipe/github/sync-security.d.ts +34 -0
  128. package/build/src/types/cli/recipe/package-json/sync-environment.d.ts +3 -0
  129. package/build/src/types/cli/scaffold/app/expressjs.d.ts +3 -0
  130. package/build/src/types/cli/scaffold/app/nextjs.d.ts +3 -0
  131. package/build/src/types/cli/scaffold/app/vite.d.ts +3 -0
  132. package/build/src/types/cli/scaffold/app/workers.d.ts +3 -0
  133. package/build/src/types/cli/scaffold/docs/docusaurus.d.ts +15 -0
  134. package/build/src/types/cli/scaffold/starter/base.d.ts +11 -0
  135. package/build/src/types/cli/utility/changelog.d.ts +87 -26
  136. package/build/src/types/cli/utility/initialize.d.ts +39 -29
  137. package/build/src/types/cli/utility/run-scripts.d.ts +22 -174
  138. package/build/src/types/cli/utility/transpile.d.ts +9 -1
  139. package/build/src/types/cli/utility/type-check.d.ts +9 -71
  140. package/build/src/types/cli/utility/version.d.ts +1 -7
  141. package/build/src/types/lib/corepack.d.ts +19 -0
  142. package/build/src/types/lib/nova-config.d.ts +256 -23
  143. package/build/src/types/lib/regex.d.ts +42 -0
  144. package/build/src/types/lib/release-history.d.ts +57 -0
  145. package/build/src/types/lib/run-scripts.d.ts +264 -0
  146. package/build/src/types/lib/scaffold.d.ts +187 -10
  147. package/build/src/types/lib/type-check.d.ts +102 -0
  148. package/build/src/types/rules/eslint/regex/no-regex-literals.d.ts +21 -0
  149. package/build/src/types/rules/eslint/typescript/no-shared-type-import.d.ts +21 -0
  150. package/build/src/types/shared.d.ts +264 -22
  151. package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +4 -0
  152. package/build/src/types/tests/cli/index.test.d.ts +258 -0
  153. package/build/src/types/tests/cli/recipe/package-json/normalize-tooling.test.d.ts +27 -0
  154. package/build/src/types/tests/cli/scaffold/app/expressjs.test.d.ts +4 -0
  155. package/build/src/types/tests/cli/scaffold/app/nextjs.test.d.ts +4 -0
  156. package/build/src/types/tests/cli/scaffold/app/vite.test.d.ts +48 -0
  157. package/build/src/types/tests/cli/scaffold/app/workers.test.d.ts +4 -0
  158. package/build/src/types/tests/cli/scaffold/docs/docusaurus.test.d.ts +10 -2
  159. package/build/src/types/tests/cli/utility/changelog.test.d.ts +99 -0
  160. package/build/src/types/tests/cli/utility/initialize.test.d.ts +43 -0
  161. package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +29 -0
  162. package/build/src/types/tests/cli/utility/transpile.test.d.ts +28 -0
  163. package/build/src/types/tests/cli/utility/type-check.test.d.ts +33 -0
  164. package/build/src/types/tests/lib/nova-config.test.d.ts +19 -19
  165. package/build/src/types/tests/lib/regex.test.d.ts +7 -0
  166. package/build/src/types/tests/lib/release-history.test.d.ts +94 -0
  167. package/build/src/types/tests/lib/scaffold.test.d.ts +88 -0
  168. package/build/src/types/tests/rules/eslint/regex/no-regex-literals.test.d.ts +46 -0
  169. package/build/src/types/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts +46 -0
  170. package/build/src/types/tests/scaffold-output-contract.test.d.ts +104 -0
  171. package/build/src/types/tests/scaffold-template-source.test.d.ts +42 -0
  172. package/build/src/types/tests/toolkit/vitest-setup.test.d.ts +36 -0
  173. package/build/src/types/tests/tsconfig-presets.test.d.ts +81 -0
  174. package/build/src/types/toolkit/vitest-setup.d.ts +24 -0
  175. package/build/templates/generators/github/workflows/publish/base.yml +1 -1
  176. package/build/templates/generators/github/workflows/publish/targets/cloudflare-workers.yml +1 -1
  177. package/build/templates/generators/must-haves/agent-conventions/PROJECT_RULES.md +11 -11
  178. package/build/templates/generators/must-haves/agent-conventions/conventions/documentation.md +4 -4
  179. package/build/templates/scaffold/app/express/package.json +2 -2
  180. package/build/templates/scaffold/app/express/tsconfig.json +1 -0
  181. package/build/templates/scaffold/app/nextjs/package.json +9 -10
  182. package/build/templates/scaffold/app/nextjs/tsconfig.json +3 -2
  183. package/build/templates/scaffold/app/vite/package.json +3 -3
  184. package/build/templates/scaffold/app/workers/package.json +4 -4
  185. package/build/templates/scaffold/app/workers/wrangler.toml +1 -1
  186. package/build/templates/scaffold/docs/docusaurus/docusaurus.config.ts +14 -12
  187. package/build/templates/scaffold/docs/docusaurus/package.json +13 -9
  188. package/build/templates/scaffold/docs/docusaurus/src/pages/index.mdx +8 -0
  189. package/build/templates/scaffold/docs/docusaurus/tsconfig.json +11 -5
  190. package/build/templates/scaffold/docs/docusaurus/{vitest.config.ts → vitest.config.mts} +11 -0
  191. package/build/templates/scaffold/docs/docusaurus/vitest.setup.ts +5 -14
  192. package/package.json +10 -8
  193. /package/build/templates/scaffold/docs/docusaurus/docs/{intro.md → intro.mdx} +0 -0
@@ -0,0 +1,81 @@
1
+ import type { Dirent } from 'node:fs';
2
+
3
+ import type { Diagnostic } from 'typescript';
4
+
5
+ /**
6
+ * Tests - Tsconfig Presets.
7
+ *
8
+ * @since 0.26.0
9
+ */
10
+ export type Tests_TsconfigPresets_CurrentFilePath = string;
11
+
12
+ export type Tests_TsconfigPresets_CurrentDirectory = string;
13
+
14
+ export type Tests_TsconfigPresets_PackageDirectory = string;
15
+
16
+ export type Tests_TsconfigPresets_SourcePresetDirectory = string;
17
+
18
+ export type Tests_TsconfigPresets_PackageJsonPath = string;
19
+
20
+ export type Tests_TsconfigPresets_PackageJsonText = string;
21
+
22
+ export type Tests_TsconfigPresets_PackageJson_Exports = Record<string, unknown>;
23
+
24
+ export type Tests_TsconfigPresets_PackageJson = {
25
+ exports?: Tests_TsconfigPresets_PackageJson_Exports;
26
+ };
27
+
28
+ export type Tests_TsconfigPresets_PackageExports = Tests_TsconfigPresets_PackageJson_Exports;
29
+
30
+ export type Tests_TsconfigPresets_PresetExportPrefix = string;
31
+
32
+ export type Tests_TsconfigPresets_PresetBuildPrefix = string;
33
+
34
+ export type Tests_TsconfigPresets_SourcePresetDirectoryEntries = Dirent[];
35
+
36
+ export type Tests_TsconfigPresets_SourcePresetFilenames = string[];
37
+
38
+ export type Tests_TsconfigPresets_PresetExportEntry = [string, unknown];
39
+
40
+ export type Tests_TsconfigPresets_PresetExportEntries = Tests_TsconfigPresets_PresetExportEntry[];
41
+
42
+ export type Tests_TsconfigPresets_ExportedPresetFilenames = string[];
43
+
44
+ export type Tests_TsconfigPresets_ExportSubpath = string;
45
+
46
+ export type Tests_TsconfigPresets_ExportTarget = unknown;
47
+
48
+ export type Tests_TsconfigPresets_PresetFilename = string;
49
+
50
+ export type Tests_TsconfigPresets_ExpectedExportTarget = string;
51
+
52
+ export type Tests_TsconfigPresets_SourcePresetFilename = string;
53
+
54
+ export type Tests_TsconfigPresets_SourcePresetPath = string;
55
+
56
+ export type Tests_TsconfigPresets_ReadResult = {
57
+ config?: Record<string, unknown>;
58
+ error?: Diagnostic;
59
+ };
60
+
61
+ export type Tests_TsconfigPresets_ReadDiagnosticMessage = string;
62
+
63
+ export type Tests_TsconfigPresets_PresetConfig = Record<string, unknown>;
64
+
65
+ export type Tests_TsconfigPresets_CompilerOptions = unknown;
66
+
67
+ export type Tests_TsconfigPresets_ConversionResult_Errors = Diagnostic[];
68
+
69
+ export type Tests_TsconfigPresets_ConversionResult = {
70
+ errors: Tests_TsconfigPresets_ConversionResult_Errors;
71
+ };
72
+
73
+ export type Tests_TsconfigPresets_Diagnostic = Diagnostic;
74
+
75
+ export type Tests_TsconfigPresets_DiagnosticMessage = string;
76
+
77
+ export type Tests_TsconfigPresets_TSConfigPresetContract_ExportsEverySourcePresetWithoutStalePublicEntries_SourcePresetCount = number;
78
+
79
+ export type Tests_TsconfigPresets_TSConfigPresetContract_LoadsEverySourcePresetThroughTypeScriptWithoutConfigurationDiagnostics_Diagnostics = string[];
80
+
81
+ export type Tests_TsconfigPresets_TSConfigPresetContract_MapsEveryPublicExportToItsBuildCopy_Mismatches = string[];
@@ -0,0 +1,24 @@
1
+ import type { vi } from 'vitest';
2
+
3
+ /**
4
+ * Toolkit - Vitest Setup - Register.
5
+ *
6
+ * @since 0.26.0
7
+ */
8
+ export type Toolkit_VitestSetup_Runner_Register_Vitest_AfterEach_Callback = () => void;
9
+
10
+ export type Toolkit_VitestSetup_Runner_Register_Vitest_AfterEach = (callback: Toolkit_VitestSetup_Runner_Register_Vitest_AfterEach_Callback) => void;
11
+
12
+ export type Toolkit_VitestSetup_Runner_Register_Vitest_BeforeEach_Callback = () => void;
13
+
14
+ export type Toolkit_VitestSetup_Runner_Register_Vitest_BeforeEach = (callback: Toolkit_VitestSetup_Runner_Register_Vitest_BeforeEach_Callback) => void;
15
+
16
+ export type Toolkit_VitestSetup_Runner_Register_Vitest_Vi = Pick<typeof vi, 'restoreAllMocks' | 'spyOn'>;
17
+
18
+ export type Toolkit_VitestSetup_Runner_Register_Vitest = {
19
+ afterEach: Toolkit_VitestSetup_Runner_Register_Vitest_AfterEach;
20
+ beforeEach: Toolkit_VitestSetup_Runner_Register_Vitest_BeforeEach;
21
+ vi: Toolkit_VitestSetup_Runner_Register_Vitest_Vi;
22
+ };
23
+
24
+ export type Toolkit_VitestSetup_Runner_Register_Returns = void;
@@ -44,7 +44,7 @@ jobs:
44
44
 
45
45
  - name: "Install packages"
46
46
  run: |
47
- npm install -g npm@latest
47
+ corepack enable npm
48
48
  npm install
49
49
  working-directory: "${{ env.ROOT_DIR }}"
50
50
 
@@ -17,7 +17,7 @@ publish-cloudflare-workers-[__TARGET_ID__]:
17
17
 
18
18
  - name: "Install packages"
19
19
  run: |
20
- npm install -g npm@latest
20
+ corepack enable npm
21
21
  npm install
22
22
  working-directory: "${{ env.ROOT_DIR }}"
23
23
 
@@ -257,12 +257,13 @@ Commands for building and previewing the documentation site locally.
257
257
  <!--
258
258
  Step-by-step description of how a new version goes from code to release.
259
259
 
260
- 1. All changes committed, `git status --short` is clean.
261
- 2. Changelog consolidated, version bumped, build number recalculated (if applicable).
262
- 3. Commit with a thematic subject line listing 3-5 themes in imperative form (e.g. `Add reconnect action, bandwidth polish, persistent TOTP lockout, and docs screenshots`). The version pointer lives in the tag in step 4, not the subject.
263
- 4. Tag the commit (e.g. `v1.2.0`).
264
- 5. Push commit and tag.
265
- 6. GitHub Release triggers CI workflows.
260
+ 1. Run the project's clean install, check, and build gates.
261
+ 2. Preview and approve the command-generated changelog release before applying it.
262
+ 3. Run the changelog release to fold workspace entries, bump versions, stamp sentinels, and synchronize exact internal pins.
263
+ 4. Run check and build again.
264
+ 5. Use a separate concise thematic commit message; it is not the same text as the changelog block.
265
+ 6. Tag and push the release commit. The publish workflow trigger is project-config dependent; consult the generated workflow.
266
+ 7. Build the GitHub Release notes by combining the released workspace changelog files, retaining workspace names while omitting version/date headings.
266
267
  -->
267
268
 
268
269
  ### CI/CD Workflows
@@ -270,11 +271,10 @@ Step-by-step description of how a new version goes from code to release.
270
271
  <!--
271
272
  Map each GitHub Actions workflow to what it does and when it runs.
272
273
 
273
- | Workflow file | Trigger | What it does |
274
- |-----------------------------|-------------------|----------------------------------|
275
- | `publish-to-npm.yml` | Release published | Build and publish to npm |
276
- | `publish-to-docker-hub.yml` | Release published | Multi-arch Docker build and push |
277
- | `lock-inactive-issues.yml` | Weekly cron | Lock issues inactive > 30 days |
274
+ | Workflow file | Trigger | What it does |
275
+ |----------------------------|--------------------|------------------------------------------|
276
+ | Generated publish workflow | Project-configured | Build and publish the configured targets |
277
+ | `lock-inactive-issues.yml` | Weekly cron | Lock issues inactive > 30 days |
278
278
  -->
279
279
 
280
280
  ### Environments
@@ -209,14 +209,14 @@ Heading changes by page type:
209
209
  | Preset | Why Use This Preset? |
210
210
  | Quickstart | (no "Why" section needed) |
211
211
 
212
- Content is a bulleted list. Each item follows the pattern: [Feature/capability] so [benefit]. Use bullets (not numbered lists) because the reasons are independent and unordered — rearranging them does not change meaning.
212
+ Content is a numbered list. Each item follows the pattern: [Feature/capability] so [benefit]. Numbers make every page scan the same way; their order does not imply an execution sequence.
213
213
 
214
214
  ```mdx
215
215
  ## Why Use This Command?
216
216
 
217
- - Supports 13 open-source licenses so you can pick the right one from the config.
218
- - Auto-fills legal boilerplate so the license stays accurate when the year rolls over or ownership changes.
219
- - Pulls the license type, author name, and starting year directly from `nova.config.json`, eliminating manual edits.
217
+ 1. Supports 13 open-source licenses so you can pick the right one from the config.
218
+ 2. Auto-fills legal boilerplate so the license stays accurate when the year rolls over or ownership changes.
219
+ 3. Pulls the license type, author name, and starting year directly from `nova.config.json`, eliminating manual edits.
220
220
  ```
221
221
 
222
222
  ### Requirements
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "[__PROJECT_SLUG__]",
2
+ "name": "[__WORKSPACE_PACKAGE_NAME__]",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "type": "module",
@@ -15,6 +15,6 @@
15
15
  "@types/express": "5.0.2",
16
16
  "@types/node": "22.15.17",
17
17
  "tsx": "4.19.4",
18
- "typescript": "5.8.3"
18
+ "typescript": "6.0.3"
19
19
  }
20
20
  }
@@ -4,6 +4,7 @@
4
4
  "module": "nodenext",
5
5
  "moduleResolution": "nodenext",
6
6
  "outDir": "build",
7
+ "rootDir": "src",
7
8
  "strict": true,
8
9
  "esModuleInterop": true,
9
10
  "skipLibCheck": true,
@@ -1,22 +1,21 @@
1
1
  {
2
- "name": "[__PROJECT_SLUG__]",
2
+ "name": "[__WORKSPACE_PACKAGE_NAME__]",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",
7
7
  "build": "next build",
8
- "start": "next start",
9
- "lint": "next lint"
8
+ "start": "next start"
10
9
  },
11
10
  "dependencies": {
12
- "next": "15.3.2",
13
- "react": "19.1.0",
14
- "react-dom": "19.1.0"
11
+ "next": "16.3.4",
12
+ "react": "19.2.8",
13
+ "react-dom": "19.2.8"
15
14
  },
16
15
  "devDependencies": {
17
- "@types/node": "22.15.17",
18
- "@types/react": "19.1.3",
19
- "@types/react-dom": "19.1.3",
20
- "typescript": "5.8.3"
16
+ "@types/node": "24.9.1",
17
+ "@types/react": "19.2.18",
18
+ "@types/react-dom": "19.2.7",
19
+ "typescript": "6.0.3"
21
20
  }
22
21
  }
@@ -3,6 +3,7 @@
3
3
  "target": "ES2017",
4
4
  "lib": ["dom", "dom.iterable", "esnext"],
5
5
  "allowJs": true,
6
+ "incremental": true,
6
7
  "skipLibCheck": true,
7
8
  "strict": true,
8
9
  "noEmit": true,
@@ -11,7 +12,7 @@
11
12
  "moduleResolution": "bundler",
12
13
  "resolveJsonModule": true,
13
14
  "isolatedModules": true,
14
- "jsx": "preserve",
15
+ "jsx": "react-jsx",
15
16
  "plugins": [
16
17
  {
17
18
  "name": "next"
@@ -21,6 +22,6 @@
21
22
  "@/*": ["./src/*"]
22
23
  }
23
24
  },
24
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
25
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "build/types/**/*.ts", "build/dev/types/**/*.ts"],
25
26
  "exclude": ["node_modules"]
26
27
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "[__PROJECT_SLUG__]",
2
+ "name": "[__WORKSPACE_PACKAGE_NAME__]",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "type": "module",
@@ -11,7 +11,7 @@
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
13
  "@types/node": "22.15.17",
14
- "typescript": "5.8.3",
15
- "vite": "6.3.5"
14
+ "typescript": "6.0.3",
15
+ "vite": "6.4.3"
16
16
  }
17
17
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "[__PROJECT_SLUG__]",
2
+ "name": "[__WORKSPACE_PACKAGE_NAME__]",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "type": "module",
@@ -9,8 +9,8 @@
9
9
  "build": "tsc"
10
10
  },
11
11
  "devDependencies": {
12
- "@cloudflare/workers-types": "4.20250508.0",
13
- "typescript": "5.8.3",
14
- "wrangler": "4.14.4"
12
+ "@cloudflare/workers-types": "5.20260908.1",
13
+ "typescript": "6.0.3",
14
+ "wrangler": "4.130.0"
15
15
  }
16
16
  }
@@ -1,3 +1,3 @@
1
- name = "[__PROJECT_SLUG__]"
1
+ name = "[__WORKSPACE_PACKAGE_NAME__]"
2
2
  main = "src/index.ts"
3
3
  compatibility_date = "2025-05-08"
@@ -1,10 +1,10 @@
1
1
  import { NovaIdentity } from '@cbnventures/nova/toolkit';
2
2
 
3
- import type { Config } from '@docusaurus/types';
3
+ import type { DocusaurusNovaConfig } from '@cbnventures/docusaurus-preset-nova/types/config';
4
4
 
5
5
  const identity = new NovaIdentity().forDocs();
6
6
 
7
- const config: Config = {
7
+ const config: DocusaurusNovaConfig = {
8
8
  title: identity.title ?? 'Documentation',
9
9
  tagline: identity.tagline ?? 'Documentation',
10
10
  url: identity.url ?? 'https://example.com',
@@ -12,7 +12,12 @@ const config: Config = {
12
12
  organizationName: identity.organizationName ?? 'your-org',
13
13
  projectName: identity.projectName ?? '[__PROJECT_SLUG__]',
14
14
  onBrokenLinks: 'throw',
15
- onBrokenMarkdownLinks: 'warn',
15
+
16
+ markdown: {
17
+ hooks: {
18
+ onBrokenMarkdownLinks: 'warn',
19
+ },
20
+ },
16
21
 
17
22
  i18n: {
18
23
  defaultLocale: 'en',
@@ -22,15 +27,12 @@ const config: Config = {
22
27
  presets: [[
23
28
  '@cbnventures/docusaurus-preset-nova',
24
29
  {
25
- preset: 'foundry',
26
- colors: {
27
- primary: '#2563eb',
28
- accent: '#7c3aed',
29
- neutral: '#6b7280',
30
- },
31
- docs: {
32
- sidebarPath: './sidebars.ts',
33
- routeBasePath: 'docs',
30
+ preset: '[__DOCUSAURUS_PRESET__]',
31
+ plugins: {
32
+ docs: {
33
+ sidebarPath: './sidebars.ts',
34
+ routeBasePath: 'docs',
35
+ },
34
36
  },
35
37
  },
36
38
  ]],
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "[__PROJECT_SLUG__]",
2
+ "name": "[__WORKSPACE_PACKAGE_NAME__]",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -12,16 +12,20 @@
12
12
  "test": "vitest run"
13
13
  },
14
14
  "dependencies": {
15
- "@cbnventures/docusaurus-preset-nova": "0.25.2",
16
- "@docusaurus/core": "3.7.0",
17
- "react": "19.1.0",
18
- "react-dom": "19.1.0"
15
+ "@cbnventures/docusaurus-preset-nova": "0.26.0",
16
+ "@docusaurus/core": "3.10.2",
17
+ "react": "19.2.8",
18
+ "react-dom": "19.2.8"
19
19
  },
20
20
  "devDependencies": {
21
- "@cbnventures/nova": "0.25.2",
22
- "@docusaurus/types": "3.7.0",
21
+ "@cbnventures/nova": "0.26.0",
22
+ "@docusaurus/module-type-aliases": "3.10.2",
23
+ "@docusaurus/types": "3.10.2",
24
+ "@types/node": "24.9.1",
25
+ "@types/react": "19.2.18",
26
+ "@types/react-dom": "19.2.4",
23
27
  "glob": "13.0.6",
24
- "typescript": "5.8.3",
25
- "vitest": "4.1.3"
28
+ "typescript": "6.0.3",
29
+ "vitest": "4.1.11"
26
30
  }
27
31
  }
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: Home
3
+ description: Home page for the [__PROJECT_SLUG__] documentation.
4
+ ---
5
+
6
+ # [__PROJECT_SLUG__]
7
+
8
+ Welcome to the documentation.
@@ -1,8 +1,14 @@
1
1
  {
2
+ "extends": [
3
+ "@cbnventures/nova/presets/tsconfig/dx-essentials.json",
4
+ "@cbnventures/nova/presets/tsconfig/dx-strict.json",
5
+ "@cbnventures/nova/presets/tsconfig/fw-docusaurus.json"
6
+ ],
2
7
  "compilerOptions": {
3
- "module": "nodenext",
4
- "moduleResolution": "nodenext",
5
- "jsx": "react-jsx"
6
- },
7
- "extends": "@docusaurus/tsconfig"
8
+ "paths": {
9
+ "@site/*": [
10
+ "./*"
11
+ ]
12
+ }
13
+ }
8
14
  }
@@ -1,3 +1,6 @@
1
+ import { dirname } from 'node:path';
2
+ import { fileURLToPath } from 'node:url';
3
+
1
4
  import { defineConfig } from 'vitest/config';
2
5
 
3
6
  /**
@@ -9,7 +12,15 @@ import { defineConfig } from 'vitest/config';
9
12
  *
10
13
  * @since 0.20.0
11
14
  */
15
+ const currentFilePath = fileURLToPath(import.meta.url);
16
+ const rootDirectory = dirname(currentFilePath);
17
+
12
18
  export default defineConfig({
19
+ resolve: {
20
+ alias: {
21
+ '@site': rootDirectory,
22
+ },
23
+ },
13
24
  test: {
14
25
  setupFiles: ['./vitest.setup.ts'],
15
26
  include: ['src/tests/**/*.test.ts'],
@@ -1,3 +1,4 @@
1
+ import { VitestSetup } from '@cbnventures/nova/toolkit';
1
2
  import { afterEach, beforeEach, vi } from 'vitest';
2
3
 
3
4
  /**
@@ -9,18 +10,8 @@ import { afterEach, beforeEach, vi } from 'vitest';
9
10
  *
10
11
  * @since 0.20.0
11
12
  */
12
- beforeEach(() => {
13
- vi.spyOn(process.stdout, 'write').mockImplementation(() => true);
14
-
15
- vi.spyOn(process.stderr, 'write').mockImplementation(() => true);
16
-
17
- process.exitCode = undefined;
18
-
19
- return;
20
- });
21
-
22
- afterEach(() => {
23
- vi.restoreAllMocks();
24
-
25
- return;
13
+ VitestSetup.register({
14
+ afterEach,
15
+ beforeEach,
16
+ vi,
26
17
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbnventures/nova",
3
- "version": "0.25.2",
3
+ "version": "0.26.0",
4
4
  "description": "Scripts, templates, and project configuration for the common JavaScript and TypeScript developer",
5
5
  "keywords": [
6
6
  "eslint",
@@ -58,6 +58,7 @@
58
58
  "./presets/tsconfig/fw-astro.json": "./build/src/presets/tsconfig/fw-astro.json",
59
59
  "./presets/tsconfig/fw-docusaurus.json": "./build/src/presets/tsconfig/fw-docusaurus.json",
60
60
  "./presets/tsconfig/fw-expressjs.json": "./build/src/presets/tsconfig/fw-expressjs.json",
61
+ "./presets/tsconfig/fw-homebridge.json": "./build/src/presets/tsconfig/fw-homebridge.json",
61
62
  "./presets/tsconfig/fw-nextjs.json": "./build/src/presets/tsconfig/fw-nextjs.json",
62
63
  "./presets/tsconfig/runtime-browser.json": "./build/src/presets/tsconfig/runtime-browser.json",
63
64
  "./presets/tsconfig/runtime-cloudflare-workers.json": "./build/src/presets/tsconfig/runtime-cloudflare-workers.json",
@@ -115,11 +116,12 @@
115
116
  "eslint-plugin-react": "7.37.5",
116
117
  "eslint-plugin-react-hooks": "7.0.1",
117
118
  "glob": "13.0.6",
118
- "globals": "17.4.0",
119
+ "globals": "17.11.0",
120
+ "minimatch": "10.2.6",
119
121
  "prompts": "2.4.2",
120
122
  "typescript-eslint": "8.58.1",
121
123
  "yaml": "2.8.3",
122
- "zod": "4.3.6"
124
+ "zod": "4.4.3"
123
125
  },
124
126
  "devDependencies": {
125
127
  "@commander-js/extra-typings": "14.0.0",
@@ -127,16 +129,16 @@
127
129
  "@types/node": "24.9.1",
128
130
  "@types/prompts": "2.4.9",
129
131
  "@typescript-eslint/rule-tester": "8.58.1",
130
- "eslint": "9.39.3",
132
+ "eslint": "9.39.5",
131
133
  "eslint-import-resolver-typescript": "4.4.4",
132
134
  "shx": "0.4.0",
133
- "typescript": "5.9.3",
134
- "vitest": "4.1.3"
135
+ "typescript": "6.0.3",
136
+ "vitest": "4.1.11"
135
137
  },
136
138
  "peerDependencies": {
137
139
  "eslint": "^9",
138
- "typescript": "^5",
139
- "vitest": "4.1.3"
140
+ "typescript": "^6",
141
+ "vitest": "^4"
140
142
  },
141
143
  "peerDependenciesMeta": {
142
144
  "eslint": {