@cbnventures/nova 0.13.1 → 0.15.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.
- package/README.md +48 -0
- package/bin/nova.mjs +3 -0
- package/build/package.json +38 -32
- package/build/src/api/node-releases.d.ts +4 -4
- package/build/src/api/node-releases.d.ts.map +1 -1
- package/build/src/api/node-releases.js +31 -26
- package/build/src/api/node-releases.js.map +1 -1
- package/build/src/api/spdx-licenses.d.ts +4 -4
- package/build/src/api/spdx-licenses.d.ts.map +1 -1
- package/build/src/api/spdx-licenses.js +21 -18
- package/build/src/api/spdx-licenses.js.map +1 -1
- package/build/src/cli/generate/github/funding.d.ts +5 -0
- package/build/src/cli/generate/github/funding.d.ts.map +1 -0
- package/build/src/cli/generate/github/funding.js +68 -0
- package/build/src/cli/generate/github/funding.js.map +1 -0
- package/build/src/cli/generate/github/issue-template.d.ts +5 -0
- package/build/src/cli/generate/github/issue-template.d.ts.map +1 -0
- package/build/src/cli/generate/github/issue-template.js +267 -0
- package/build/src/cli/generate/github/issue-template.js.map +1 -0
- package/build/src/cli/generate/github/workflows.d.ts +10 -0
- package/build/src/cli/generate/github/workflows.d.ts.map +1 -0
- package/build/src/cli/generate/github/workflows.js +464 -0
- package/build/src/cli/generate/github/workflows.js.map +1 -0
- package/build/src/cli/generate/must-haves/agent-conventions.d.ts +5 -0
- package/build/src/cli/generate/must-haves/agent-conventions.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/agent-conventions.js +114 -0
- package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -0
- package/build/src/cli/generate/must-haves/dotenv.d.ts +12 -0
- package/build/src/cli/generate/must-haves/dotenv.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/dotenv.js +504 -0
- package/build/src/cli/generate/must-haves/dotenv.js.map +1 -0
- package/build/src/cli/generate/must-haves/editorconfig.d.ts +5 -0
- package/build/src/cli/generate/must-haves/editorconfig.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/editorconfig.js +37 -0
- package/build/src/cli/generate/must-haves/editorconfig.js.map +1 -0
- package/build/src/cli/generate/must-haves/gitignore.d.ts +13 -0
- package/build/src/cli/generate/must-haves/gitignore.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/gitignore.js +446 -0
- package/build/src/cli/generate/must-haves/gitignore.js.map +1 -0
- package/build/src/cli/generate/must-haves/license.d.ts +5 -0
- package/build/src/cli/generate/must-haves/license.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/license.js +131 -0
- package/build/src/cli/generate/must-haves/license.js.map +1 -0
- package/build/src/cli/generate/must-haves/read-me.d.ts +8 -0
- package/build/src/cli/generate/must-haves/read-me.d.ts.map +1 -0
- package/build/src/cli/generate/must-haves/read-me.js +255 -0
- package/build/src/cli/generate/must-haves/read-me.js.map +1 -0
- package/build/src/cli/index.js +421 -107
- package/build/src/cli/index.js.map +1 -1
- package/build/src/cli/recipe/index.d.ts +3 -0
- package/build/src/cli/recipe/index.d.ts.map +1 -0
- package/build/src/cli/recipe/index.js +57 -0
- package/build/src/cli/recipe/index.js.map +1 -0
- package/build/src/cli/recipe/package-json/cleanup.d.ts +8 -0
- package/build/src/cli/recipe/package-json/cleanup.d.ts.map +1 -0
- package/build/src/cli/recipe/package-json/cleanup.js +183 -0
- package/build/src/cli/recipe/package-json/cleanup.js.map +1 -0
- package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts +8 -0
- package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts.map +1 -0
- package/build/src/cli/recipe/package-json/normalize-artifacts.js +250 -0
- package/build/src/cli/recipe/package-json/normalize-artifacts.js.map +1 -0
- package/build/src/cli/recipe/package-json/normalize-bundler.d.ts +6 -0
- package/build/src/cli/recipe/package-json/normalize-bundler.d.ts.map +1 -0
- package/build/src/cli/recipe/package-json/normalize-bundler.js +146 -0
- package/build/src/cli/recipe/package-json/normalize-bundler.js.map +1 -0
- package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts +9 -0
- package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts.map +1 -0
- package/build/src/cli/recipe/package-json/normalize-dependencies.js +268 -0
- package/build/src/cli/recipe/package-json/normalize-dependencies.js.map +1 -0
- package/build/src/cli/recipe/package-json/normalize-modules.d.ts +6 -0
- package/build/src/cli/recipe/package-json/normalize-modules.d.ts.map +1 -0
- package/build/src/cli/recipe/package-json/normalize-modules.js +263 -0
- package/build/src/cli/recipe/package-json/normalize-modules.js.map +1 -0
- package/build/src/cli/recipe/package-json/normalize-tooling.d.ts +7 -0
- package/build/src/cli/recipe/package-json/normalize-tooling.d.ts.map +1 -0
- package/build/src/cli/recipe/package-json/normalize-tooling.js +163 -0
- package/build/src/cli/recipe/package-json/normalize-tooling.js.map +1 -0
- package/build/src/cli/recipe/package-json/sync-environment.d.ts +9 -0
- package/build/src/cli/recipe/package-json/sync-environment.d.ts.map +1 -0
- package/build/src/cli/recipe/package-json/sync-environment.js +283 -0
- package/build/src/cli/recipe/package-json/sync-environment.js.map +1 -0
- package/build/src/cli/recipe/package-json/sync-identity.d.ts +6 -0
- package/build/src/cli/recipe/package-json/sync-identity.d.ts.map +1 -0
- package/build/src/cli/recipe/package-json/sync-identity.js +224 -0
- package/build/src/cli/recipe/package-json/sync-identity.js.map +1 -0
- package/build/src/cli/recipe/package-json/sync-ownership.d.ts +6 -0
- package/build/src/cli/recipe/package-json/sync-ownership.d.ts.map +1 -0
- package/build/src/cli/recipe/package-json/sync-ownership.js +349 -0
- package/build/src/cli/recipe/package-json/sync-ownership.js.map +1 -0
- package/build/src/cli/scaffold/app/expressjs.d.ts +5 -0
- package/build/src/cli/scaffold/app/expressjs.d.ts.map +1 -0
- package/build/src/cli/scaffold/app/expressjs.js +8 -0
- package/build/src/cli/scaffold/app/expressjs.js.map +1 -0
- package/build/src/cli/scaffold/app/nextjs.d.ts +5 -0
- package/build/src/cli/scaffold/app/nextjs.d.ts.map +1 -0
- package/build/src/cli/scaffold/app/nextjs.js +8 -0
- package/build/src/cli/scaffold/app/nextjs.js.map +1 -0
- package/build/src/cli/scaffold/app/vite.d.ts +5 -0
- package/build/src/cli/scaffold/app/vite.d.ts.map +1 -0
- package/build/src/cli/scaffold/app/vite.js +8 -0
- package/build/src/cli/scaffold/app/vite.js.map +1 -0
- package/build/src/cli/scaffold/app/workers.d.ts +5 -0
- package/build/src/cli/scaffold/app/workers.d.ts.map +1 -0
- package/build/src/cli/scaffold/app/workers.js +8 -0
- package/build/src/cli/scaffold/app/workers.js.map +1 -0
- package/build/src/cli/scaffold/docs/docusaurus.d.ts +5 -0
- package/build/src/cli/scaffold/docs/docusaurus.d.ts.map +1 -0
- package/build/src/cli/scaffold/docs/docusaurus.js +8 -0
- package/build/src/cli/scaffold/docs/docusaurus.js.map +1 -0
- package/build/src/cli/scaffold/starter/base.d.ts +5 -0
- package/build/src/cli/scaffold/starter/base.d.ts.map +1 -0
- package/build/src/cli/scaffold/starter/base.js +132 -0
- package/build/src/cli/scaffold/starter/base.js.map +1 -0
- package/build/src/cli/utility/changelog.d.ts +3 -3
- package/build/src/cli/utility/changelog.d.ts.map +1 -1
- package/build/src/cli/utility/changelog.js +207 -173
- package/build/src/cli/utility/changelog.js.map +1 -1
- package/build/src/cli/utility/initialize.d.ts +6 -3
- package/build/src/cli/utility/initialize.d.ts.map +1 -1
- package/build/src/cli/utility/initialize.js +1194 -284
- package/build/src/cli/utility/initialize.js.map +1 -1
- package/build/src/cli/utility/run-recipes.d.ts +5 -0
- package/build/src/cli/utility/run-recipes.d.ts.map +1 -0
- package/build/src/cli/utility/run-recipes.js +43 -0
- package/build/src/cli/utility/run-recipes.js.map +1 -0
- package/build/src/cli/utility/run-scripts.d.ts +10 -0
- package/build/src/cli/utility/run-scripts.d.ts.map +1 -0
- package/build/src/cli/utility/run-scripts.js +257 -0
- package/build/src/cli/utility/run-scripts.js.map +1 -0
- package/build/src/cli/utility/transpile.d.ts +9 -0
- package/build/src/cli/utility/transpile.d.ts.map +1 -0
- package/build/src/cli/utility/transpile.js +64 -0
- package/build/src/cli/utility/transpile.js.map +1 -0
- package/build/src/cli/utility/type-check.d.ts +3 -3
- package/build/src/cli/utility/type-check.d.ts.map +1 -1
- package/build/src/cli/utility/type-check.js +26 -21
- package/build/src/cli/utility/type-check.js.map +1 -1
- package/build/src/cli/utility/version.d.ts +3 -3
- package/build/src/cli/utility/version.d.ts.map +1 -1
- package/build/src/cli/utility/version.js +126 -68
- package/build/src/cli/utility/version.js.map +1 -1
- package/build/src/lib/item.d.ts +31 -24
- package/build/src/lib/item.d.ts.map +1 -1
- package/build/src/lib/item.js +129 -39
- package/build/src/lib/item.js.map +1 -1
- package/build/src/lib/nova-config.d.ts +6 -5
- package/build/src/lib/nova-config.d.ts.map +1 -1
- package/build/src/lib/nova-config.js +252 -69
- package/build/src/lib/nova-config.js.map +1 -1
- package/build/src/lib/regex.d.ts +92 -26
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +92 -26
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/scaffold.d.ts +10 -0
- package/build/src/lib/scaffold.d.ts.map +1 -0
- package/build/src/lib/scaffold.js +535 -0
- package/build/src/lib/scaffold.js.map +1 -0
- package/build/src/lib/schema.d.ts +2 -9
- package/build/src/lib/schema.d.ts.map +1 -1
- package/build/src/lib/schema.js +6 -8
- package/build/src/lib/schema.js.map +1 -1
- package/build/src/lib/utility.d.ts +21 -18
- package/build/src/lib/utility.d.ts.map +1 -1
- package/build/src/lib/utility.js +176 -79
- package/build/src/lib/utility.js.map +1 -1
- package/build/src/lib/workflow-templates.d.ts +3 -0
- package/build/src/lib/workflow-templates.d.ts.map +1 -0
- package/build/src/lib/workflow-templates.js +187 -0
- package/build/src/lib/workflow-templates.js.map +1 -0
- package/build/src/presets/eslint/dx-code-style.d.ts +4 -0
- package/build/src/presets/eslint/dx-code-style.d.ts.map +1 -0
- package/build/src/presets/eslint/dx-code-style.js +523 -0
- package/build/src/presets/eslint/dx-code-style.js.map +1 -0
- package/build/src/presets/eslint/dx-ignore.d.ts +4 -0
- package/build/src/presets/eslint/dx-ignore.d.ts.map +1 -0
- package/build/src/presets/eslint/{dx-ignore.mjs → dx-ignore.js} +1 -1
- package/build/src/presets/eslint/dx-ignore.js.map +1 -0
- package/build/src/presets/eslint/fw-docusaurus.d.ts +4 -0
- package/build/src/presets/eslint/fw-docusaurus.d.ts.map +1 -0
- package/build/src/presets/eslint/fw-docusaurus.js +6 -0
- package/build/src/presets/eslint/fw-docusaurus.js.map +1 -0
- package/build/src/presets/eslint/fw-expressjs.d.ts +4 -0
- package/build/src/presets/eslint/fw-expressjs.d.ts.map +1 -0
- package/build/src/presets/eslint/{fw-expressjs.mjs → fw-expressjs.js} +3 -5
- package/build/src/presets/eslint/fw-expressjs.js.map +1 -0
- package/build/src/presets/eslint/fw-nextjs.d.ts +4 -0
- package/build/src/presets/eslint/fw-nextjs.d.ts.map +1 -0
- package/build/src/presets/eslint/{fw-nextjs.mjs → fw-nextjs.js} +3 -5
- package/build/src/presets/eslint/fw-nextjs.js.map +1 -0
- package/build/src/presets/eslint/index.d.ts +16 -0
- package/build/src/presets/eslint/index.d.ts.map +1 -0
- package/build/src/presets/eslint/index.js +16 -0
- package/build/src/presets/eslint/index.js.map +1 -0
- package/build/src/presets/eslint/lang-javascript.d.ts +4 -0
- package/build/src/presets/eslint/lang-javascript.d.ts.map +1 -0
- package/build/src/presets/eslint/lang-javascript.js +34 -0
- package/build/src/presets/eslint/lang-javascript.js.map +1 -0
- package/build/src/presets/eslint/lang-mdx.d.ts +4 -0
- package/build/src/presets/eslint/lang-mdx.d.ts.map +1 -0
- package/build/src/presets/eslint/{lang-mdx.mjs → lang-mdx.js} +4 -8
- package/build/src/presets/eslint/lang-mdx.js.map +1 -0
- package/build/src/presets/eslint/lang-typescript.d.ts +4 -0
- package/build/src/presets/eslint/lang-typescript.d.ts.map +1 -0
- package/build/src/presets/eslint/lang-typescript.js +148 -0
- package/build/src/presets/eslint/lang-typescript.js.map +1 -0
- package/build/src/presets/eslint/runtime-browser.d.ts +4 -0
- package/build/src/presets/eslint/runtime-browser.d.ts.map +1 -0
- package/build/src/presets/eslint/{env-web-worker.mjs → runtime-browser.js} +1 -1
- package/build/src/presets/eslint/runtime-browser.js.map +1 -0
- package/build/src/presets/eslint/runtime-cloudflare-workers.d.ts +4 -0
- package/build/src/presets/eslint/runtime-cloudflare-workers.d.ts.map +1 -0
- package/build/src/presets/eslint/runtime-cloudflare-workers.js +6 -0
- package/build/src/presets/eslint/runtime-cloudflare-workers.js.map +1 -0
- package/build/src/presets/eslint/runtime-edge.d.ts +4 -0
- package/build/src/presets/eslint/runtime-edge.d.ts.map +1 -0
- package/build/src/presets/eslint/{env-edge.mjs → runtime-edge.js} +1 -1
- package/build/src/presets/eslint/runtime-edge.js.map +1 -0
- package/build/src/presets/eslint/runtime-node.d.ts +4 -0
- package/build/src/presets/eslint/runtime-node.d.ts.map +1 -0
- package/build/src/presets/eslint/{env-node.mjs → runtime-node.js} +4 -4
- package/build/src/presets/eslint/runtime-node.js.map +1 -0
- package/build/src/presets/eslint/runtime-service-worker.d.ts +4 -0
- package/build/src/presets/eslint/runtime-service-worker.d.ts.map +1 -0
- package/build/src/presets/eslint/runtime-service-worker.js +3 -0
- package/build/src/presets/eslint/runtime-service-worker.js.map +1 -0
- package/build/src/presets/eslint/runtime-web-worker.d.ts +4 -0
- package/build/src/presets/eslint/runtime-web-worker.d.ts.map +1 -0
- package/build/src/presets/eslint/runtime-web-worker.js +3 -0
- package/build/src/presets/eslint/runtime-web-worker.js.map +1 -0
- package/build/src/presets/eslint/tool-vite.d.ts +4 -0
- package/build/src/presets/eslint/tool-vite.d.ts.map +1 -0
- package/build/src/presets/eslint/{tool-vite.mjs → tool-vite.js} +3 -5
- package/build/src/presets/eslint/tool-vite.js.map +1 -0
- package/build/src/presets/tsconfig/dx-strict.json +1 -0
- package/build/src/presets/tsconfig/runtime-cloudflare-workers.json +12 -0
- package/build/src/presets/tsconfig/{platform-cloudflare-workers.json → runtime-web-worker.json} +2 -2
- package/build/src/rules/eslint/conventions/no-default-export-declaration.d.ts +11 -0
- package/build/src/rules/eslint/conventions/no-default-export-declaration.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/no-default-export-declaration.js +73 -0
- package/build/src/rules/eslint/conventions/no-default-export-declaration.js.map +1 -0
- package/build/src/rules/eslint/conventions/no-implicit-boolean.d.ts +15 -0
- package/build/src/rules/eslint/conventions/no-implicit-boolean.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/no-implicit-boolean.js +140 -0
- package/build/src/rules/eslint/conventions/no-implicit-boolean.js.map +1 -0
- package/build/src/rules/eslint/conventions/require-explicit-return.d.ts +15 -0
- package/build/src/rules/eslint/conventions/require-explicit-return.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/require-explicit-return.js +184 -0
- package/build/src/rules/eslint/conventions/require-explicit-return.js.map +1 -0
- package/build/src/rules/eslint/conventions/require-hash-private.d.ts +12 -0
- package/build/src/rules/eslint/conventions/require-hash-private.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/require-hash-private.js +67 -0
- package/build/src/rules/eslint/conventions/require-hash-private.js.map +1 -0
- package/build/src/rules/eslint/conventions/require-kebab-case-filename.d.ts +14 -0
- package/build/src/rules/eslint/conventions/require-kebab-case-filename.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/require-kebab-case-filename.js +95 -0
- package/build/src/rules/eslint/conventions/require-kebab-case-filename.js.map +1 -0
- package/build/src/rules/eslint/conventions/require-naming-convention.d.ts +34 -0
- package/build/src/rules/eslint/conventions/require-naming-convention.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/require-naming-convention.js +382 -0
- package/build/src/rules/eslint/conventions/require-naming-convention.js.map +1 -0
- package/build/src/rules/eslint/conventions/require-undefined-init.d.ts +11 -0
- package/build/src/rules/eslint/conventions/require-undefined-init.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/require-undefined-init.js +71 -0
- package/build/src/rules/eslint/conventions/require-undefined-init.js.map +1 -0
- package/build/src/rules/eslint/conventions/switch-case-blocks.d.ts +13 -0
- package/build/src/rules/eslint/conventions/switch-case-blocks.d.ts.map +1 -0
- package/build/src/rules/eslint/conventions/switch-case-blocks.js +82 -0
- package/build/src/rules/eslint/conventions/switch-case-blocks.js.map +1 -0
- package/build/src/rules/eslint/formatting/no-complex-arrow-concise.d.ts +15 -0
- package/build/src/rules/eslint/formatting/no-complex-arrow-concise.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/no-complex-arrow-concise.js +166 -0
- package/build/src/rules/eslint/formatting/no-complex-arrow-concise.js.map +1 -0
- package/build/src/rules/eslint/formatting/no-multiline-strings.d.ts +15 -0
- package/build/src/rules/eslint/formatting/no-multiline-strings.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/no-multiline-strings.js +162 -0
- package/build/src/rules/eslint/formatting/no-multiline-strings.js.map +1 -0
- package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts +11 -0
- package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/no-raw-text-in-code.js +57 -0
- package/build/src/rules/eslint/formatting/no-raw-text-in-code.js.map +1 -0
- package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.d.ts +11 -0
- package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.js +55 -0
- package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.js.map +1 -0
- package/build/src/rules/eslint/formatting/require-import-order.d.ts +14 -0
- package/build/src/rules/eslint/formatting/require-import-order.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/require-import-order.js +187 -0
- package/build/src/rules/eslint/formatting/require-import-order.js.map +1 -0
- package/build/src/rules/eslint/formatting/require-multiline-condition-groups.d.ts +13 -0
- package/build/src/rules/eslint/formatting/require-multiline-condition-groups.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/require-multiline-condition-groups.js +138 -0
- package/build/src/rules/eslint/formatting/require-multiline-condition-groups.js.map +1 -0
- package/build/src/rules/eslint/formatting/require-multiline-conditions.d.ts +13 -0
- package/build/src/rules/eslint/formatting/require-multiline-conditions.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/require-multiline-conditions.js +94 -0
- package/build/src/rules/eslint/formatting/require-multiline-conditions.js.map +1 -0
- package/build/src/rules/eslint/formatting/require-padding-lines.d.ts +25 -0
- package/build/src/rules/eslint/formatting/require-padding-lines.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/require-padding-lines.js +309 -0
- package/build/src/rules/eslint/formatting/require-padding-lines.js.map +1 -0
- package/build/src/rules/eslint/formatting/require-ternary-parens.d.ts +11 -0
- package/build/src/rules/eslint/formatting/require-ternary-parens.d.ts.map +1 -0
- package/build/src/rules/eslint/formatting/require-ternary-parens.js +76 -0
- package/build/src/rules/eslint/formatting/require-ternary-parens.js.map +1 -0
- package/build/src/rules/eslint/index.d.ts +44 -5
- package/build/src/rules/eslint/index.d.ts.map +1 -1
- package/build/src/rules/eslint/index.js +44 -5
- package/build/src/rules/eslint/index.js.map +1 -1
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts +15 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js +176 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +26 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js +495 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts +12 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.js +144 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts +12 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js +97 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-private.d.ts +11 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-private.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-private.js +90 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-private.js.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-since.d.ts +11 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-since.d.ts.map +1 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js +88 -0
- package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js.map +1 -0
- package/build/src/rules/eslint/nova/no-logger-dev.d.ts +13 -0
- package/build/src/rules/eslint/nova/no-logger-dev.d.ts.map +1 -0
- package/build/src/rules/eslint/nova/no-logger-dev.js +112 -0
- package/build/src/rules/eslint/nova/no-logger-dev.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-assign-then-return.d.ts +11 -0
- package/build/src/rules/eslint/patterns/no-assign-then-return.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-assign-then-return.js +96 -0
- package/build/src/rules/eslint/patterns/no-assign-then-return.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-await-in-loop.d.ts +17 -0
- package/build/src/rules/eslint/patterns/no-await-in-loop.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-await-in-loop.js +103 -0
- package/build/src/rules/eslint/patterns/no-await-in-loop.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-boolean-var-for-if.d.ts +11 -0
- package/build/src/rules/eslint/patterns/no-boolean-var-for-if.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-boolean-var-for-if.js +100 -0
- package/build/src/rules/eslint/patterns/no-boolean-var-for-if.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-bracket-assignment.d.ts +11 -0
- package/build/src/rules/eslint/patterns/no-bracket-assignment.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-bracket-assignment.js +69 -0
- package/build/src/rules/eslint/patterns/no-bracket-assignment.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-bracket-method-call.d.ts +12 -0
- package/build/src/rules/eslint/patterns/no-bracket-method-call.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-bracket-method-call.js +86 -0
- package/build/src/rules/eslint/patterns/no-bracket-method-call.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-template-curly-in-string.d.ts +11 -0
- package/build/src/rules/eslint/patterns/no-template-curly-in-string.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-template-curly-in-string.js +77 -0
- package/build/src/rules/eslint/patterns/no-template-curly-in-string.js.map +1 -0
- package/build/src/rules/eslint/patterns/no-use-before-define.d.ts +15 -0
- package/build/src/rules/eslint/patterns/no-use-before-define.d.ts.map +1 -0
- package/build/src/rules/eslint/patterns/no-use-before-define.js +148 -0
- package/build/src/rules/eslint/patterns/no-use-before-define.js.map +1 -0
- package/build/src/rules/eslint/regex/no-regex-literal-flags.d.ts +11 -0
- package/build/src/rules/eslint/regex/no-regex-literal-flags.d.ts.map +1 -0
- package/build/src/rules/eslint/regex/no-regex-literal-flags.js +55 -0
- package/build/src/rules/eslint/regex/no-regex-literal-flags.js.map +1 -0
- package/build/src/rules/eslint/regex/no-regex-literals.d.ts +12 -0
- package/build/src/rules/eslint/regex/no-regex-literals.d.ts.map +1 -0
- package/build/src/rules/eslint/regex/no-regex-literals.js +72 -0
- package/build/src/rules/eslint/regex/no-regex-literals.js.map +1 -0
- package/build/src/rules/eslint/safety/no-script-url.d.ts +12 -0
- package/build/src/rules/eslint/safety/no-script-url.d.ts.map +1 -0
- package/build/src/rules/eslint/safety/no-script-url.js +71 -0
- package/build/src/rules/eslint/safety/no-script-url.js.map +1 -0
- package/build/src/rules/eslint/syntax/no-destructuring.d.ts +21 -0
- package/build/src/rules/eslint/syntax/no-destructuring.d.ts.map +1 -0
- package/build/src/rules/eslint/syntax/no-destructuring.js +219 -0
- package/build/src/rules/eslint/syntax/no-destructuring.js.map +1 -0
- package/build/src/rules/eslint/syntax/no-numeric-literals.d.ts +14 -0
- package/build/src/rules/eslint/syntax/no-numeric-literals.d.ts.map +1 -0
- package/build/src/rules/eslint/syntax/no-numeric-literals.js +108 -0
- package/build/src/rules/eslint/syntax/no-numeric-literals.js.map +1 -0
- package/build/src/rules/eslint/syntax/no-optional-chaining.d.ts +11 -0
- package/build/src/rules/eslint/syntax/no-optional-chaining.d.ts.map +1 -0
- package/build/src/rules/eslint/syntax/no-optional-chaining.js +51 -0
- package/build/src/rules/eslint/syntax/no-optional-chaining.js.map +1 -0
- package/build/src/rules/eslint/syntax/no-rest-params.d.ts +15 -0
- package/build/src/rules/eslint/syntax/no-rest-params.d.ts.map +1 -0
- package/build/src/rules/eslint/syntax/no-rest-params.js +158 -0
- package/build/src/rules/eslint/syntax/no-rest-params.js.map +1 -0
- package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.d.ts +11 -0
- package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.d.ts.map +1 -0
- package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.js +65 -0
- package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.js.map +1 -0
- package/build/src/rules/eslint/typescript/no-explicit-any.d.ts +11 -0
- package/build/src/rules/eslint/typescript/no-explicit-any.d.ts.map +1 -0
- package/build/src/rules/eslint/typescript/no-explicit-any.js +51 -0
- package/build/src/rules/eslint/typescript/no-explicit-any.js.map +1 -0
- package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts +16 -0
- package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts.map +1 -0
- package/build/src/rules/eslint/typescript/no-inline-type-annotation.js +186 -0
- package/build/src/rules/eslint/typescript/no-inline-type-annotation.js.map +1 -0
- package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts +12 -0
- package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts.map +1 -0
- package/build/src/rules/eslint/typescript/no-shared-type-import.js +71 -0
- package/build/src/rules/eslint/typescript/no-shared-type-import.js.map +1 -0
- package/build/src/rules/eslint/typescript/require-bracket-property-access.d.ts +12 -0
- package/build/src/rules/eslint/typescript/require-bracket-property-access.d.ts.map +1 -0
- package/build/src/rules/eslint/typescript/require-bracket-property-access.js +115 -0
- package/build/src/rules/eslint/typescript/require-bracket-property-access.js.map +1 -0
- package/build/src/rules/eslint/typescript/require-type-naming.d.ts +12 -0
- package/build/src/rules/eslint/typescript/require-type-naming.d.ts.map +1 -0
- package/build/src/rules/eslint/typescript/require-type-naming.js +98 -0
- package/build/src/rules/eslint/typescript/require-type-naming.js.map +1 -0
- package/build/src/toolkit/bootstrap.d.ts +13 -0
- package/build/src/toolkit/bootstrap.d.ts.map +1 -0
- package/build/src/toolkit/bootstrap.js +175 -0
- package/build/src/toolkit/bootstrap.js.map +1 -0
- package/build/src/toolkit/cli-header.d.ts +5 -4
- package/build/src/toolkit/cli-header.d.ts.map +1 -1
- package/build/src/toolkit/cli-header.js +77 -63
- package/build/src/toolkit/cli-header.js.map +1 -1
- package/build/src/toolkit/index.d.ts +1 -0
- package/build/src/toolkit/index.d.ts.map +1 -1
- package/build/src/toolkit/index.js +1 -0
- package/build/src/toolkit/index.js.map +1 -1
- package/build/src/toolkit/logger.d.ts +9 -8
- package/build/src/toolkit/logger.d.ts.map +1 -1
- package/build/src/toolkit/logger.js +51 -32
- package/build/src/toolkit/logger.js.map +1 -1
- package/build/src/toolkit/markdown-table.d.ts +6 -5
- package/build/src/toolkit/markdown-table.d.ts.map +1 -1
- package/build/src/toolkit/markdown-table.js +36 -20
- package/build/src/toolkit/markdown-table.js.map +1 -1
- package/build/src/types/api/node-releases.d.ts +51 -0
- package/build/src/types/api/spdx-licenses.d.ts +41 -0
- package/build/src/types/cli/generate/github/funding.d.ts +59 -0
- package/build/src/types/cli/generate/github/issue-template.d.ts +142 -0
- package/build/src/types/cli/generate/github/workflows.d.ts +336 -0
- package/build/src/types/cli/generate/must-haves/agent-conventions.d.ts +43 -0
- package/build/src/types/cli/generate/must-haves/dotenv.d.ts +414 -0
- package/build/src/types/cli/generate/must-haves/editorconfig.d.ts +33 -0
- package/build/src/types/cli/generate/must-haves/gitignore.d.ts +344 -0
- package/build/src/types/cli/generate/must-haves/license.d.ts +72 -0
- package/build/src/types/cli/generate/must-haves/read-me.d.ts +175 -0
- package/build/src/types/cli/index.d.ts +182 -0
- package/build/src/types/cli/recipe/index.d.ts +36 -0
- package/build/src/types/cli/recipe/package-json/cleanup.d.ts +125 -0
- package/build/src/types/cli/recipe/package-json/normalize-artifacts.d.ts +104 -0
- package/build/src/types/cli/recipe/package-json/normalize-bundler.d.ts +78 -0
- package/build/src/types/cli/recipe/package-json/normalize-dependencies.d.ts +150 -0
- package/build/src/types/cli/recipe/package-json/normalize-modules.d.ts +76 -0
- package/build/src/types/cli/recipe/package-json/normalize-tooling.d.ts +89 -0
- package/build/src/types/cli/recipe/package-json/sync-environment.d.ts +140 -0
- package/build/src/types/cli/recipe/package-json/sync-identity.d.ts +107 -0
- package/build/src/types/cli/recipe/package-json/sync-ownership.d.ts +152 -0
- package/build/src/types/cli/scaffold/app/expressjs.d.ts +21 -0
- package/build/src/types/cli/scaffold/app/nextjs.d.ts +21 -0
- package/build/src/types/cli/scaffold/app/vite.d.ts +21 -0
- package/build/src/types/cli/scaffold/app/workers.d.ts +21 -0
- package/build/src/types/cli/scaffold/docs/docusaurus.d.ts +21 -0
- package/build/src/types/cli/scaffold/starter/base.d.ts +57 -0
- package/build/src/types/cli/utility/changelog.d.ts +381 -0
- package/build/src/types/cli/utility/initialize.d.ts +1185 -0
- package/build/src/types/cli/utility/run-recipes.d.ts +25 -0
- package/build/src/types/cli/utility/run-scripts.d.ts +133 -0
- package/build/src/types/cli/utility/transpile.d.ts +90 -0
- package/build/src/types/cli/utility/type-check.d.ts +88 -0
- package/build/src/types/cli/utility/version.d.ts +286 -0
- package/build/src/types/fetch-response.d.ts +12 -0
- package/build/src/types/lib/item.d.ts +536 -0
- package/build/src/types/lib/nova-config.d.ts +421 -0
- package/build/src/types/lib/scaffold.d.ts +342 -0
- package/build/src/types/lib/utility.d.ts +486 -0
- package/build/src/types/lib/workflow-templates.d.ts +48 -0
- package/build/src/types/presets/eslint/dx-code-style.d.ts +8 -0
- package/build/src/types/presets/eslint/dx-ignore.d.ts +8 -0
- package/build/src/types/presets/eslint/fw-docusaurus.d.ts +8 -0
- package/build/src/types/presets/eslint/fw-expressjs.d.ts +8 -0
- package/build/src/types/presets/eslint/fw-nextjs.d.ts +8 -0
- package/build/src/types/presets/eslint/lang-javascript.d.ts +8 -0
- package/build/src/types/presets/eslint/lang-mdx.d.ts +8 -0
- package/build/src/types/presets/eslint/lang-typescript.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-browser.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-cloudflare-workers.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-edge.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-node.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-service-worker.d.ts +8 -0
- package/build/src/types/presets/eslint/runtime-web-worker.d.ts +8 -0
- package/build/src/types/presets/eslint/tool-vite.d.ts +8 -0
- package/build/src/types/rules/eslint/conventions/no-default-export-declaration.d.ts +32 -0
- package/build/src/types/rules/eslint/conventions/no-implicit-boolean.d.ts +72 -0
- package/build/src/types/rules/eslint/conventions/require-explicit-return.d.ts +73 -0
- package/build/src/types/rules/eslint/conventions/require-hash-private.d.ts +31 -0
- package/build/src/types/rules/eslint/conventions/require-kebab-case-filename.d.ts +64 -0
- package/build/src/types/rules/eslint/conventions/require-naming-convention.d.ts +265 -0
- package/build/src/types/rules/eslint/conventions/require-undefined-init.d.ts +30 -0
- package/build/src/types/rules/eslint/conventions/switch-case-blocks.d.ts +48 -0
- package/build/src/types/rules/eslint/formatting/no-complex-arrow-concise.d.ts +74 -0
- package/build/src/types/rules/eslint/formatting/no-multiline-strings.d.ts +104 -0
- package/build/src/types/rules/eslint/formatting/no-raw-text-in-code.d.ts +28 -0
- package/build/src/types/rules/eslint/formatting/no-ternary-in-template-literal.d.ts +26 -0
- package/build/src/types/rules/eslint/formatting/require-import-order.d.ts +91 -0
- package/build/src/types/rules/eslint/formatting/require-multiline-condition-groups.d.ts +64 -0
- package/build/src/types/rules/eslint/formatting/require-multiline-conditions.d.ts +52 -0
- package/build/src/types/rules/eslint/formatting/require-padding-lines.d.ts +212 -0
- package/build/src/types/rules/eslint/formatting/require-ternary-parens.d.ts +32 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-body.d.ts +56 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +302 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts +108 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts +61 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-private.d.ts +40 -0
- package/build/src/types/rules/eslint/jsdoc/require-jsdoc-since.d.ts +30 -0
- package/build/src/types/rules/eslint/nova/no-logger-dev.d.ts +60 -0
- package/build/src/types/rules/eslint/patterns/no-assign-then-return.d.ts +42 -0
- package/build/src/types/rules/eslint/patterns/no-await-in-loop.d.ts +87 -0
- package/build/src/types/rules/eslint/patterns/no-boolean-var-for-if.d.ts +48 -0
- package/build/src/types/rules/eslint/patterns/no-bracket-assignment.d.ts +34 -0
- package/build/src/types/rules/eslint/patterns/no-bracket-method-call.d.ts +46 -0
- package/build/src/types/rules/eslint/patterns/no-template-curly-in-string.d.ts +32 -0
- package/build/src/types/rules/eslint/patterns/no-use-before-define.d.ts +84 -0
- package/build/src/types/rules/eslint/regex/no-regex-literal-flags.d.ts +26 -0
- package/build/src/types/rules/eslint/regex/no-regex-literals.d.ts +40 -0
- package/build/src/types/rules/eslint/safety/no-script-url.d.ts +37 -0
- package/build/src/types/rules/eslint/syntax/no-destructuring.d.ts +131 -0
- package/build/src/types/rules/eslint/syntax/no-numeric-literals.d.ts +57 -0
- package/build/src/types/rules/eslint/syntax/no-optional-chaining.d.ts +26 -0
- package/build/src/types/rules/eslint/syntax/no-rest-params.d.ts +78 -0
- package/build/src/types/rules/eslint/typescript/no-catch-unknown-annotation.d.ts +30 -0
- package/build/src/types/rules/eslint/typescript/no-explicit-any.d.ts +26 -0
- package/build/src/types/rules/eslint/typescript/no-inline-type-annotation.d.ts +94 -0
- package/build/src/types/rules/eslint/typescript/no-shared-type-import.d.ts +43 -0
- package/build/src/types/rules/eslint/typescript/require-bracket-property-access.d.ts +53 -0
- package/build/src/types/rules/eslint/typescript/require-type-naming.d.ts +51 -0
- package/build/src/types/shared.d.ts +724 -0
- package/build/src/types/tests/api/node-releases.test.d.ts +14 -0
- package/build/src/types/tests/api/spdx-licenses.test.d.ts +18 -0
- package/build/src/types/tests/cli/generate/github/funding.test.d.ts +26 -0
- package/build/src/types/tests/cli/generate/github/issue-template.test.d.ts +14 -0
- package/build/src/types/tests/cli/generate/github/workflows.test.d.ts +38 -0
- package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +32 -0
- package/build/src/types/tests/cli/generate/must-haves/dotenv.test.d.ts +14 -0
- package/build/src/types/tests/cli/generate/must-haves/editorconfig.test.d.ts +22 -0
- package/build/src/types/tests/cli/generate/must-haves/gitignore.test.d.ts +14 -0
- package/build/src/types/tests/cli/generate/must-haves/license.test.d.ts +26 -0
- package/build/src/types/tests/cli/generate/must-haves/read-me.test.d.ts +26 -0
- package/build/src/types/tests/cli/recipe/package-json/cleanup.test.d.ts +42 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-artifacts.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-bundler.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts +40 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-modules.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/normalize-tooling.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/sync-environment.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/sync-identity.test.d.ts +32 -0
- package/build/src/types/tests/cli/recipe/package-json/sync-ownership.test.d.ts +32 -0
- package/build/src/types/tests/cli/scaffold/app/expressjs.test.d.ts +40 -0
- package/build/src/types/tests/cli/scaffold/app/nextjs.test.d.ts +42 -0
- package/build/src/types/tests/cli/scaffold/app/vite.test.d.ts +42 -0
- package/build/src/types/tests/cli/scaffold/app/workers.test.d.ts +40 -0
- package/build/src/types/tests/cli/scaffold/docs/docusaurus.test.d.ts +40 -0
- package/build/src/types/tests/cli/scaffold/starter/base.test.d.ts +40 -0
- package/build/src/types/tests/cli/utility/changelog.test.d.ts +68 -0
- package/build/src/types/tests/cli/utility/initialize.test.d.ts +14 -0
- package/build/src/types/tests/cli/utility/run-recipes.test.d.ts +22 -0
- package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +52 -0
- package/build/src/types/tests/cli/utility/transpile.test.d.ts +26 -0
- package/build/src/types/tests/cli/utility/type-check.test.d.ts +22 -0
- package/build/src/types/tests/cli/utility/version.test.d.ts +12 -0
- package/build/src/types/tests/lib/item.test.d.ts +88 -0
- package/build/src/types/tests/lib/nova-config.test.d.ts +138 -0
- package/build/src/types/tests/lib/regex.test.d.ts +122 -0
- package/build/src/types/tests/lib/scaffold.test.d.ts +26 -0
- package/build/src/types/tests/lib/schema.test.d.ts +36 -0
- package/build/src/types/tests/lib/utility.test.d.ts +324 -0
- package/build/src/types/tests/lib/workflow-templates.test.d.ts +77 -0
- package/build/src/types/tests/rules/eslint/conventions/no-default-export-declaration.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/no-implicit-boolean.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/require-explicit-return.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/require-hash-private.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/require-kebab-case-filename.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/require-naming-convention.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/require-undefined-init.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/conventions/switch-case-blocks.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/no-complex-arrow-concise.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/no-multiline-strings.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/no-raw-text-in-code.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/no-ternary-in-template-literal.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/require-import-order.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/require-multiline-condition-groups.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/require-multiline-conditions.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/require-padding-lines.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/formatting/require-ternary-parens.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-body.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-hierarchy.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-param-alignment.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-param-name.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-private.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-since.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/nova/no-logger-dev.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-assign-then-return.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-await-in-loop.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-boolean-var-for-if.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-bracket-assignment.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-bracket-method-call.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-template-curly-in-string.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/patterns/no-use-before-define.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/regex/no-regex-literal-flags.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/regex/no-regex-literals.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/safety/no-script-url.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/syntax/no-destructuring.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/syntax/no-numeric-literals.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/syntax/no-optional-chaining.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/syntax/no-rest-params.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/typescript/no-explicit-any.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/typescript/no-inline-type-annotation.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts +8 -0
- package/build/src/types/tests/rules/eslint/typescript/require-bracket-property-access.test.d.ts +12 -0
- package/build/src/types/tests/rules/eslint/typescript/require-type-naming.test.d.ts +8 -0
- package/build/src/types/tests/toolkit/bootstrap.test.d.ts +108 -0
- package/build/src/types/tests/toolkit/cli-header.test.d.ts +46 -0
- package/build/src/types/tests/toolkit/logger.test.d.ts +20 -0
- package/build/src/types/tests/toolkit/markdown-table.test.d.ts +65 -0
- package/build/src/types/tests/type-declarations.test.d.ts +564 -0
- package/build/src/types/toolkit/bootstrap.d.ts +133 -0
- package/build/src/types/toolkit/cli-header.d.ts +203 -0
- package/build/src/types/toolkit/logger.d.ts +160 -0
- package/build/src/types/toolkit/markdown-table.d.ts +159 -0
- package/build/templates/.novaignore +0 -0
- package/build/templates/generators/github/funding/FUNDING.yml +12 -0
- package/build/templates/generators/github/issue-template/BUG-REPORT.yml +86 -0
- package/build/templates/generators/github/issue-template/FEATURE-REQUEST.yml +61 -0
- package/build/templates/generators/github/issue-template/SUPPORT-REQUEST.yml +50 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/android.yml +16 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/apple.yml +23 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/csharp.yml +20 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/docker.yml +33 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/homebridge.yml +16 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/nodejs.yml +8 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/pfsense.yml +8 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/php.yml +8 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/python.yml +8 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/screenshots.yml +7 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/synology.yml +8 -0
- package/build/templates/generators/github/issue-template/bug-report-fields/web.yml +21 -0
- package/build/templates/generators/github/issue-template/config.yml +1 -0
- package/build/templates/generators/github/issue-template/legal-agreements/bug-report.yml +8 -0
- package/build/templates/generators/github/issue-template/legal-agreements/feature-request.yml +8 -0
- package/build/templates/generators/github/issue-template/legal-agreements/support-request.yml +8 -0
- package/build/templates/generators/github/workflows/check-sponsor-gated-issues/base.yml +57 -0
- package/build/templates/generators/github/workflows/lock-inactive-issues/base.yml +43 -0
- package/build/templates/generators/github/workflows/lock-inactive-issues/triggers/schedule.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/base.yml +53 -0
- package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/triggers/push.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/base.yml +62 -0
- package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/triggers/push.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-docker-hub/base.yml +58 -0
- package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-any.yml +7 -0
- package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-failure.yml +8 -0
- package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-success.yml +8 -0
- package/build/templates/generators/github/workflows/publish-to-github-packages/base.yml +108 -0
- package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-any.yml +7 -0
- package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-failure.yml +8 -0
- package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-success.yml +8 -0
- package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/base.yml +79 -0
- package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/triggers/push.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-npm/base.yml +91 -0
- package/build/templates/generators/github/workflows/publish-to-npm/triggers/release.yml +5 -0
- package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-any.yml +7 -0
- package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-failure.yml +8 -0
- package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-success.yml +8 -0
- package/build/templates/generators/must-haves/agent-conventions/.cursorrules +54 -0
- package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +54 -0
- package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +54 -0
- package/build/templates/generators/must-haves/agent-conventions/PROJECT_RULES.md +290 -0
- package/build/templates/generators/must-haves/agent-conventions/VISION.md +62 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/csharp.md +317 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/css.md +188 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/docker.md +131 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/documentation.md +615 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/java.md +285 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/kotlin.md +297 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/php.md +257 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/python.md +260 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/shell.md +205 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/swift.md +312 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/typescript.md +1530 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +202 -0
- package/build/templates/generators/must-haves/dotenv/.env.sample +14 -0
- package/build/templates/generators/must-haves/editorconfig/.editorconfig +212 -0
- package/build/templates/generators/must-haves/license/AGPL-3.0 +662 -0
- package/build/templates/generators/must-haves/license/Apache-2.0 +202 -0
- package/build/templates/generators/must-haves/license/BSD-2-Clause +25 -0
- package/build/templates/generators/must-haves/license/BSD-3-Clause +29 -0
- package/build/templates/generators/must-haves/license/BSL-1.0 +24 -0
- package/build/templates/generators/must-haves/license/CC0-1.0 +122 -0
- package/build/templates/generators/must-haves/license/EPL-2.0 +278 -0
- package/build/templates/generators/must-haves/license/GPL-2.0 +340 -0
- package/build/templates/generators/must-haves/license/GPL-3.0 +675 -0
- package/build/templates/generators/must-haves/license/LGPL-2.1 +505 -0
- package/build/templates/generators/must-haves/license/MIT +22 -0
- package/build/templates/generators/must-haves/license/MPL-2.0 +374 -0
- package/build/templates/generators/must-haves/license/Proprietary +22 -0
- package/build/templates/generators/must-haves/license/Unlicense +25 -0
- package/build/templates/generators/must-haves/read-me/README.md +17 -0
- package/build/templates/scaffold/app/express/package.json +20 -0
- package/build/templates/scaffold/app/express/src/index.ts +12 -0
- package/build/templates/scaffold/app/express/tsconfig.json +15 -0
- package/build/templates/scaffold/app/nextjs/next.config.mjs +4 -0
- package/build/templates/scaffold/app/nextjs/package.json +22 -0
- package/build/templates/scaffold/app/nextjs/src/app/globals.css +11 -0
- package/build/templates/scaffold/app/nextjs/src/app/layout.tsx +18 -0
- package/build/templates/scaffold/app/nextjs/src/app/page.tsx +8 -0
- package/build/templates/scaffold/app/nextjs/tsconfig.json +26 -0
- package/build/templates/scaffold/app/vite/index.html +12 -0
- package/build/templates/scaffold/app/vite/package.json +17 -0
- package/build/templates/scaffold/app/vite/src/main.ts +5 -0
- package/build/templates/scaffold/app/vite/tsconfig.json +16 -0
- package/build/templates/scaffold/app/vite/vite.config.mts +3 -0
- package/build/templates/scaffold/app/workers/package.json +16 -0
- package/build/templates/scaffold/app/workers/src/index.ts +13 -0
- package/build/templates/scaffold/app/workers/tsconfig.json +17 -0
- package/build/templates/scaffold/app/workers/wrangler.toml +3 -0
- package/build/templates/scaffold/docs/docusaurus/docs/intro.md +9 -0
- package/build/templates/scaffold/docs/docusaurus/docusaurus.config.ts +33 -0
- package/build/templates/scaffold/docs/docusaurus/package.json +20 -0
- package/build/templates/scaffold/docs/docusaurus/sidebars.ts +9 -0
- package/build/templates/scaffold/docs/docusaurus/static/.gitkeep +0 -0
- package/build/templates/scaffold/docs/docusaurus/tsconfig.json +8 -0
- package/package.json +38 -32
- package/build/eslint.config.d.ts +0 -34
- package/build/eslint.config.d.ts.map +0 -1
- package/build/eslint.config.js +0 -40
- package/build/eslint.config.js.map +0 -1
- package/build/src/cli/recipe/pin-versions.d.ts +0 -7
- package/build/src/cli/recipe/pin-versions.d.ts.map +0 -1
- package/build/src/cli/recipe/pin-versions.js +0 -145
- package/build/src/cli/recipe/pin-versions.js.map +0 -1
- package/build/src/cli/recipe/sync-lts-engines.d.ts +0 -6
- package/build/src/cli/recipe/sync-lts-engines.d.ts.map +0 -1
- package/build/src/cli/recipe/sync-lts-engines.js +0 -118
- package/build/src/cli/recipe/sync-lts-engines.js.map +0 -1
- package/build/src/cli/recipe/sync-packages.d.ts +0 -18
- package/build/src/cli/recipe/sync-packages.d.ts.map +0 -1
- package/build/src/cli/recipe/sync-packages.js +0 -1212
- package/build/src/cli/recipe/sync-packages.js.map +0 -1
- package/build/src/presets/eslint/dx-code-style.d.mts +0 -4
- package/build/src/presets/eslint/dx-code-style.d.mts.map +0 -1
- package/build/src/presets/eslint/dx-code-style.mjs +0 -211
- package/build/src/presets/eslint/dx-code-style.mjs.map +0 -1
- package/build/src/presets/eslint/dx-ignore.d.mts +0 -4
- package/build/src/presets/eslint/dx-ignore.d.mts.map +0 -1
- package/build/src/presets/eslint/dx-ignore.mjs.map +0 -1
- package/build/src/presets/eslint/env-browser.d.mts +0 -4
- package/build/src/presets/eslint/env-browser.d.mts.map +0 -1
- package/build/src/presets/eslint/env-browser.mjs +0 -3
- package/build/src/presets/eslint/env-browser.mjs.map +0 -1
- package/build/src/presets/eslint/env-edge.d.mts +0 -4
- package/build/src/presets/eslint/env-edge.d.mts.map +0 -1
- package/build/src/presets/eslint/env-edge.mjs.map +0 -1
- package/build/src/presets/eslint/env-node.d.mts +0 -4
- package/build/src/presets/eslint/env-node.d.mts.map +0 -1
- package/build/src/presets/eslint/env-node.mjs.map +0 -1
- package/build/src/presets/eslint/env-service-worker.d.mts +0 -4
- package/build/src/presets/eslint/env-service-worker.d.mts.map +0 -1
- package/build/src/presets/eslint/env-service-worker.mjs +0 -3
- package/build/src/presets/eslint/env-service-worker.mjs.map +0 -1
- package/build/src/presets/eslint/env-web-worker.d.mts +0 -4
- package/build/src/presets/eslint/env-web-worker.d.mts.map +0 -1
- package/build/src/presets/eslint/env-web-worker.mjs.map +0 -1
- package/build/src/presets/eslint/fw-docusaurus.d.mts +0 -4
- package/build/src/presets/eslint/fw-docusaurus.d.mts.map +0 -1
- package/build/src/presets/eslint/fw-docusaurus.mjs +0 -10
- package/build/src/presets/eslint/fw-docusaurus.mjs.map +0 -1
- package/build/src/presets/eslint/fw-expressjs.d.mts +0 -4
- package/build/src/presets/eslint/fw-expressjs.d.mts.map +0 -1
- package/build/src/presets/eslint/fw-expressjs.mjs.map +0 -1
- package/build/src/presets/eslint/fw-nextjs.d.mts +0 -4
- package/build/src/presets/eslint/fw-nextjs.d.mts.map +0 -1
- package/build/src/presets/eslint/fw-nextjs.mjs.map +0 -1
- package/build/src/presets/eslint/index.d.mts +0 -16
- package/build/src/presets/eslint/index.d.mts.map +0 -1
- package/build/src/presets/eslint/index.mjs +0 -16
- package/build/src/presets/eslint/index.mjs.map +0 -1
- package/build/src/presets/eslint/lang-javascript.d.mts +0 -4
- package/build/src/presets/eslint/lang-javascript.d.mts.map +0 -1
- package/build/src/presets/eslint/lang-javascript.mjs +0 -3
- package/build/src/presets/eslint/lang-javascript.mjs.map +0 -1
- package/build/src/presets/eslint/lang-mdx.d.mts +0 -4
- package/build/src/presets/eslint/lang-mdx.d.mts.map +0 -1
- package/build/src/presets/eslint/lang-mdx.mjs.map +0 -1
- package/build/src/presets/eslint/lang-typescript.d.mts +0 -4
- package/build/src/presets/eslint/lang-typescript.d.mts.map +0 -1
- package/build/src/presets/eslint/lang-typescript.mjs +0 -88
- package/build/src/presets/eslint/lang-typescript.mjs.map +0 -1
- package/build/src/presets/eslint/platform-cloudflare-workers.d.mts +0 -4
- package/build/src/presets/eslint/platform-cloudflare-workers.d.mts.map +0 -1
- package/build/src/presets/eslint/platform-cloudflare-workers.mjs +0 -8
- package/build/src/presets/eslint/platform-cloudflare-workers.mjs.map +0 -1
- package/build/src/presets/eslint/tool-vite.d.mts +0 -4
- package/build/src/presets/eslint/tool-vite.d.mts.map +0 -1
- package/build/src/presets/eslint/tool-vite.mjs.map +0 -1
- package/build/src/presets/tsconfig/env-web-worker.json +0 -12
- package/build/src/rules/eslint/no-logger-dev.d.ts +0 -6
- package/build/src/rules/eslint/no-logger-dev.d.ts.map +0 -1
- package/build/src/rules/eslint/no-logger-dev.js +0 -88
- package/build/src/rules/eslint/no-logger-dev.js.map +0 -1
- package/build/src/rules/eslint/no-raw-text-in-code.d.ts +0 -6
- package/build/src/rules/eslint/no-raw-text-in-code.d.ts.map +0 -1
- package/build/src/rules/eslint/no-raw-text-in-code.js +0 -34
- package/build/src/rules/eslint/no-raw-text-in-code.js.map +0 -1
- package/build/src/rules/eslint/no-regex-literal-flags.d.ts +0 -6
- package/build/src/rules/eslint/no-regex-literal-flags.d.ts.map +0 -1
- package/build/src/rules/eslint/no-regex-literal-flags.js +0 -30
- package/build/src/rules/eslint/no-regex-literal-flags.js.map +0 -1
- package/build/src/rules/eslint/no-regex-literals.d.ts +0 -9
- package/build/src/rules/eslint/no-regex-literals.d.ts.map +0 -1
- package/build/src/rules/eslint/no-regex-literals.js +0 -55
- package/build/src/rules/eslint/no-regex-literals.js.map +0 -1
- package/build/src/rules/eslint/switch-case-blocks.d.ts +0 -6
- package/build/src/rules/eslint/switch-case-blocks.d.ts.map +0 -1
- package/build/src/rules/eslint/switch-case-blocks.js +0 -36
- package/build/src/rules/eslint/switch-case-blocks.js.map +0 -1
- package/build/src/tests/api/node-releases.test.d.ts +0 -2
- package/build/src/tests/api/node-releases.test.d.ts.map +0 -1
- package/build/src/tests/api/node-releases.test.js +0 -193
- package/build/src/tests/api/node-releases.test.js.map +0 -1
- package/build/src/tests/api/spdx-licenses.test.d.ts +0 -2
- package/build/src/tests/api/spdx-licenses.test.d.ts.map +0 -1
- package/build/src/tests/api/spdx-licenses.test.js +0 -91
- package/build/src/tests/api/spdx-licenses.test.js.map +0 -1
- package/build/src/tests/cli/recipe/pin-versions.test.d.ts +0 -2
- package/build/src/tests/cli/recipe/pin-versions.test.d.ts.map +0 -1
- package/build/src/tests/cli/recipe/pin-versions.test.js +0 -197
- package/build/src/tests/cli/recipe/pin-versions.test.js.map +0 -1
- package/build/src/tests/cli/recipe/sync-lts-engines.test.d.ts +0 -2
- package/build/src/tests/cli/recipe/sync-lts-engines.test.d.ts.map +0 -1
- package/build/src/tests/cli/recipe/sync-lts-engines.test.js +0 -131
- package/build/src/tests/cli/recipe/sync-lts-engines.test.js.map +0 -1
- package/build/src/tests/lib/item.test.d.ts +0 -2
- package/build/src/tests/lib/item.test.d.ts.map +0 -1
- package/build/src/tests/lib/item.test.js +0 -142
- package/build/src/tests/lib/item.test.js.map +0 -1
- package/build/src/tests/lib/nova-config.test.d.ts +0 -2
- package/build/src/tests/lib/nova-config.test.d.ts.map +0 -1
- package/build/src/tests/lib/nova-config.test.js +0 -489
- package/build/src/tests/lib/nova-config.test.js.map +0 -1
- package/build/src/tests/lib/regex.test.d.ts +0 -2
- package/build/src/tests/lib/regex.test.d.ts.map +0 -1
- package/build/src/tests/lib/regex.test.js +0 -342
- package/build/src/tests/lib/regex.test.js.map +0 -1
- package/build/src/tests/lib/schema.test.d.ts +0 -2
- package/build/src/tests/lib/schema.test.d.ts.map +0 -1
- package/build/src/tests/lib/schema.test.js +0 -260
- package/build/src/tests/lib/schema.test.js.map +0 -1
- package/build/src/tests/lib/utility.test.d.ts +0 -2
- package/build/src/tests/lib/utility.test.d.ts.map +0 -1
- package/build/src/tests/lib/utility.test.js +0 -744
- package/build/src/tests/lib/utility.test.js.map +0 -1
- package/build/src/tests/rules/eslint/no-logger-dev.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/no-logger-dev.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/no-logger-dev.test.js +0 -55
- package/build/src/tests/rules/eslint/no-logger-dev.test.js.map +0 -1
- package/build/src/tests/rules/eslint/no-raw-text-in-code.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/no-raw-text-in-code.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/no-raw-text-in-code.test.js +0 -47
- package/build/src/tests/rules/eslint/no-raw-text-in-code.test.js.map +0 -1
- package/build/src/tests/rules/eslint/no-regex-literal-flags.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/no-regex-literal-flags.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/no-regex-literal-flags.test.js +0 -47
- package/build/src/tests/rules/eslint/no-regex-literal-flags.test.js.map +0 -1
- package/build/src/tests/rules/eslint/no-regex-literals.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/no-regex-literals.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/no-regex-literals.test.js +0 -49
- package/build/src/tests/rules/eslint/no-regex-literals.test.js.map +0 -1
- package/build/src/tests/rules/eslint/switch-case-blocks.test.d.ts +0 -2
- package/build/src/tests/rules/eslint/switch-case-blocks.test.d.ts.map +0 -1
- package/build/src/tests/rules/eslint/switch-case-blocks.test.js +0 -43
- package/build/src/tests/rules/eslint/switch-case-blocks.test.js.map +0 -1
- package/build/src/tests/toolkit/cli-header.test.d.ts +0 -2
- package/build/src/tests/toolkit/cli-header.test.d.ts.map +0 -1
- package/build/src/tests/toolkit/cli-header.test.js +0 -143
- package/build/src/tests/toolkit/cli-header.test.js.map +0 -1
- package/build/src/tests/toolkit/logger.test.d.ts +0 -2
- package/build/src/tests/toolkit/logger.test.d.ts.map +0 -1
- package/build/src/tests/toolkit/logger.test.js +0 -96
- package/build/src/tests/toolkit/logger.test.js.map +0 -1
- package/build/src/tests/toolkit/markdown-table.test.d.ts +0 -2
- package/build/src/tests/toolkit/markdown-table.test.d.ts.map +0 -1
- package/build/src/tests/toolkit/markdown-table.test.js +0 -138
- package/build/src/tests/toolkit/markdown-table.test.js.map +0 -1
- /package/build/src/presets/tsconfig/{env-browser.json → runtime-browser.json} +0 -0
- /package/build/src/presets/tsconfig/{env-edge.json → runtime-edge.json} +0 -0
- /package/build/src/presets/tsconfig/{env-node.json → runtime-node.json} +0 -0
- /package/build/src/presets/tsconfig/{env-service-worker.json → runtime-service-worker.json} +0 -0
|
@@ -1,744 +0,0 @@
|
|
|
1
|
-
import { deepStrictEqual, fail, match, notStrictEqual, ok, strictEqual, } from 'node:assert/strict';
|
|
2
|
-
import { mkdir, mkdtemp, readFile, readdir, realpath, rm, stat, writeFile, } from 'node:fs/promises';
|
|
3
|
-
import { tmpdir } from 'node:os';
|
|
4
|
-
import { dirname, join, relative, sep, } from 'node:path';
|
|
5
|
-
import { test } from 'node:test';
|
|
6
|
-
import { currentTimestamp, detectShell, discoverPathsWithFile, executeShell, isCommandExists, isExecuteShellError, isFileIdentical, isPlainObject, isProjectRoot, loadWorkspaceManifests, parseLinuxOsReleaseText, parseWindowsRegistryText, pathExists, renameFileWithDate, saveWorkspaceManifest, } from '../../lib/utility.js';
|
|
7
|
-
import { Logger } from '../../toolkit/index.js';
|
|
8
|
-
test('discoverPathsWithFile', async (context) => {
|
|
9
|
-
const originalCwd = process.cwd();
|
|
10
|
-
const sandboxRoot = await mkdtemp(join(tmpdir(), `nova-${context.name}-`));
|
|
11
|
-
context.after(async () => {
|
|
12
|
-
process.chdir(originalCwd);
|
|
13
|
-
await rm(sandboxRoot, {
|
|
14
|
-
recursive: true,
|
|
15
|
-
force: true,
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
await context.test('finds every package.json when traversing forward', async () => {
|
|
19
|
-
const projectRoot = join(sandboxRoot, 'forward');
|
|
20
|
-
const appRoot = join(projectRoot, 'apps', 'some-app');
|
|
21
|
-
const packageRoot = join(projectRoot, 'packages', 'some-package');
|
|
22
|
-
const nodeRoot = join(projectRoot, 'node_modules', 'ignore-me');
|
|
23
|
-
const dotHiddenRoot = join(projectRoot, '.hidden', 'ignore-me');
|
|
24
|
-
await Promise.all([
|
|
25
|
-
mkdir(appRoot, { recursive: true }),
|
|
26
|
-
mkdir(packageRoot, { recursive: true }),
|
|
27
|
-
mkdir(nodeRoot, { recursive: true }),
|
|
28
|
-
mkdir(dotHiddenRoot, { recursive: true }),
|
|
29
|
-
]);
|
|
30
|
-
await Promise.all([
|
|
31
|
-
writeFile(join(projectRoot, 'package.json'), '{}\n'),
|
|
32
|
-
writeFile(join(appRoot, 'package.json'), '{}\n'),
|
|
33
|
-
writeFile(join(packageRoot, 'package.json'), '{}\n'),
|
|
34
|
-
writeFile(join(nodeRoot, 'package.json'), '{}\n'),
|
|
35
|
-
writeFile(join(dotHiddenRoot, 'package.json'), '{}\n'),
|
|
36
|
-
]);
|
|
37
|
-
const realProjectRoot = await realpath(projectRoot);
|
|
38
|
-
process.chdir(realProjectRoot);
|
|
39
|
-
const absolutePaths = await discoverPathsWithFile('package.json', 'forward');
|
|
40
|
-
const relativePaths = absolutePaths.map((absolutePath) => relative(realProjectRoot, absolutePath).split(sep).join('/'));
|
|
41
|
-
Logger.customize({
|
|
42
|
-
name: 'discoverPathsWithFile',
|
|
43
|
-
type: 'test',
|
|
44
|
-
purpose: 'forward-absolutePaths',
|
|
45
|
-
}).debug(absolutePaths);
|
|
46
|
-
Logger.customize({
|
|
47
|
-
name: 'discoverPathsWithFile',
|
|
48
|
-
type: 'test',
|
|
49
|
-
purpose: 'forward-relativePaths',
|
|
50
|
-
}).debug(relativePaths);
|
|
51
|
-
deepStrictEqual(relativePaths, ['', 'apps/some-app', 'packages/some-package']);
|
|
52
|
-
});
|
|
53
|
-
await context.test('climbs to parent package.json files when traversing backward', async () => {
|
|
54
|
-
const projectRoot = join(sandboxRoot, 'backward');
|
|
55
|
-
const appRoot = join(projectRoot, 'apps', 'some-app');
|
|
56
|
-
const appStuffRoot = join(appRoot, 'stuff');
|
|
57
|
-
await mkdir(appStuffRoot, { recursive: true });
|
|
58
|
-
await Promise.all([
|
|
59
|
-
writeFile(join(projectRoot, 'package.json'), '{}\n'),
|
|
60
|
-
writeFile(join(appRoot, 'package.json'), '{}\n'),
|
|
61
|
-
]);
|
|
62
|
-
const realProjectRoot = await realpath(projectRoot);
|
|
63
|
-
const realAppStuffRoot = await realpath(appStuffRoot);
|
|
64
|
-
process.chdir(realAppStuffRoot);
|
|
65
|
-
const absolutePaths = await discoverPathsWithFile('package.json', 'backward');
|
|
66
|
-
const relativePaths = absolutePaths.map((absolutePath) => relative(realProjectRoot, absolutePath).split(sep).join('/'));
|
|
67
|
-
Logger.customize({
|
|
68
|
-
name: 'discoverPathsWithFile',
|
|
69
|
-
type: 'test',
|
|
70
|
-
purpose: 'backward-absolutePaths',
|
|
71
|
-
}).debug(absolutePaths);
|
|
72
|
-
Logger.customize({
|
|
73
|
-
name: 'discoverPathsWithFile',
|
|
74
|
-
type: 'test',
|
|
75
|
-
purpose: 'backward-relativePaths',
|
|
76
|
-
}).debug(relativePaths);
|
|
77
|
-
deepStrictEqual(relativePaths, ['apps/some-app', '']);
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
test('isPlainObject', async (context) => {
|
|
81
|
-
await context.test('returns true for empty object literal', () => {
|
|
82
|
-
strictEqual(isPlainObject({}), true);
|
|
83
|
-
});
|
|
84
|
-
await context.test('returns true for object with properties', () => {
|
|
85
|
-
const obj = {
|
|
86
|
-
a: 1,
|
|
87
|
-
b: 2,
|
|
88
|
-
};
|
|
89
|
-
strictEqual(isPlainObject(obj), true);
|
|
90
|
-
});
|
|
91
|
-
await context.test('returns true for Object.create(null)', () => {
|
|
92
|
-
strictEqual(isPlainObject(Object.create(null)), true);
|
|
93
|
-
});
|
|
94
|
-
await context.test('returns false for null', () => {
|
|
95
|
-
strictEqual(isPlainObject(null), false);
|
|
96
|
-
});
|
|
97
|
-
await context.test('returns false for undefined', () => {
|
|
98
|
-
strictEqual(isPlainObject(undefined), false);
|
|
99
|
-
});
|
|
100
|
-
await context.test('returns false for string', () => {
|
|
101
|
-
strictEqual(isPlainObject('hello'), false);
|
|
102
|
-
});
|
|
103
|
-
await context.test('returns false for number', () => {
|
|
104
|
-
strictEqual(isPlainObject(42), false);
|
|
105
|
-
});
|
|
106
|
-
await context.test('returns false for boolean', () => {
|
|
107
|
-
strictEqual(isPlainObject(true), false);
|
|
108
|
-
});
|
|
109
|
-
await context.test('returns false for array', () => {
|
|
110
|
-
strictEqual(isPlainObject([1, 2, 3]), false);
|
|
111
|
-
});
|
|
112
|
-
await context.test('returns false for Date instance', () => {
|
|
113
|
-
strictEqual(isPlainObject(new Date()), false);
|
|
114
|
-
});
|
|
115
|
-
await context.test('returns false for RegExp instance', () => {
|
|
116
|
-
strictEqual(isPlainObject(new RegExp('test')), false);
|
|
117
|
-
});
|
|
118
|
-
await context.test('returns false for Map instance', () => {
|
|
119
|
-
strictEqual(isPlainObject(new Map()), false);
|
|
120
|
-
});
|
|
121
|
-
await context.test('returns false for Set instance', () => {
|
|
122
|
-
strictEqual(isPlainObject(new Set()), false);
|
|
123
|
-
});
|
|
124
|
-
await context.test('returns false for class instance', () => {
|
|
125
|
-
class Foo {
|
|
126
|
-
}
|
|
127
|
-
strictEqual(isPlainObject(new Foo()), false);
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
test('isExecuteShellError', async (context) => {
|
|
131
|
-
await context.test('returns true for object with cmd property', () => {
|
|
132
|
-
strictEqual(isExecuteShellError({ cmd: 'echo hello' }), true);
|
|
133
|
-
});
|
|
134
|
-
await context.test('returns true for object with killed property', () => {
|
|
135
|
-
strictEqual(isExecuteShellError({ killed: false }), true);
|
|
136
|
-
});
|
|
137
|
-
await context.test('returns true for object with code property', () => {
|
|
138
|
-
strictEqual(isExecuteShellError({ code: 1 }), true);
|
|
139
|
-
});
|
|
140
|
-
await context.test('returns true for object with signal property', () => {
|
|
141
|
-
strictEqual(isExecuteShellError({ signal: 'SIGTERM' }), true);
|
|
142
|
-
});
|
|
143
|
-
await context.test('returns true for object with stdout property', () => {
|
|
144
|
-
strictEqual(isExecuteShellError({ stdout: 'output' }), true);
|
|
145
|
-
});
|
|
146
|
-
await context.test('returns true for object with stderr property', () => {
|
|
147
|
-
strictEqual(isExecuteShellError({ stderr: 'error' }), true);
|
|
148
|
-
});
|
|
149
|
-
await context.test('returns true for object with multiple exec properties', () => {
|
|
150
|
-
const error = {
|
|
151
|
-
cmd: 'test',
|
|
152
|
-
killed: false,
|
|
153
|
-
code: 1,
|
|
154
|
-
signal: 'SIGTERM',
|
|
155
|
-
stdout: '',
|
|
156
|
-
stderr: 'failed',
|
|
157
|
-
};
|
|
158
|
-
strictEqual(isExecuteShellError(error), true);
|
|
159
|
-
});
|
|
160
|
-
await context.test('returns false for null', () => {
|
|
161
|
-
strictEqual(isExecuteShellError(null), false);
|
|
162
|
-
});
|
|
163
|
-
await context.test('returns false for undefined', () => {
|
|
164
|
-
strictEqual(isExecuteShellError(undefined), false);
|
|
165
|
-
});
|
|
166
|
-
await context.test('returns false for string', () => {
|
|
167
|
-
strictEqual(isExecuteShellError('error'), false);
|
|
168
|
-
});
|
|
169
|
-
await context.test('returns false for number', () => {
|
|
170
|
-
strictEqual(isExecuteShellError(42), false);
|
|
171
|
-
});
|
|
172
|
-
await context.test('returns false for empty object', () => {
|
|
173
|
-
strictEqual(isExecuteShellError({}), false);
|
|
174
|
-
});
|
|
175
|
-
await context.test('returns false for object with wrong property types', () => {
|
|
176
|
-
strictEqual(isExecuteShellError({ cmd: 123 }), false);
|
|
177
|
-
});
|
|
178
|
-
});
|
|
179
|
-
test('currentTimestamp', async (context) => {
|
|
180
|
-
await context.test('returns a bracketed timestamp string', () => {
|
|
181
|
-
const result = currentTimestamp();
|
|
182
|
-
ok(result.startsWith('['));
|
|
183
|
-
ok(result.endsWith(']'));
|
|
184
|
-
});
|
|
185
|
-
await context.test('matches expected timestamp format', () => {
|
|
186
|
-
const result = currentTimestamp();
|
|
187
|
-
const pattern = new RegExp('^\\[\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3} [+-]\\d{2}\\d{2}]$');
|
|
188
|
-
match(result, pattern);
|
|
189
|
-
});
|
|
190
|
-
await context.test('produces different milliseconds on consecutive calls', () => {
|
|
191
|
-
const results = new Set();
|
|
192
|
-
for (let i = 0; i < 10; i += 1) {
|
|
193
|
-
results.add(currentTimestamp());
|
|
194
|
-
}
|
|
195
|
-
ok(results.size >= 1);
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
test('detectShell', async (context) => {
|
|
199
|
-
await context.test('returns a non-empty string', () => {
|
|
200
|
-
const result = detectShell();
|
|
201
|
-
strictEqual(typeof result, 'string');
|
|
202
|
-
ok(result.length > 0);
|
|
203
|
-
});
|
|
204
|
-
await context.test('returns a known shell path', () => {
|
|
205
|
-
const result = detectShell();
|
|
206
|
-
const knownShells = [
|
|
207
|
-
'cmd.exe',
|
|
208
|
-
'/bin/zsh',
|
|
209
|
-
'/bin/bash',
|
|
210
|
-
'/bin/ksh',
|
|
211
|
-
'/bin/sh',
|
|
212
|
-
];
|
|
213
|
-
ok(knownShells.includes(result), `Unexpected shell: "${result}"`);
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
test('pathExists', async (context) => {
|
|
217
|
-
await context.test('returns true for existing file', async () => {
|
|
218
|
-
const tempDir = await mkdtemp(join(tmpdir(), 'nova-pathExists-'));
|
|
219
|
-
const tempFile = join(tempDir, 'test.txt');
|
|
220
|
-
await writeFile(tempFile, 'test');
|
|
221
|
-
const result = await pathExists(tempFile);
|
|
222
|
-
strictEqual(result, true);
|
|
223
|
-
await rm(tempDir, {
|
|
224
|
-
recursive: true,
|
|
225
|
-
force: true,
|
|
226
|
-
});
|
|
227
|
-
});
|
|
228
|
-
await context.test('returns true for existing directory', async () => {
|
|
229
|
-
const tempDir = await mkdtemp(join(tmpdir(), 'nova-pathExists-'));
|
|
230
|
-
const result = await pathExists(tempDir);
|
|
231
|
-
strictEqual(result, true);
|
|
232
|
-
await rm(tempDir, {
|
|
233
|
-
recursive: true,
|
|
234
|
-
force: true,
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
await context.test('returns false for non-existent path', async () => {
|
|
238
|
-
const result = await pathExists(join(tmpdir(), 'nova-does-not-exist-xyz'));
|
|
239
|
-
strictEqual(result, false);
|
|
240
|
-
});
|
|
241
|
-
});
|
|
242
|
-
test('executeShell', async (context) => {
|
|
243
|
-
await context.test('runs a simple echo command', async () => {
|
|
244
|
-
const result = await executeShell('echo hello');
|
|
245
|
-
strictEqual(result.code, 0);
|
|
246
|
-
ok(result.textOut.includes('hello'));
|
|
247
|
-
});
|
|
248
|
-
await context.test('returns non-zero code for failing command', async () => {
|
|
249
|
-
const result = await executeShell('nova-nonexistent-command-xyz-12345');
|
|
250
|
-
notStrictEqual(result.code, 0);
|
|
251
|
-
});
|
|
252
|
-
});
|
|
253
|
-
test('isCommandExists', async (context) => {
|
|
254
|
-
await context.test('returns true for an existing command', async () => {
|
|
255
|
-
const result = await isCommandExists('node');
|
|
256
|
-
strictEqual(result, true);
|
|
257
|
-
});
|
|
258
|
-
await context.test('returns false for a non-existent command', async () => {
|
|
259
|
-
const result = await isCommandExists('nova-nonexistent-command-xyz-12345');
|
|
260
|
-
strictEqual(result, false);
|
|
261
|
-
});
|
|
262
|
-
});
|
|
263
|
-
test('isFileIdentical', async (context) => {
|
|
264
|
-
const sandboxRoot = await mkdtemp(join(tmpdir(), `nova-${context.name}-`));
|
|
265
|
-
context.after(async () => {
|
|
266
|
-
await rm(sandboxRoot, {
|
|
267
|
-
recursive: true,
|
|
268
|
-
force: true,
|
|
269
|
-
});
|
|
270
|
-
});
|
|
271
|
-
await context.test('returns true when string content matches file', async () => {
|
|
272
|
-
const filePath = join(sandboxRoot, 'string-match.txt');
|
|
273
|
-
await writeFile(filePath, 'hello world');
|
|
274
|
-
const result = await isFileIdentical(filePath, 'hello world');
|
|
275
|
-
strictEqual(result, true);
|
|
276
|
-
});
|
|
277
|
-
await context.test('returns false when string content differs from file', async () => {
|
|
278
|
-
const filePath = join(sandboxRoot, 'string-differ.txt');
|
|
279
|
-
await writeFile(filePath, 'hello world');
|
|
280
|
-
const result = await isFileIdentical(filePath, 'goodbye world');
|
|
281
|
-
strictEqual(result, false);
|
|
282
|
-
});
|
|
283
|
-
await context.test('returns true when object content matches JSON file', async () => {
|
|
284
|
-
const filePath = join(sandboxRoot, 'object-match.json');
|
|
285
|
-
const contents = {
|
|
286
|
-
name: 'nova',
|
|
287
|
-
version: '1.0.0',
|
|
288
|
-
};
|
|
289
|
-
const contentsJson = JSON.stringify(contents, null, 2);
|
|
290
|
-
await writeFile(filePath, `${contentsJson}\n`);
|
|
291
|
-
const result = await isFileIdentical(filePath, contents);
|
|
292
|
-
strictEqual(result, true);
|
|
293
|
-
});
|
|
294
|
-
await context.test('returns false when object content differs from JSON file', async () => {
|
|
295
|
-
const filePath = join(sandboxRoot, 'object-differ.json');
|
|
296
|
-
const existingContents = {
|
|
297
|
-
name: 'nova',
|
|
298
|
-
version: '1.0.0',
|
|
299
|
-
};
|
|
300
|
-
const proposedContents = {
|
|
301
|
-
name: 'nova',
|
|
302
|
-
version: '2.0.0',
|
|
303
|
-
};
|
|
304
|
-
const existingJson = JSON.stringify(existingContents, null, 2);
|
|
305
|
-
await writeFile(filePath, `${existingJson}\n`);
|
|
306
|
-
const result = await isFileIdentical(filePath, proposedContents);
|
|
307
|
-
strictEqual(result, false);
|
|
308
|
-
});
|
|
309
|
-
await context.test('returns false when file does not exist', async () => {
|
|
310
|
-
const filePath = join(sandboxRoot, 'does-not-exist.txt');
|
|
311
|
-
const result = await isFileIdentical(filePath, 'content');
|
|
312
|
-
strictEqual(result, false);
|
|
313
|
-
});
|
|
314
|
-
});
|
|
315
|
-
test('renameFileWithDate', async (context) => {
|
|
316
|
-
const sandboxRoot = await mkdtemp(join(tmpdir(), `nova-${context.name}-`));
|
|
317
|
-
context.after(async () => {
|
|
318
|
-
await rm(sandboxRoot, {
|
|
319
|
-
recursive: true,
|
|
320
|
-
force: true,
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
await context.test('renames a file with a date-stamped name', async () => {
|
|
324
|
-
const filePath = join(sandboxRoot, 'rename-test.txt');
|
|
325
|
-
await writeFile(filePath, 'test content');
|
|
326
|
-
const result = await renameFileWithDate(filePath, 'backup', 'txt');
|
|
327
|
-
strictEqual(result, true);
|
|
328
|
-
const originalExists = await pathExists(filePath);
|
|
329
|
-
strictEqual(originalExists, false);
|
|
330
|
-
const files = await readdir(sandboxRoot);
|
|
331
|
-
const renamedFile = files.find((file) => file.startsWith('backup.'));
|
|
332
|
-
ok(renamedFile !== undefined, 'Renamed file should exist');
|
|
333
|
-
ok(new RegExp('^backup\\.\\d{4}-\\d{2}-\\d{2}_\\d{4}\\.txt$').test(renamedFile));
|
|
334
|
-
});
|
|
335
|
-
await context.test('returns false when source file does not exist', async () => {
|
|
336
|
-
const filePath = join(sandboxRoot, 'does-not-exist.txt');
|
|
337
|
-
const result = await renameFileWithDate(filePath, 'backup', 'txt');
|
|
338
|
-
strictEqual(result, false);
|
|
339
|
-
});
|
|
340
|
-
await context.test('increments counter when target file already exists', async () => {
|
|
341
|
-
const subDir = join(sandboxRoot, 'counter-test');
|
|
342
|
-
await mkdir(subDir);
|
|
343
|
-
const filePath = join(subDir, 'original.txt');
|
|
344
|
-
await writeFile(filePath, 'content');
|
|
345
|
-
const now = new Date();
|
|
346
|
-
const timestamp = [
|
|
347
|
-
now.getUTCFullYear(),
|
|
348
|
-
(now.getUTCMonth() + 1).toString().padStart(2, '0'),
|
|
349
|
-
now.getUTCDate().toString().padStart(2, '0'),
|
|
350
|
-
].join('-');
|
|
351
|
-
const existingName = `backup.${timestamp}_0001.txt`;
|
|
352
|
-
await writeFile(join(subDir, existingName), 'existing');
|
|
353
|
-
const result = await renameFileWithDate(filePath, 'backup', 'txt');
|
|
354
|
-
strictEqual(result, true);
|
|
355
|
-
const files = await readdir(subDir);
|
|
356
|
-
const secondFile = files.find((file) => file.includes('_0002'));
|
|
357
|
-
ok(secondFile !== undefined, 'File with incremented counter should exist');
|
|
358
|
-
});
|
|
359
|
-
});
|
|
360
|
-
test('isProjectRoot', async (context) => {
|
|
361
|
-
const originalCwd = process.cwd();
|
|
362
|
-
const sandboxRoot = await mkdtemp(join(tmpdir(), `nova-${context.name}-`));
|
|
363
|
-
context.after(async () => {
|
|
364
|
-
process.chdir(originalCwd);
|
|
365
|
-
await rm(sandboxRoot, {
|
|
366
|
-
recursive: true,
|
|
367
|
-
force: true,
|
|
368
|
-
});
|
|
369
|
-
});
|
|
370
|
-
await context.test('returns true when cwd is project root with single package.json', async () => {
|
|
371
|
-
const projectRoot = join(sandboxRoot, 'single');
|
|
372
|
-
await mkdir(projectRoot, { recursive: true });
|
|
373
|
-
await writeFile(join(projectRoot, 'package.json'), '{}\n');
|
|
374
|
-
const realProjectRoot = await realpath(projectRoot);
|
|
375
|
-
process.chdir(realProjectRoot);
|
|
376
|
-
const result = await isProjectRoot(realProjectRoot);
|
|
377
|
-
strictEqual(result, true);
|
|
378
|
-
});
|
|
379
|
-
await context.test('returns false when cwd has no package.json above', async () => {
|
|
380
|
-
const emptyDir = join(sandboxRoot, 'empty');
|
|
381
|
-
await mkdir(emptyDir, { recursive: true });
|
|
382
|
-
const realEmptyDir = await realpath(emptyDir);
|
|
383
|
-
process.chdir(realEmptyDir);
|
|
384
|
-
const result = await isProjectRoot(realEmptyDir);
|
|
385
|
-
strictEqual(result, false);
|
|
386
|
-
});
|
|
387
|
-
await context.test('returns false when multiple package.json files found above', async () => {
|
|
388
|
-
const projectRoot = join(sandboxRoot, 'multi');
|
|
389
|
-
const appRoot = join(projectRoot, 'apps', 'my-app');
|
|
390
|
-
await mkdir(appRoot, { recursive: true });
|
|
391
|
-
await Promise.all([
|
|
392
|
-
writeFile(join(projectRoot, 'package.json'), '{}\n'),
|
|
393
|
-
writeFile(join(appRoot, 'package.json'), '{}\n'),
|
|
394
|
-
]);
|
|
395
|
-
const realAppRoot = await realpath(appRoot);
|
|
396
|
-
process.chdir(realAppRoot);
|
|
397
|
-
const result = await isProjectRoot(realAppRoot);
|
|
398
|
-
strictEqual(result, false);
|
|
399
|
-
});
|
|
400
|
-
});
|
|
401
|
-
test('loadWorkspaceManifests', async (context) => {
|
|
402
|
-
const sandboxRoot = await mkdtemp(join(tmpdir(), `nova-${context.name}-`));
|
|
403
|
-
context.after(async () => {
|
|
404
|
-
await rm(sandboxRoot, {
|
|
405
|
-
recursive: true,
|
|
406
|
-
force: true,
|
|
407
|
-
});
|
|
408
|
-
});
|
|
409
|
-
await context.test('loads package.json for configured workspaces', async () => {
|
|
410
|
-
const projectRoot = join(sandboxRoot, 'valid');
|
|
411
|
-
const pkgDir = join(projectRoot, 'packages', 'core');
|
|
412
|
-
await mkdir(pkgDir, { recursive: true });
|
|
413
|
-
const rootPackageJson = JSON.stringify({ name: 'root' }, null, 2);
|
|
414
|
-
const corePackageJson = JSON.stringify({ name: '@test/core' }, null, 2);
|
|
415
|
-
await Promise.all([
|
|
416
|
-
writeFile(join(projectRoot, 'package.json'), rootPackageJson),
|
|
417
|
-
writeFile(join(pkgDir, 'package.json'), corePackageJson),
|
|
418
|
-
]);
|
|
419
|
-
const result = await loadWorkspaceManifests({
|
|
420
|
-
projectRoot,
|
|
421
|
-
workspaces: [
|
|
422
|
-
['./', {
|
|
423
|
-
name: 'root',
|
|
424
|
-
role: 'project',
|
|
425
|
-
policy: 'freezable',
|
|
426
|
-
}],
|
|
427
|
-
['./packages/core', {
|
|
428
|
-
name: '@test/core',
|
|
429
|
-
role: 'package',
|
|
430
|
-
policy: 'distributable',
|
|
431
|
-
}],
|
|
432
|
-
],
|
|
433
|
-
});
|
|
434
|
-
strictEqual(result.length, 2);
|
|
435
|
-
const firstWorkspace = result[0];
|
|
436
|
-
const secondWorkspace = result[1];
|
|
437
|
-
ok(firstWorkspace !== undefined);
|
|
438
|
-
ok(secondWorkspace !== undefined);
|
|
439
|
-
strictEqual(firstWorkspace.manifest.name, 'root');
|
|
440
|
-
strictEqual(firstWorkspace.fileContents['name'], 'root');
|
|
441
|
-
strictEqual(secondWorkspace.manifest.name, '@test/core');
|
|
442
|
-
strictEqual(secondWorkspace.fileContents['name'], '@test/core');
|
|
443
|
-
});
|
|
444
|
-
await context.test('skips workspace with missing package.json', async () => {
|
|
445
|
-
const projectRoot = join(sandboxRoot, 'missing');
|
|
446
|
-
await mkdir(projectRoot, { recursive: true });
|
|
447
|
-
const rootPackageJson = JSON.stringify({ name: 'root' }, null, 2);
|
|
448
|
-
await writeFile(join(projectRoot, 'package.json'), rootPackageJson);
|
|
449
|
-
const result = await loadWorkspaceManifests({
|
|
450
|
-
projectRoot,
|
|
451
|
-
workspaces: [
|
|
452
|
-
['./', {
|
|
453
|
-
name: 'root',
|
|
454
|
-
role: 'project',
|
|
455
|
-
policy: 'freezable',
|
|
456
|
-
}],
|
|
457
|
-
['./packages/missing', {
|
|
458
|
-
name: '@test/missing',
|
|
459
|
-
role: 'package',
|
|
460
|
-
policy: 'distributable',
|
|
461
|
-
}],
|
|
462
|
-
],
|
|
463
|
-
});
|
|
464
|
-
strictEqual(result.length, 1);
|
|
465
|
-
const onlyWorkspace = result[0];
|
|
466
|
-
ok(onlyWorkspace !== undefined);
|
|
467
|
-
strictEqual(onlyWorkspace.manifest.name, 'root');
|
|
468
|
-
});
|
|
469
|
-
await context.test('returns empty array when no workspaces provided', async () => {
|
|
470
|
-
const result = await loadWorkspaceManifests({
|
|
471
|
-
projectRoot: sandboxRoot,
|
|
472
|
-
workspaces: [],
|
|
473
|
-
});
|
|
474
|
-
strictEqual(result.length, 0);
|
|
475
|
-
});
|
|
476
|
-
});
|
|
477
|
-
test('saveWorkspaceManifest', async (context) => {
|
|
478
|
-
const sandboxRoot = await mkdtemp(join(tmpdir(), `nova-${context.name}-`));
|
|
479
|
-
context.after(async () => {
|
|
480
|
-
await rm(sandboxRoot, {
|
|
481
|
-
recursive: true,
|
|
482
|
-
force: true,
|
|
483
|
-
});
|
|
484
|
-
});
|
|
485
|
-
await context.test('writes changed file contents', async () => {
|
|
486
|
-
const filePath = join(sandboxRoot, 'write-test', 'package.json');
|
|
487
|
-
await mkdir(dirname(filePath), { recursive: true });
|
|
488
|
-
const original = {
|
|
489
|
-
name: 'test',
|
|
490
|
-
version: '1.0.0',
|
|
491
|
-
};
|
|
492
|
-
const originalJson = JSON.stringify(original, null, 2);
|
|
493
|
-
await writeFile(filePath, `${originalJson}\n`, 'utf-8');
|
|
494
|
-
const modified = {
|
|
495
|
-
name: 'test',
|
|
496
|
-
version: '2.0.0',
|
|
497
|
-
};
|
|
498
|
-
await saveWorkspaceManifest({
|
|
499
|
-
manifest: {
|
|
500
|
-
name: 'test',
|
|
501
|
-
role: 'package',
|
|
502
|
-
policy: 'distributable',
|
|
503
|
-
},
|
|
504
|
-
filePath,
|
|
505
|
-
fileContents: modified,
|
|
506
|
-
}, true);
|
|
507
|
-
const written = JSON.parse(await readFile(filePath, 'utf-8'));
|
|
508
|
-
strictEqual(written.version, '2.0.0');
|
|
509
|
-
});
|
|
510
|
-
await context.test('skips writing when file contents are identical', async () => {
|
|
511
|
-
const filePath = join(sandboxRoot, 'skip-test', 'package.json');
|
|
512
|
-
await mkdir(dirname(filePath), { recursive: true });
|
|
513
|
-
const contents = {
|
|
514
|
-
name: 'test',
|
|
515
|
-
version: '1.0.0',
|
|
516
|
-
};
|
|
517
|
-
const contentsJson = JSON.stringify(contents, null, 2);
|
|
518
|
-
await writeFile(filePath, `${contentsJson}\n`, 'utf-8');
|
|
519
|
-
const statBefore = await stat(filePath);
|
|
520
|
-
await saveWorkspaceManifest({
|
|
521
|
-
manifest: {
|
|
522
|
-
name: 'test',
|
|
523
|
-
role: 'package',
|
|
524
|
-
policy: 'distributable',
|
|
525
|
-
},
|
|
526
|
-
filePath,
|
|
527
|
-
fileContents: contents,
|
|
528
|
-
}, true);
|
|
529
|
-
const statAfter = await stat(filePath);
|
|
530
|
-
strictEqual(statBefore.mtimeMs, statAfter.mtimeMs);
|
|
531
|
-
});
|
|
532
|
-
await context.test('creates backup when replaceFile is false', async () => {
|
|
533
|
-
const subDir = join(sandboxRoot, 'backup-test');
|
|
534
|
-
await mkdir(subDir, { recursive: true });
|
|
535
|
-
const filePath = join(subDir, 'package.json');
|
|
536
|
-
const original = {
|
|
537
|
-
name: 'test',
|
|
538
|
-
version: '1.0.0',
|
|
539
|
-
};
|
|
540
|
-
const originalJson = JSON.stringify(original, null, 2);
|
|
541
|
-
await writeFile(filePath, `${originalJson}\n`, 'utf-8');
|
|
542
|
-
const modified = {
|
|
543
|
-
name: 'test',
|
|
544
|
-
version: '2.0.0',
|
|
545
|
-
};
|
|
546
|
-
await saveWorkspaceManifest({
|
|
547
|
-
manifest: {
|
|
548
|
-
name: 'test',
|
|
549
|
-
role: 'package',
|
|
550
|
-
policy: 'distributable',
|
|
551
|
-
},
|
|
552
|
-
filePath,
|
|
553
|
-
fileContents: modified,
|
|
554
|
-
}, false);
|
|
555
|
-
const files = await readdir(subDir);
|
|
556
|
-
const backupFile = files.find((file) => file.startsWith('package.') && file !== 'package.json');
|
|
557
|
-
ok(backupFile !== undefined, 'Backup file should exist');
|
|
558
|
-
const written = JSON.parse(await readFile(filePath, 'utf-8'));
|
|
559
|
-
strictEqual(written.version, '2.0.0');
|
|
560
|
-
});
|
|
561
|
-
});
|
|
562
|
-
test('parseLinuxOsReleaseText', async (context) => {
|
|
563
|
-
await context.test('parses Ubuntu os-release text', () => {
|
|
564
|
-
const text = [
|
|
565
|
-
'NAME="Ubuntu"',
|
|
566
|
-
'VERSION="22.04.3 LTS (Jammy Jellyfish)"',
|
|
567
|
-
'ID=ubuntu',
|
|
568
|
-
'ID_LIKE=debian',
|
|
569
|
-
'PRETTY_NAME="Ubuntu 22.04.3 LTS"',
|
|
570
|
-
'VERSION_ID="22.04"',
|
|
571
|
-
].join('\n');
|
|
572
|
-
const result = parseLinuxOsReleaseText(text);
|
|
573
|
-
strictEqual(result['NAME'], 'Ubuntu');
|
|
574
|
-
strictEqual(result['VERSION'], '22.04.3 LTS (Jammy Jellyfish)');
|
|
575
|
-
strictEqual(result['ID'], 'ubuntu');
|
|
576
|
-
strictEqual(result['ID_LIKE'], 'debian');
|
|
577
|
-
strictEqual(result['VERSION_ID'], '22.04');
|
|
578
|
-
});
|
|
579
|
-
await context.test('parses Alpine os-release text', () => {
|
|
580
|
-
const text = [
|
|
581
|
-
'NAME="Alpine Linux"',
|
|
582
|
-
'ID=alpine',
|
|
583
|
-
'VERSION_ID=3.19.0',
|
|
584
|
-
'PRETTY_NAME="Alpine Linux v3.19"',
|
|
585
|
-
].join('\n');
|
|
586
|
-
const result = parseLinuxOsReleaseText(text);
|
|
587
|
-
strictEqual(result['NAME'], 'Alpine Linux');
|
|
588
|
-
strictEqual(result['ID'], 'alpine');
|
|
589
|
-
strictEqual(result['VERSION_ID'], '3.19.0');
|
|
590
|
-
});
|
|
591
|
-
await context.test('parses Debian os-release text', () => {
|
|
592
|
-
const text = [
|
|
593
|
-
'PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"',
|
|
594
|
-
'NAME="Debian GNU/Linux"',
|
|
595
|
-
'VERSION_ID="12"',
|
|
596
|
-
'ID=debian',
|
|
597
|
-
].join('\n');
|
|
598
|
-
const result = parseLinuxOsReleaseText(text);
|
|
599
|
-
strictEqual(result['NAME'], 'Debian GNU/Linux');
|
|
600
|
-
strictEqual(result['ID'], 'debian');
|
|
601
|
-
strictEqual(result['VERSION_ID'], '12');
|
|
602
|
-
});
|
|
603
|
-
await context.test('skips comment lines', () => {
|
|
604
|
-
const text = [
|
|
605
|
-
'# This is a comment',
|
|
606
|
-
'NAME="Test"',
|
|
607
|
-
'# Another comment',
|
|
608
|
-
'ID=test',
|
|
609
|
-
].join('\n');
|
|
610
|
-
const result = parseLinuxOsReleaseText(text);
|
|
611
|
-
strictEqual(Object.keys(result).length, 2);
|
|
612
|
-
strictEqual(result['NAME'], 'Test');
|
|
613
|
-
strictEqual(result['ID'], 'test');
|
|
614
|
-
});
|
|
615
|
-
await context.test('skips empty lines', () => {
|
|
616
|
-
const text = [
|
|
617
|
-
'',
|
|
618
|
-
'NAME="Test"',
|
|
619
|
-
'',
|
|
620
|
-
'',
|
|
621
|
-
'ID=test',
|
|
622
|
-
'',
|
|
623
|
-
].join('\n');
|
|
624
|
-
const result = parseLinuxOsReleaseText(text);
|
|
625
|
-
strictEqual(Object.keys(result).length, 2);
|
|
626
|
-
});
|
|
627
|
-
await context.test('strips double-quoted values', () => {
|
|
628
|
-
const text = 'NAME="Ubuntu"';
|
|
629
|
-
const result = parseLinuxOsReleaseText(text);
|
|
630
|
-
strictEqual(result['NAME'], 'Ubuntu');
|
|
631
|
-
});
|
|
632
|
-
await context.test('preserves unquoted values', () => {
|
|
633
|
-
const text = 'ID=ubuntu';
|
|
634
|
-
const result = parseLinuxOsReleaseText(text);
|
|
635
|
-
strictEqual(result['ID'], 'ubuntu');
|
|
636
|
-
});
|
|
637
|
-
await context.test('handles values containing equals sign', () => {
|
|
638
|
-
const text = 'BUG_REPORT_URL="https://example.com?a=1&b=2"';
|
|
639
|
-
const result = parseLinuxOsReleaseText(text);
|
|
640
|
-
strictEqual(result['BUG_REPORT_URL'], 'https://example.com?a=1&b=2');
|
|
641
|
-
});
|
|
642
|
-
await context.test('returns empty object for empty string', () => {
|
|
643
|
-
const result = parseLinuxOsReleaseText('');
|
|
644
|
-
deepStrictEqual(result, {});
|
|
645
|
-
});
|
|
646
|
-
await context.test('handles CRLF line endings', () => {
|
|
647
|
-
const text = 'NAME="Test"\r\nID=test\r\nVERSION_ID="1.0"';
|
|
648
|
-
const result = parseLinuxOsReleaseText(text);
|
|
649
|
-
strictEqual(Object.keys(result).length, 3);
|
|
650
|
-
strictEqual(result['NAME'], 'Test');
|
|
651
|
-
strictEqual(result['ID'], 'test');
|
|
652
|
-
strictEqual(result['VERSION_ID'], '1.0');
|
|
653
|
-
});
|
|
654
|
-
});
|
|
655
|
-
test('parseWindowsRegistryText', async (context) => {
|
|
656
|
-
await context.test('parses REG_SZ values', () => {
|
|
657
|
-
const text = ' ProductName REG_SZ Windows 11 Pro';
|
|
658
|
-
const result = parseWindowsRegistryText(text);
|
|
659
|
-
const productName = result['ProductName'];
|
|
660
|
-
if (productName === undefined) {
|
|
661
|
-
fail('Expected ProductName to be defined');
|
|
662
|
-
}
|
|
663
|
-
strictEqual(productName.type, 'REG_SZ');
|
|
664
|
-
strictEqual(productName.data, 'Windows 11 Pro');
|
|
665
|
-
});
|
|
666
|
-
await context.test('parses REG_DWORD values', () => {
|
|
667
|
-
const text = ' CurrentMajorVersionNumber REG_DWORD 0xa';
|
|
668
|
-
const result = parseWindowsRegistryText(text);
|
|
669
|
-
const currentMajorVersionNumber = result['CurrentMajorVersionNumber'];
|
|
670
|
-
if (currentMajorVersionNumber === undefined) {
|
|
671
|
-
fail('Expected CurrentMajorVersionNumber to be defined');
|
|
672
|
-
}
|
|
673
|
-
strictEqual(currentMajorVersionNumber.type, 'REG_DWORD');
|
|
674
|
-
strictEqual(currentMajorVersionNumber.data, '0xa');
|
|
675
|
-
});
|
|
676
|
-
await context.test('parses mixed registry types', () => {
|
|
677
|
-
const text = [
|
|
678
|
-
'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion',
|
|
679
|
-
' ProductName REG_SZ Windows 11 Pro',
|
|
680
|
-
' CurrentBuild REG_SZ 22631',
|
|
681
|
-
' CurrentMajorVersionNumber REG_DWORD 0xa',
|
|
682
|
-
].join('\n');
|
|
683
|
-
const result = parseWindowsRegistryText(text);
|
|
684
|
-
strictEqual(Object.keys(result).length, 3);
|
|
685
|
-
const productName = result['ProductName'];
|
|
686
|
-
const currentBuild = result['CurrentBuild'];
|
|
687
|
-
const currentMajorVersionNumber = result['CurrentMajorVersionNumber'];
|
|
688
|
-
if (productName === undefined) {
|
|
689
|
-
fail('Expected ProductName to be defined');
|
|
690
|
-
}
|
|
691
|
-
if (currentBuild === undefined) {
|
|
692
|
-
fail('Expected CurrentBuild to be defined');
|
|
693
|
-
}
|
|
694
|
-
if (currentMajorVersionNumber === undefined) {
|
|
695
|
-
fail('Expected CurrentMajorVersionNumber to be defined');
|
|
696
|
-
}
|
|
697
|
-
strictEqual(productName.type, 'REG_SZ');
|
|
698
|
-
strictEqual(currentBuild.type, 'REG_SZ');
|
|
699
|
-
strictEqual(currentMajorVersionNumber.type, 'REG_DWORD');
|
|
700
|
-
});
|
|
701
|
-
await context.test('returns empty object for empty string', () => {
|
|
702
|
-
const result = parseWindowsRegistryText('');
|
|
703
|
-
deepStrictEqual(result, {});
|
|
704
|
-
});
|
|
705
|
-
await context.test('skips non-matching lines', () => {
|
|
706
|
-
const text = [
|
|
707
|
-
'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion',
|
|
708
|
-
'',
|
|
709
|
-
' ProductName REG_SZ Windows 11 Pro',
|
|
710
|
-
].join('\n');
|
|
711
|
-
const result = parseWindowsRegistryText(text);
|
|
712
|
-
strictEqual(Object.keys(result).length, 1);
|
|
713
|
-
const productName = result['ProductName'];
|
|
714
|
-
if (productName === undefined) {
|
|
715
|
-
fail('Expected ProductName to be defined');
|
|
716
|
-
}
|
|
717
|
-
strictEqual(productName.data, 'Windows 11 Pro');
|
|
718
|
-
});
|
|
719
|
-
await context.test('trims trailing whitespace from data', () => {
|
|
720
|
-
const text = ' ProductName REG_SZ Windows 11 Pro ';
|
|
721
|
-
const result = parseWindowsRegistryText(text);
|
|
722
|
-
const productName = result['ProductName'];
|
|
723
|
-
if (productName === undefined) {
|
|
724
|
-
fail('Expected ProductName to be defined');
|
|
725
|
-
}
|
|
726
|
-
strictEqual(productName.data, 'Windows 11 Pro');
|
|
727
|
-
});
|
|
728
|
-
await context.test('handles LF line endings', () => {
|
|
729
|
-
const text = ' ProductName REG_SZ Windows 11\n CurrentBuild REG_SZ 22631';
|
|
730
|
-
const result = parseWindowsRegistryText(text);
|
|
731
|
-
strictEqual(Object.keys(result).length, 2);
|
|
732
|
-
const productName = result['ProductName'];
|
|
733
|
-
const currentBuild = result['CurrentBuild'];
|
|
734
|
-
if (productName === undefined) {
|
|
735
|
-
fail('Expected ProductName to be defined');
|
|
736
|
-
}
|
|
737
|
-
if (currentBuild === undefined) {
|
|
738
|
-
fail('Expected CurrentBuild to be defined');
|
|
739
|
-
}
|
|
740
|
-
strictEqual(productName.data, 'Windows 11');
|
|
741
|
-
strictEqual(currentBuild.data, '22631');
|
|
742
|
-
});
|
|
743
|
-
});
|
|
744
|
-
//# sourceMappingURL=utility.test.js.map
|