@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
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
import { ApiNodeReleases } from '../../../api/node-releases.js';
|
|
3
|
+
import { LibNovaConfig } from '../../../lib/nova-config.js';
|
|
4
|
+
import { LIB_REGEX_PATTERN_DIGITS, LIB_REGEX_PATTERN_NAME_AT_VERSION, LIB_REGEX_PATTERN_RANGE_GREATER_EQUAL_MAJOR, LIB_REGEX_PATTERN_RANGE_MAJOR, } from '../../../lib/regex.js';
|
|
5
|
+
import { isPlainObject, isProjectRoot, loadWorkspaceManifests, saveWorkspaceManifest, } from '../../../lib/utility.js';
|
|
6
|
+
import { Logger } from '../../../toolkit/index.js';
|
|
7
|
+
export class CliRecipePackageJsonSyncEnvironment {
|
|
8
|
+
static async run(options) {
|
|
9
|
+
const currentDirectory = process.cwd();
|
|
10
|
+
const isAtProjectRoot = await isProjectRoot(currentDirectory);
|
|
11
|
+
if (isAtProjectRoot !== true) {
|
|
12
|
+
process.exitCode = 1;
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const isDryRun = options['dryRun'] === true;
|
|
16
|
+
const isReplaceFile = options['replaceFile'] === true;
|
|
17
|
+
if (isDryRun === true) {
|
|
18
|
+
Logger.customize({
|
|
19
|
+
name: 'CliRecipePackageJsonSyncEnvironment.run',
|
|
20
|
+
purpose: 'options',
|
|
21
|
+
}).warn('Dry run enabled. File changes will not be made in this session.');
|
|
22
|
+
}
|
|
23
|
+
if (isReplaceFile === true) {
|
|
24
|
+
const replaceFileNotice = (isDryRun === true) ? 'This option has no effect during a dry run session.' : 'Backup file will not be created.';
|
|
25
|
+
Logger.customize({
|
|
26
|
+
name: 'CliRecipePackageJsonSyncEnvironment.run',
|
|
27
|
+
purpose: 'options',
|
|
28
|
+
}).warn(`Replace file enabled. ${replaceFileNotice}`);
|
|
29
|
+
}
|
|
30
|
+
const workingFile = await new LibNovaConfig().load();
|
|
31
|
+
const workingFileWorkspaces = Object.entries(workingFile['workspaces'] ?? {});
|
|
32
|
+
if (workingFileWorkspaces.length === 0) {
|
|
33
|
+
Logger.customize({
|
|
34
|
+
name: 'CliRecipePackageJsonSyncEnvironment.run',
|
|
35
|
+
purpose: 'workspaces',
|
|
36
|
+
}).warn('Skipping sync-environment. No workspaces detected in the "nova.config.json" file.');
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const eligibleWorkspaces = workingFileWorkspaces.filter((workspace) => {
|
|
40
|
+
const workspaceConfig = workspace[1];
|
|
41
|
+
const workspaceRecipes = workspaceConfig['recipes'];
|
|
42
|
+
if (workspaceRecipes === undefined) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
const recipeTuple = workspaceRecipes['sync-environment'];
|
|
46
|
+
if (recipeTuple === undefined) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
return recipeTuple[0] === true;
|
|
50
|
+
});
|
|
51
|
+
if (eligibleWorkspaces.length === 0) {
|
|
52
|
+
Logger.customize({
|
|
53
|
+
name: 'CliRecipePackageJsonSyncEnvironment.run',
|
|
54
|
+
purpose: 'workspaces',
|
|
55
|
+
}).warn('Skipping sync-environment. No workspaces have this recipe enabled.');
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const workspaces = await loadWorkspaceManifests({
|
|
59
|
+
projectRoot: currentDirectory,
|
|
60
|
+
workspaces: eligibleWorkspaces,
|
|
61
|
+
});
|
|
62
|
+
if (workspaces.length === 0) {
|
|
63
|
+
Logger.customize({
|
|
64
|
+
name: 'CliRecipePackageJsonSyncEnvironment.run',
|
|
65
|
+
purpose: 'workspaces',
|
|
66
|
+
}).warn('Skipping sync-environment. No accessible "package.json" files were found for the configured workspaces.');
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
Logger.customize({
|
|
70
|
+
name: 'CliRecipePackageJsonSyncEnvironment.run',
|
|
71
|
+
purpose: 'summary',
|
|
72
|
+
}).info(`Prepared ${workspaces.length} workspace "package.json" file(s) for sync-environment.`);
|
|
73
|
+
for (const workspace of workspaces) {
|
|
74
|
+
Logger.customize({
|
|
75
|
+
name: 'CliRecipePackageJsonSyncEnvironment.run',
|
|
76
|
+
purpose: 'iteration',
|
|
77
|
+
}).info(`Running sync-environment for the "${workspace['manifest']['name']}" workspace ...`);
|
|
78
|
+
CliRecipePackageJsonSyncEnvironment.handleCorepack(workspace);
|
|
79
|
+
await CliRecipePackageJsonSyncEnvironment.handle(workspace);
|
|
80
|
+
if (isDryRun === true) {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
await saveWorkspaceManifest(workspace, isReplaceFile);
|
|
84
|
+
}
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
static async handle(workspace) {
|
|
88
|
+
const fileContents = workspace['fileContents'];
|
|
89
|
+
const manifest = workspace['manifest'];
|
|
90
|
+
const packageEngines = fileContents['engines'];
|
|
91
|
+
const packageOs = fileContents['os'];
|
|
92
|
+
const packageCpu = fileContents['cpu'];
|
|
93
|
+
const packageLibc = fileContents['libc'];
|
|
94
|
+
const packageDevEngines = fileContents['devEngines'];
|
|
95
|
+
const ltsConstraint = await ApiNodeReleases.fetchLtsVersions();
|
|
96
|
+
if (packageEngines === undefined) {
|
|
97
|
+
if (ltsConstraint !== undefined) {
|
|
98
|
+
Logger.customize({
|
|
99
|
+
name: 'CliRecipePackageJsonSyncEnvironment.handle',
|
|
100
|
+
purpose: 'engines',
|
|
101
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Adding "engines" with "node" set to "${ltsConstraint}" ...`);
|
|
102
|
+
Reflect.set(fileContents, 'engines', {
|
|
103
|
+
node: ltsConstraint,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
Logger.customize({
|
|
108
|
+
name: 'CliRecipePackageJsonSyncEnvironment.handle',
|
|
109
|
+
purpose: 'engines',
|
|
110
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Adding "engines" as an empty object ...`);
|
|
111
|
+
Reflect.set(fileContents, 'engines', {});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
else if (isPlainObject(packageEngines) === true
|
|
115
|
+
&& packageEngines['node'] === undefined
|
|
116
|
+
&& ltsConstraint !== undefined) {
|
|
117
|
+
Logger.customize({
|
|
118
|
+
name: 'CliRecipePackageJsonSyncEnvironment.handle',
|
|
119
|
+
purpose: 'engines',
|
|
120
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Adding "engines.node" set to "${ltsConstraint}" ...`);
|
|
121
|
+
Reflect.set(packageEngines, 'node', ltsConstraint);
|
|
122
|
+
}
|
|
123
|
+
const recipes = manifest['recipes'];
|
|
124
|
+
const recipeTuple = (recipes !== undefined) ? recipes['sync-environment'] : undefined;
|
|
125
|
+
const recipeSettings = (recipeTuple !== undefined && recipeTuple.length > 1) ? recipeTuple[1] : undefined;
|
|
126
|
+
const trackNodeLtsVersions = (recipeSettings !== undefined && recipeSettings['trackNodeLtsVersions'] === true);
|
|
127
|
+
if (trackNodeLtsVersions === true
|
|
128
|
+
&& isPlainObject(fileContents['engines']) === true
|
|
129
|
+
&& typeof fileContents['engines']['node'] === 'string'
|
|
130
|
+
&& ltsConstraint !== undefined) {
|
|
131
|
+
const existingNode = fileContents['engines']['node'];
|
|
132
|
+
const ltsMatches = [...ltsConstraint.matchAll(new RegExp(LIB_REGEX_PATTERN_DIGITS.source, 'g'))];
|
|
133
|
+
if (ltsMatches.length > 0) {
|
|
134
|
+
const ltsMajors = ltsMatches.map((ltsMatch) => {
|
|
135
|
+
return parseInt(ltsMatch[0], 10);
|
|
136
|
+
});
|
|
137
|
+
const branches = existingNode.split('||').map((branch) => branch.trim());
|
|
138
|
+
const coversAll = ltsMajors.every((ltsMajor) => {
|
|
139
|
+
return branches.some((branch) => {
|
|
140
|
+
if (branch === '*') {
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
const geMatch = branch.match(LIB_REGEX_PATTERN_RANGE_GREATER_EQUAL_MAJOR);
|
|
144
|
+
if (geMatch !== null) {
|
|
145
|
+
return parseInt(geMatch[1] ?? '', 10) <= ltsMajor;
|
|
146
|
+
}
|
|
147
|
+
const majorMatch = branch.match(LIB_REGEX_PATTERN_RANGE_MAJOR);
|
|
148
|
+
if (majorMatch !== null) {
|
|
149
|
+
return parseInt(majorMatch[1] ?? '', 10) === ltsMajor;
|
|
150
|
+
}
|
|
151
|
+
return false;
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
if (coversAll !== true) {
|
|
155
|
+
Logger.customize({
|
|
156
|
+
name: 'CliRecipePackageJsonSyncEnvironment.handle',
|
|
157
|
+
purpose: 'engines',
|
|
158
|
+
}).warn(`${chalk.magenta(`"${manifest['name']}" workspace`)} → "engines.node" is "${existingNode}" but must cover all active LTS versions (${ltsMajors.join(', ')}). Run "nova recipe package-json sync-environment" with "trackNodeLtsVersions" enabled to update.`);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (trackNodeLtsVersions === true
|
|
163
|
+
&& ltsConstraint !== undefined) {
|
|
164
|
+
CliRecipePackageJsonSyncEnvironment.syncNodeConstraint(workspace, ltsConstraint);
|
|
165
|
+
}
|
|
166
|
+
if (packageOs !== undefined
|
|
167
|
+
&& CliRecipePackageJsonSyncEnvironment.isEmpty(packageOs) === true) {
|
|
168
|
+
Logger.customize({
|
|
169
|
+
name: 'CliRecipePackageJsonSyncEnvironment.handle',
|
|
170
|
+
purpose: 'os',
|
|
171
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing empty "os" ...`);
|
|
172
|
+
Reflect.deleteProperty(fileContents, 'os');
|
|
173
|
+
}
|
|
174
|
+
if (packageCpu !== undefined
|
|
175
|
+
&& CliRecipePackageJsonSyncEnvironment.isEmpty(packageCpu) === true) {
|
|
176
|
+
Logger.customize({
|
|
177
|
+
name: 'CliRecipePackageJsonSyncEnvironment.handle',
|
|
178
|
+
purpose: 'cpu',
|
|
179
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing empty "cpu" ...`);
|
|
180
|
+
Reflect.deleteProperty(fileContents, 'cpu');
|
|
181
|
+
}
|
|
182
|
+
if (packageLibc !== undefined
|
|
183
|
+
&& (Array.isArray(fileContents['os']) === false
|
|
184
|
+
|| fileContents['os'].includes('linux') === false)) {
|
|
185
|
+
Logger.customize({
|
|
186
|
+
name: 'CliRecipePackageJsonSyncEnvironment.handle',
|
|
187
|
+
purpose: 'libc',
|
|
188
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "libc". Package "os" does not include "linux".`);
|
|
189
|
+
Reflect.deleteProperty(fileContents, 'libc');
|
|
190
|
+
}
|
|
191
|
+
else if (packageLibc === undefined
|
|
192
|
+
&& (Array.isArray(fileContents['os']) === true
|
|
193
|
+
&& fileContents['os'].includes('linux') === true)) {
|
|
194
|
+
Logger.customize({
|
|
195
|
+
name: 'CliRecipePackageJsonSyncEnvironment.handle',
|
|
196
|
+
purpose: 'libc',
|
|
197
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Adding "libc" as "glibc" ...`);
|
|
198
|
+
Reflect.set(fileContents, 'libc', ['glibc']);
|
|
199
|
+
}
|
|
200
|
+
if (packageDevEngines !== undefined
|
|
201
|
+
&& CliRecipePackageJsonSyncEnvironment.isEmpty(packageDevEngines) === true) {
|
|
202
|
+
Logger.customize({
|
|
203
|
+
name: 'CliRecipePackageJsonSyncEnvironment.handle',
|
|
204
|
+
purpose: 'devEngines',
|
|
205
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing empty "devEngines" ...`);
|
|
206
|
+
Reflect.deleteProperty(fileContents, 'devEngines');
|
|
207
|
+
}
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
static handleCorepack(workspace) {
|
|
211
|
+
const fileContents = workspace['fileContents'];
|
|
212
|
+
const manifest = workspace['manifest'];
|
|
213
|
+
const packageManager = fileContents['packageManager'];
|
|
214
|
+
if (packageManager !== undefined
|
|
215
|
+
&& manifest['role'] !== 'project') {
|
|
216
|
+
Logger.customize({
|
|
217
|
+
name: 'CliRecipePackageJsonSyncEnvironment.handleCorepack',
|
|
218
|
+
purpose: 'packageManager',
|
|
219
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "packageManager". Workspace role "${manifest['role']}" does not allow it.`);
|
|
220
|
+
Reflect.deleteProperty(fileContents, 'packageManager');
|
|
221
|
+
}
|
|
222
|
+
else if (manifest['role'] === 'project'
|
|
223
|
+
&& packageManager !== undefined
|
|
224
|
+
&& (typeof packageManager !== 'string'
|
|
225
|
+
|| LIB_REGEX_PATTERN_NAME_AT_VERSION.test(packageManager) === false)) {
|
|
226
|
+
Logger.customize({
|
|
227
|
+
name: 'CliRecipePackageJsonSyncEnvironment.handleCorepack',
|
|
228
|
+
purpose: 'packageManager',
|
|
229
|
+
}).warn(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "packageManager". Invalid format detected.`);
|
|
230
|
+
Reflect.deleteProperty(fileContents, 'packageManager');
|
|
231
|
+
}
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
static syncNodeConstraint(workspace, constraint) {
|
|
235
|
+
const engines = workspace['fileContents']['engines'];
|
|
236
|
+
if (engines === undefined) {
|
|
237
|
+
Reflect.set(workspace['fileContents'], 'engines', { node: constraint });
|
|
238
|
+
Logger.customize({
|
|
239
|
+
name: 'CliRecipePackageJsonSyncEnvironment.syncNodeConstraint',
|
|
240
|
+
purpose: 'engines',
|
|
241
|
+
}).info(`${chalk.magenta(`"${workspace['manifest']['name']}" workspace`)} → Created "engines.node" with "${constraint}".`);
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
if (isPlainObject(engines) === false) {
|
|
245
|
+
Logger.customize({
|
|
246
|
+
name: 'CliRecipePackageJsonSyncEnvironment.syncNodeConstraint',
|
|
247
|
+
purpose: 'engines',
|
|
248
|
+
}).warn(`${chalk.magenta(`"${workspace['manifest']['name']}" workspace`)} → "engines" is not a plain object. Skipping.`);
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
const currentNode = engines['node'];
|
|
252
|
+
if (currentNode === constraint) {
|
|
253
|
+
Logger.customize({
|
|
254
|
+
name: 'CliRecipePackageJsonSyncEnvironment.syncNodeConstraint',
|
|
255
|
+
purpose: 'engines',
|
|
256
|
+
}).info(`${chalk.magenta(`"${workspace['manifest']['name']}" workspace`)} → "engines.node" is already up to date.`);
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
Reflect.set(engines, 'node', constraint);
|
|
260
|
+
const previous = (typeof currentNode === 'string') ? currentNode : String(currentNode ?? 'undefined');
|
|
261
|
+
Logger.customize({
|
|
262
|
+
name: 'CliRecipePackageJsonSyncEnvironment.syncNodeConstraint',
|
|
263
|
+
purpose: 'engines',
|
|
264
|
+
}).info(`${chalk.magenta(`"${workspace['manifest']['name']}" workspace`)} → Updated "engines.node" from "${previous}" to "${constraint}".`);
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
static isEmpty(value) {
|
|
268
|
+
if (value === null || value === undefined) {
|
|
269
|
+
return true;
|
|
270
|
+
}
|
|
271
|
+
if (typeof value === 'string') {
|
|
272
|
+
return value.trim() === '';
|
|
273
|
+
}
|
|
274
|
+
if (Array.isArray(value) === true) {
|
|
275
|
+
return value.length === 0;
|
|
276
|
+
}
|
|
277
|
+
if (typeof value === 'object') {
|
|
278
|
+
return Object.keys(value).length === 0;
|
|
279
|
+
}
|
|
280
|
+
return false;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
//# sourceMappingURL=sync-environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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CAAC,CAAC;QAErK,MAAM,CAAC,SAAS,CAAC;YACf,IAAI,EAAE,wDAAwD;YAC9D,OAAO,EAAE,SAAS;SACnB,CAAC,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,mCAAmC,QAAQ,SAAS,UAAU,IAAI,CAAC,CAAC;QAE5I,OAAO;IACT,CAAC;IAiBO,MAAM,CAAC,OAAO,CAAC,KAAsD;QAC3E,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YAC1C,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;QAC7B,CAAC;QAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;YAClC,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;QAC5B,CAAC;QAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;QACzC,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CliRecipePackageJsonSyncIdentityRunOptions, CliRecipePackageJsonSyncIdentityRunReturns } from '../../../types/cli/recipe/package-json/sync-identity.d.ts';
|
|
2
|
+
export declare class CliRecipePackageJsonSyncIdentity {
|
|
3
|
+
static run(options: CliRecipePackageJsonSyncIdentityRunOptions): CliRecipePackageJsonSyncIdentityRunReturns;
|
|
4
|
+
private static handle;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=sync-identity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-identity.d.ts","sourceRoot":"","sources":["../../../../../src/cli/recipe/package-json/sync-identity.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EA+BV,0CAA0C,EAG1C,0CAA0C,EAM3C,MAAM,2DAA2D,CAAC;AAWnE,qBAAa,gCAAgC;WAavB,GAAG,CAAC,OAAO,EAAE,0CAA0C,GAAG,0CAA0C;mBAyHnG,MAAM;CA2M5B"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { dirname, join, relative, } from 'path';
|
|
2
|
+
import chalk from 'chalk';
|
|
3
|
+
import { ApiSpdxLicenses } from '../../../api/spdx-licenses.js';
|
|
4
|
+
import { LibNovaConfig } from '../../../lib/nova-config.js';
|
|
5
|
+
import { LIB_REGEX_PATTERN_SEMVER_STRICT } from '../../../lib/regex.js';
|
|
6
|
+
import { isProjectRoot, loadWorkspaceManifests, pathExists, saveWorkspaceManifest, } from '../../../lib/utility.js';
|
|
7
|
+
import { Logger } from '../../../toolkit/index.js';
|
|
8
|
+
export class CliRecipePackageJsonSyncIdentity {
|
|
9
|
+
static async run(options) {
|
|
10
|
+
const currentDirectory = process.cwd();
|
|
11
|
+
const isAtProjectRoot = await isProjectRoot(currentDirectory);
|
|
12
|
+
if (isAtProjectRoot !== true) {
|
|
13
|
+
process.exitCode = 1;
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const isDryRun = options['dryRun'] === true;
|
|
17
|
+
const isReplaceFile = options['replaceFile'] === true;
|
|
18
|
+
if (isDryRun === true) {
|
|
19
|
+
Logger.customize({
|
|
20
|
+
name: 'CliRecipePackageJsonSyncIdentity.run',
|
|
21
|
+
purpose: 'options',
|
|
22
|
+
}).warn('Dry run enabled. File changes will not be made in this session.');
|
|
23
|
+
}
|
|
24
|
+
if (isReplaceFile === true) {
|
|
25
|
+
const replaceFileNotice = (isDryRun === true) ? 'This option has no effect during a dry run session.' : 'Backup file will not be created.';
|
|
26
|
+
Logger.customize({
|
|
27
|
+
name: 'CliRecipePackageJsonSyncIdentity.run',
|
|
28
|
+
purpose: 'options',
|
|
29
|
+
}).warn(`Replace file enabled. ${replaceFileNotice}`);
|
|
30
|
+
}
|
|
31
|
+
const workingFile = await new LibNovaConfig().load();
|
|
32
|
+
const workingFileWorkspaces = Object.entries(workingFile['workspaces'] ?? {});
|
|
33
|
+
if (workingFileWorkspaces.length === 0) {
|
|
34
|
+
Logger.customize({
|
|
35
|
+
name: 'CliRecipePackageJsonSyncIdentity.run',
|
|
36
|
+
purpose: 'workspaces',
|
|
37
|
+
}).warn('Skipping sync-identity. No workspaces detected in the "nova.config.json" file.');
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const eligibleWorkspaces = workingFileWorkspaces.filter((workspace) => {
|
|
41
|
+
const workspaceConfig = workspace[1];
|
|
42
|
+
const workspaceRecipes = workspaceConfig['recipes'];
|
|
43
|
+
if (workspaceRecipes === undefined) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
const recipeTuple = workspaceRecipes['sync-identity'];
|
|
47
|
+
if (recipeTuple === undefined) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
return recipeTuple[0] === true;
|
|
51
|
+
});
|
|
52
|
+
if (eligibleWorkspaces.length === 0) {
|
|
53
|
+
Logger.customize({
|
|
54
|
+
name: 'CliRecipePackageJsonSyncIdentity.run',
|
|
55
|
+
purpose: 'workspaces',
|
|
56
|
+
}).warn('Skipping sync-identity. No workspaces have this recipe enabled.');
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const workspaces = await loadWorkspaceManifests({
|
|
60
|
+
projectRoot: currentDirectory,
|
|
61
|
+
workspaces: eligibleWorkspaces,
|
|
62
|
+
});
|
|
63
|
+
if (workspaces.length === 0) {
|
|
64
|
+
Logger.customize({
|
|
65
|
+
name: 'CliRecipePackageJsonSyncIdentity.run',
|
|
66
|
+
purpose: 'workspaces',
|
|
67
|
+
}).warn('Skipping sync-identity. No accessible "package.json" files were found for the configured workspaces.');
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
Logger.customize({
|
|
71
|
+
name: 'CliRecipePackageJsonSyncIdentity.run',
|
|
72
|
+
purpose: 'summary',
|
|
73
|
+
}).info(`Prepared ${workspaces.length} workspace "package.json" file(s) for sync-identity.`);
|
|
74
|
+
for (const workspace of workspaces) {
|
|
75
|
+
Logger.customize({
|
|
76
|
+
name: 'CliRecipePackageJsonSyncIdentity.run',
|
|
77
|
+
purpose: 'iteration',
|
|
78
|
+
}).info(`Running sync-identity for the "${workspace['manifest']['name']}" workspace ...`);
|
|
79
|
+
await CliRecipePackageJsonSyncIdentity.handle(workspace, workingFile);
|
|
80
|
+
if (isDryRun === true) {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
await saveWorkspaceManifest(workspace, isReplaceFile);
|
|
84
|
+
}
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
static async handle(workspace, workingFile) {
|
|
88
|
+
const fileContents = workspace['fileContents'];
|
|
89
|
+
const filePath = workspace['filePath'];
|
|
90
|
+
const manifest = workspace['manifest'];
|
|
91
|
+
const packageName = fileContents['name'];
|
|
92
|
+
const packageVersion = fileContents['version'];
|
|
93
|
+
const packageDescription = fileContents['description'];
|
|
94
|
+
const packageKeywords = fileContents['keywords'];
|
|
95
|
+
const packageLicense = fileContents['license'];
|
|
96
|
+
const recipes = manifest['recipes'];
|
|
97
|
+
const recipeTuple = (recipes !== undefined) ? recipes['sync-identity'] : undefined;
|
|
98
|
+
const recipeSettings = (recipeTuple !== undefined && recipeTuple.length > 1) ? recipeTuple[1] : undefined;
|
|
99
|
+
if (typeof packageName !== 'string'
|
|
100
|
+
|| packageName !== manifest['name']) {
|
|
101
|
+
Logger.customize({
|
|
102
|
+
name: 'CliRecipePackageJsonSyncIdentity.handle',
|
|
103
|
+
purpose: 'name',
|
|
104
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Syncing "name" from workspace manifest ...`);
|
|
105
|
+
Reflect.set(fileContents, 'name', manifest['name']);
|
|
106
|
+
}
|
|
107
|
+
if (typeof packageVersion !== 'string'
|
|
108
|
+
|| LIB_REGEX_PATTERN_SEMVER_STRICT.test(packageVersion) === false
|
|
109
|
+
|| (['freezable'].includes(manifest['policy']) === true
|
|
110
|
+
&& packageVersion !== '0.0.0') || ([
|
|
111
|
+
'trackable',
|
|
112
|
+
'distributable',
|
|
113
|
+
].includes(manifest['policy']) === true
|
|
114
|
+
&& packageVersion === '0.0.0')) {
|
|
115
|
+
const validVersion = (manifest['policy'] === 'freezable') ? '0.0.0' : '0.0.1';
|
|
116
|
+
Logger.customize({
|
|
117
|
+
name: 'CliRecipePackageJsonSyncIdentity.handle',
|
|
118
|
+
purpose: 'version',
|
|
119
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Invalid version detected. Setting it to "${validVersion}" ...`);
|
|
120
|
+
Reflect.set(fileContents, 'version', validVersion);
|
|
121
|
+
}
|
|
122
|
+
if (packageDescription !== undefined
|
|
123
|
+
&& manifest['policy'] !== 'distributable') {
|
|
124
|
+
Logger.customize({
|
|
125
|
+
name: 'CliRecipePackageJsonSyncIdentity.handle',
|
|
126
|
+
purpose: 'description',
|
|
127
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "description". Workspace policy "${manifest['policy']}" does not allow it.`);
|
|
128
|
+
Reflect.deleteProperty(fileContents, 'description');
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
const validDescription = (workingFile['project'] !== undefined && workingFile['project']['description'] !== undefined) ? workingFile['project']['description']['short'] : undefined;
|
|
132
|
+
if ((manifest['policy'] === 'distributable'
|
|
133
|
+
&& recipeSettings !== undefined
|
|
134
|
+
&& recipeSettings['description'] === true
|
|
135
|
+
&& validDescription !== undefined)
|
|
136
|
+
&& (typeof packageDescription !== 'string'
|
|
137
|
+
|| packageDescription !== validDescription)) {
|
|
138
|
+
Logger.customize({
|
|
139
|
+
name: 'CliRecipePackageJsonSyncIdentity.handle',
|
|
140
|
+
purpose: 'description',
|
|
141
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Syncing "description" from workspace manifest ...`);
|
|
142
|
+
Reflect.set(fileContents, 'description', validDescription);
|
|
143
|
+
}
|
|
144
|
+
if (manifest['policy'] === 'distributable'
|
|
145
|
+
&& recipeSettings !== undefined
|
|
146
|
+
&& recipeSettings['description'] === true
|
|
147
|
+
&& validDescription === undefined) {
|
|
148
|
+
Logger.customize({
|
|
149
|
+
name: 'CliRecipePackageJsonSyncIdentity.handle',
|
|
150
|
+
purpose: 'description',
|
|
151
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "description". No description is defined.`);
|
|
152
|
+
Reflect.deleteProperty(fileContents, 'description');
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (packageKeywords !== undefined
|
|
156
|
+
&& manifest['policy'] !== 'distributable') {
|
|
157
|
+
Logger.customize({
|
|
158
|
+
name: 'CliRecipePackageJsonSyncIdentity.handle',
|
|
159
|
+
purpose: 'keywords',
|
|
160
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "keywords". Workspace policy "${manifest['policy']}" does not allow it.`);
|
|
161
|
+
Reflect.deleteProperty(fileContents, 'keywords');
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
const validKeywords = (workingFile['project'] !== undefined) ? workingFile['project']['keywords'] : undefined;
|
|
165
|
+
if ((manifest['policy'] === 'distributable'
|
|
166
|
+
&& recipeSettings !== undefined
|
|
167
|
+
&& recipeSettings['keywords'] === true
|
|
168
|
+
&& validKeywords !== undefined)
|
|
169
|
+
&& (JSON.stringify(packageKeywords) !== JSON.stringify(validKeywords))) {
|
|
170
|
+
Logger.customize({
|
|
171
|
+
name: 'CliRecipePackageJsonSyncIdentity.handle',
|
|
172
|
+
purpose: 'keywords',
|
|
173
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Syncing "keywords" from workspace manifest ...`);
|
|
174
|
+
Reflect.set(fileContents, 'keywords', validKeywords);
|
|
175
|
+
}
|
|
176
|
+
if (manifest['policy'] === 'distributable'
|
|
177
|
+
&& recipeSettings !== undefined
|
|
178
|
+
&& recipeSettings['keywords'] === true
|
|
179
|
+
&& validKeywords === undefined) {
|
|
180
|
+
Logger.customize({
|
|
181
|
+
name: 'CliRecipePackageJsonSyncIdentity.handle',
|
|
182
|
+
purpose: 'keywords',
|
|
183
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "keywords". No keywords are defined.`);
|
|
184
|
+
Reflect.deleteProperty(fileContents, 'keywords');
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
const spdxLicenses = await ApiSpdxLicenses.fetchLicenses();
|
|
188
|
+
if (typeof packageLicense !== 'string'
|
|
189
|
+
|| (spdxLicenses !== undefined
|
|
190
|
+
&& spdxLicenses.has(packageLicense) === false)) {
|
|
191
|
+
const packageDirectory = dirname(filePath);
|
|
192
|
+
const projectRoot = process.cwd();
|
|
193
|
+
const licenseCandidates = [
|
|
194
|
+
join(packageDirectory, 'LICENSE'),
|
|
195
|
+
join(packageDirectory, 'LICENSE.md'),
|
|
196
|
+
join(projectRoot, 'LICENSE'),
|
|
197
|
+
join(projectRoot, 'LICENSE.md'),
|
|
198
|
+
];
|
|
199
|
+
let resolvedLicensePath = undefined;
|
|
200
|
+
for (const candidate of licenseCandidates) {
|
|
201
|
+
if (await pathExists(candidate) === true) {
|
|
202
|
+
resolvedLicensePath = candidate;
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
const relativeLicensePath = (resolvedLicensePath !== undefined) ? relative(packageDirectory, resolvedLicensePath) : undefined;
|
|
207
|
+
let normalizedLicenseReference = undefined;
|
|
208
|
+
if (relativeLicensePath !== undefined) {
|
|
209
|
+
normalizedLicenseReference = (relativeLicensePath.startsWith('.') === true) ? relativeLicensePath : `./${relativeLicensePath}`;
|
|
210
|
+
}
|
|
211
|
+
const fallbackLicense = (normalizedLicenseReference !== undefined) ? `SEE LICENSE IN ${normalizedLicenseReference}` : 'UNLICENSED';
|
|
212
|
+
if (packageLicense === fallbackLicense) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
Logger.customize({
|
|
216
|
+
name: 'CliRecipePackageJsonSyncIdentity.handle',
|
|
217
|
+
purpose: 'license',
|
|
218
|
+
}).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Syncing "license" to "${fallbackLicense}" ...`);
|
|
219
|
+
Reflect.set(fileContents, 'license', fallbackLicense);
|
|
220
|
+
}
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=sync-identity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-identity.js","sourceRoot":"","sources":["../../../../../src/cli/recipe/package-json/sync-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,IAAI,EACJ,QAAQ,GACT,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,UAAU,EACV,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAqDnD,MAAM,OAAO,gCAAgC;IAapC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,OAAmD;QACzE,MAAM,gBAAgB,GAAwD,OAAO,CAAC,GAAG,EAAE,CAAC;QAC5F,MAAM,eAAe,GAAuD,MAAM,aAAa,CAAC,gBAAgB,CAAC,CAAC;QAElH,IAAI,eAAe,KAAK,IAAI,EAAE,CAAC;YAC7B,OAA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package-json/sync-ownership.d.ts';
|
|
2
|
+
export declare class CliRecipePackageJsonSyncOwnership {
|
|
3
|
+
static run(options: CliRecipePackageJsonSyncOwnershipRunOptions): CliRecipePackageJsonSyncOwnershipRunReturns;
|
|
4
|
+
private static handle;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=sync-ownership.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-ownership.d.ts","sourceRoot":"","sources":["../../../../../src/cli/recipe/package-json/sync-ownership.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EA8BV,2CAA2C,EAG3C,2CAA2C,EAM5C,MAAM,4DAA4D,CAAC;AAUpE,qBAAa,iCAAiC;WAaxB,GAAG,CAAC,OAAO,EAAE,2CAA2C,GAAG,2CAA2C;IAyH1H,OAAO,CAAC,MAAM,CAAC,MAAM;CA+XtB"}
|