@theholocron/astromech 5.0.0-alpha.256 → 5.0.0-alpha.257

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/dist/index.d.mts CHANGED
@@ -738,7 +738,20 @@ declare function createIgnoreConfig(): string;
738
738
  * `pnpm exec holocron`; the source repo passes `node cli/cli/dist/cli.mjs`.
739
739
  */
740
740
  declare function createConfig(holocronScript?: string): string;
741
- declare function createConfig$1(): string;
741
+ /** What varies in the generated `.github/dependabot.yml`; the rest of the file is the same for every repo. */
742
+ interface DependabotConfigOptions {
743
+ /**
744
+ * Packages Dependabot must not raise version updates for, by exact name. Each becomes a name-only
745
+ * `ignore` entry on the npm ecosystem. Security updates are not affected: for those, Dependabot
746
+ * only honours an `ignore` entry that lists `versions`.
747
+ */
748
+ ignore?: readonly string[];
749
+ }
750
+ /**
751
+ * The content of `.github/dependabot.yml`, with its generated-file header. Names in `ignore` get a name-only
752
+ * `ignore` entry on the npm ecosystem; with none, the file is the shared body unchanged.
753
+ */
754
+ declare function createConfig$1({ ignore }?: DependabotConfigOptions): string;
742
755
  declare function createConfig$2(): string;
743
756
  declare function createConfig$3(): string;
744
757
  /**
@@ -836,4 +849,4 @@ export declare function discoverWorkspacePackages(repoRoot: string, options?: Di
836
849
  * as `<root>/*` when there is no such file or it lists none.
837
850
  */
838
851
  export declare function resolveWorkspaceGlobs(repoRoot: string, options?: Pick<DiscoverWorkspacePackagesOptions, "readText">): WorkspaceGlobs;
839
- export { type Astromech, type AstromechOptions, type CiJobReport, type CiOptions, type CiReport, type CreateHeaderOptions, type DeployOnReleaseOptions, type DeployOnReleaseReport, type DeployOnReleaseResult, type WorkspacePackage as DeployWorkspacePackage, type DiscoverWorkspacePackagesOptions, type ExecFn, type GroupJobReport, type GroupOptions, type GroupReport, type HeaderFunctions, type JobDef, type LocalRunner, type OrgContext, type PreviewConfig, type RunLogger, type RunOptions, type RunTaskInput, type RunTaskReport, type TaskDef, type TsconfigOptions, type WorkflowHeaderFormat, type WorkspaceGlobs, type WorkspacePackage$1 as WorkspacePackage, createIgnoreConfig as createAlexignore, createRcConfig as createAlexrc, createConfig as createCommitMsg, createConfig$1 as createDependabot, createConfig$2 as createDevmoji, createConfig$3 as createEditorconfig, createConfig$4 as createEditorconfigChecker, createConfig$5 as createLabeler, createConfig$6 as createPreCommit, createConfig$7 as createPrePush, createConfig$8 as createPrepareCommitMsg, createIgnoreConfig$1 as createYamlignore, createConfig$9 as createYamllint };
852
+ export { type Astromech, type AstromechOptions, type CiJobReport, type CiOptions, type CiReport, type CreateHeaderOptions, type DependabotConfigOptions, type DeployOnReleaseOptions, type DeployOnReleaseReport, type DeployOnReleaseResult, type WorkspacePackage as DeployWorkspacePackage, type DiscoverWorkspacePackagesOptions, type ExecFn, type GroupJobReport, type GroupOptions, type GroupReport, type HeaderFunctions, type JobDef, type LocalRunner, type OrgContext, type PreviewConfig, type RunLogger, type RunOptions, type RunTaskInput, type RunTaskReport, type TaskDef, type TsconfigOptions, type WorkflowHeaderFormat, type WorkspaceGlobs, type WorkspacePackage$1 as WorkspacePackage, createIgnoreConfig as createAlexignore, createRcConfig as createAlexrc, createConfig as createCommitMsg, createConfig$1 as createDependabot, createConfig$2 as createDevmoji, createConfig$3 as createEditorconfig, createConfig$4 as createEditorconfigChecker, createConfig$5 as createLabeler, createConfig$6 as createPreCommit, createConfig$7 as createPrePush, createConfig$8 as createPrepareCommitMsg, createIgnoreConfig$1 as createYamlignore, createConfig$9 as createYamllint };
package/dist/index.mjs CHANGED
@@ -275,7 +275,7 @@ var setup_node_default = "name: Setup Node\ndescription: Install pnpm and Node.j
275
275
  // src/templates/reusable/bookkeeping.yml
276
276
  var bookkeeping_default$1 = "name: Bookkeeping\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n configuration-path:\n description: Path to the labeler configuration file in the calling repo\n type: string\n required: false\n default: .github/labeler.yml\n\njobs:\n label:\n name: Apply Labels\n permissions:\n contents: read\n issues: write\n pull-requests: write\n runs-on: ubuntu-latest\n timeout-minutes: 5\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n with:\n sparse-checkout: ${{ inputs.configuration-path || '.github/labeler.yml' }}\n sparse-checkout-cone-mode: false\n\n - uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4\n if: ${{ github.event_name == 'pull_request' && hashFiles(inputs.configuration-path || '.github/labeler.yml') != '' }}\n # v3.4 bundles Node 20; allow it to run under Actions' current default.\n env:\n ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true\n with:\n # Fall back to default path when triggered directly (not via workflow_call)\n # because inputs.* defaults only apply on workflow_call events.\n configuration-path: ${{ inputs.configuration-path || '.github/labeler.yml' }}\n include-title: 1\n include-body: 0\n sync-labels: 1\n enable-versioned-regex: 0\n repo-token: ${{ github.token }}\n";
277
277
  // src/templates/reusable/delivery.build.yml
278
- var delivery_build_default$1 = "name: Build\n\n# Sanity check that every workspace actually compiles to dist/ — doesn't\n# upload or publish anything. delivery.publish builds again before\n# publishing; this just answers \"does it build?\" on every push/PR.\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n build:\n name: Build every workspace\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 10\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Build\n with:\n task: delivery.build\n";
278
+ var delivery_build_default$1 = "name: Build\n\n# Sanity check that every workspace actually compiles to dist/ — doesn't\n# upload or publish anything. delivery.publish builds again before\n# publishing; this just answers \"does it build?\" on every push/PR.\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n affected:\n description: Run only the packages changed since the PR base, plus their dependents (turbo --affected). Needs a turbo.json; checks out full history. Other repos keep today's behaviour while this is false.\n type: boolean\n required: false\n default: false\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n build:\n name: Build every workspace\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 10\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n with:\n # --affected needs the base commit, which a depth-1 checkout does not have.\n fetch-depth: ${{ inputs.affected && '0' || '1' }}\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Build\n with:\n task: delivery.build\n affected: ${{ inputs.affected }}\n";
279
279
  // src/templates/reusable/delivery.bundleSize.yml
280
280
  var delivery_bundleSize_default$1 = "name: Audit the Bundle Size\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n CODECOV_TOKEN:\n required: false\n TURBO_TOKEN:\n required: false\n\njobs:\n bundle-size:\n name: Upload bundle stats to Codecov\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 15\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n # Read by the bundle-stats uploader inside `holocron run delivery.build`.\n CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Build and upload bundle stats\n with:\n task: delivery.build\n";
281
281
  // src/templates/reusable/delivery.deploy.yml
@@ -331,9 +331,9 @@ var tag_default = "name: Tag\n\n# Release Please — fully automated tag and Git
331
331
  // src/templates/reusable/verification.performance.yml
332
332
  var verification_performance_default$1 = "name: Audit the Performance\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n lighthouse-config:\n description: >\n Path to the Lighthouse CI config file, forwarded to `holocron run\n verification.performance -- --config`. Defaults to\n lighthouse.config.cjs (the org standard).\n type: string\n required: false\n default: lighthouse.config.cjs\n secrets:\n LHCI_GITHUB_APP_TOKEN:\n required: false\n TURBO_TOKEN:\n required: false\n\njobs:\n performance:\n name: Run Lighthouse CI\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 15\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n # Read by `lhci autorun` inside `holocron run verification.performance`.\n LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - run: npm install -g @lhci/cli@0.14.x\n name: Install Lighthouse CLI\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Run Lighthouse CI\n with:\n task: verification.performance\n args: --config=${{ inputs.lighthouse-config }}\n";
333
333
  // src/templates/reusable/verification.typeSafety.yml
334
- var verification_typeSafety_default$1 = "name: Typecheck\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n typecheck:\n name: Run tsc --noEmit\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 10\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Type check\n with:\n task: verification.typeSafety\n";
334
+ var verification_typeSafety_default$1 = "name: Typecheck\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n affected:\n description: Run only the packages changed since the PR base, plus their dependents (turbo --affected). Needs a turbo.json; checks out full history. Other repos keep today's behaviour while this is false.\n type: boolean\n required: false\n default: false\n secrets:\n TURBO_TOKEN:\n required: false\n\njobs:\n typecheck:\n name: Run tsc --noEmit\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 10\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n with:\n # --affected needs the base commit, which a depth-1 checkout does not have.\n fetch-depth: ${{ inputs.affected && '0' || '1' }}\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Type check\n with:\n task: verification.typeSafety\n affected: ${{ inputs.affected }}\n";
335
335
  // src/templates/reusable/verification.unitTests.yml
336
- var verification_unitTests_default$1 = "name: Test\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n run-unit:\n description: Run unit tests with coverage (disable for UI-only repos that use Storybook testing exclusively)\n type: boolean\n required: false\n default: true\n run-storybook:\n description: Run Storybook vitest interaction tests (requires .storybook/ setup)\n type: boolean\n required: false\n default: false\n run-interaction:\n description: Run Storybook interaction and accessibility tests with Playwright\n type: boolean\n required: false\n default: false\n run-user-flow:\n description: Run Cypress E2E user-flow tests (requires cypress.config.*)\n type: boolean\n required: false\n default: false\n wait-on-url:\n description: URL to wait for before running Cypress tests (default is Vite dev server; override for non-Vite stacks e.g. http://localhost:3000 for Next.js)\n type: string\n required: false\n default: \"http://localhost:5173\"\n secrets:\n CYPRESS_RECORD_KEY:\n required: false\n TURBO_TOKEN:\n required: false\n\njobs:\n unit:\n name: Run unit tests and collect coverage\n if: ${{ inputs.run-unit }}\n permissions:\n contents: read\n id-token: write\n runs-on: ubuntu-latest\n timeout-minutes: 15\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Run tests with coverage\n with:\n task: verification.unitTests\n\n # A Codecov upload must not fail silently. fail_ci_if_error makes a failed\n # upload fail this step (the action's default is to log the error and pass),\n # which fails the job and so the `Test / Conclusion` check. Whether that\n # blocks a merge is up to whether the check is required, not this workflow\n # (holocron#934).\n - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0\n name: Upload coverage to Codecov\n with:\n use_oidc: true\n fail_ci_if_error: true\n\n - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0\n name: Upload test results to Codecov\n if: ${{ !cancelled() }}\n with:\n use_oidc: true\n fail_ci_if_error: true\n report_type: test_results\n files: \"**/test-report.junit.xml\"\n\n storybook:\n name: Run Storybook interaction tests\n if: ${{ inputs.run-storybook }}\n permissions:\n contents: read\n id-token: write\n runs-on: ubuntu-latest\n timeout-minutes: 15\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - run: pnpm exec playwright install chromium --with-deps\n name: Install Playwright\n\n - run: pnpm test:storybook\n name: Run Storybook tests\n\n # A Codecov upload must not fail silently. fail_ci_if_error makes a failed\n # upload fail this step (the action's default is to log the error and pass),\n # which fails the job and so the `Test / Conclusion` check. Whether that\n # blocks a merge is up to whether the check is required, not this workflow\n # (holocron#934).\n - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0\n name: Upload coverage to Codecov\n with:\n use_oidc: true\n fail_ci_if_error: true\n\n - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0\n name: Upload test results to Codecov\n if: ${{ !cancelled() }}\n with:\n use_oidc: true\n fail_ci_if_error: true\n report_type: test_results\n files: \"**/test-report.junit.xml\"\n\n interaction-and-accessibility:\n name: Run interactions and accessibility tests\n if: ${{ inputs.run-interaction }}\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 15\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - run: pnpm exec playwright install --with-deps\n name: Install Playwright\n\n - run: pnpm test:storybook\n name: Run interaction and accessibility tests\n\n user-flow:\n name: Run user flow tests\n if: ${{ inputs.run-user-flow }}\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 15\n strategy:\n fail-fast: false\n matrix:\n containers: [1, 2]\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - run: pnpm exec cypress install\n name: Install Cypress binary\n\n - uses: cypress-io/github-action@1052aa98bbbe4f55210f844878213c07d9c8c399 # v6.7.13\n name: Cypress run\n with:\n start: pnpm dev\n wait-on: ${{ inputs.wait-on-url }}\n record: true\n parallel: true\n env:\n CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n conclusion:\n name: Conclusion\n runs-on: ubuntu-latest\n if: always()\n needs: [unit, storybook, interaction-and-accessibility, user-flow]\n steps:\n - name: Check job statuses\n run: |\n if [[ \"$RESULTS\" == *\"failure\"* ]] || [[ \"$RESULTS\" == *\"cancelled\"* ]]; then\n exit 1\n fi\n env:\n RESULTS: ${{ join(needs.*.result, ',') }}\n";
336
+ var verification_unitTests_default$1 = "name: Test\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n affected:\n description: Run only the packages changed since the PR base, plus their dependents (turbo --affected). Needs a turbo.json; checks out full history. Other repos keep today's behaviour while this is false.\n type: boolean\n required: false\n default: false\n run-unit:\n description: Run unit tests with coverage (disable for UI-only repos that use Storybook testing exclusively)\n type: boolean\n required: false\n default: true\n run-storybook:\n description: Run Storybook vitest interaction tests (requires .storybook/ setup)\n type: boolean\n required: false\n default: false\n run-interaction:\n description: Run Storybook interaction and accessibility tests with Playwright\n type: boolean\n required: false\n default: false\n run-user-flow:\n description: Run Cypress E2E user-flow tests (requires cypress.config.*)\n type: boolean\n required: false\n default: false\n wait-on-url:\n description: URL to wait for before running Cypress tests (default is Vite dev server; override for non-Vite stacks e.g. http://localhost:3000 for Next.js)\n type: string\n required: false\n default: \"http://localhost:5173\"\n secrets:\n CYPRESS_RECORD_KEY:\n required: false\n TURBO_TOKEN:\n required: false\n\njobs:\n unit:\n name: Run unit tests and collect coverage\n if: ${{ inputs.run-unit }}\n permissions:\n contents: read\n id-token: write\n runs-on: ubuntu-latest\n timeout-minutes: 15\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n with:\n # --affected needs the base commit, which a depth-1 checkout does not have.\n fetch-depth: ${{ inputs.affected && '0' || '1' }}\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: theholocron/.github/.github/actions/holocron@main\n name: Run tests with coverage\n with:\n task: verification.unitTests\n affected: ${{ inputs.affected }}\n\n # With `affected`, a run that selects nothing (a README-only PR) writes no coverage. The two\n # required Codecov statuses still have to post, so say so with an empty upload instead of\n # failing the upload. Without `affected` a missing report stays an error.\n - id: reports\n name: Look for coverage and test reports\n if: ${{ inputs.affected }}\n shell: bash\n run: |\n # find, not hashFiles('**/…'): hashFiles walks node_modules and can time out in a large workspace.\n has() { [ -n \"$(find . -path ./node_modules -prune -o -path '*/node_modules' -prune -o -name \"$1\" -print -quit)\" ]; }\n has lcov.info && echo \"coverage=true\" >> \"$GITHUB_OUTPUT\" || echo \"coverage=false\" >> \"$GITHUB_OUTPUT\"\n has test-report.junit.xml && echo \"tests=true\" >> \"$GITHUB_OUTPUT\" || echo \"tests=false\" >> \"$GITHUB_OUTPUT\"\n\n # A Codecov upload must not fail silently. fail_ci_if_error makes a failed\n # upload fail this step (the action's default is to log the error and pass),\n # which fails the job and so the `Test / Conclusion` check. Whether that\n # blocks a merge is up to whether the check is required, not this workflow\n # (holocron#934).\n - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0\n name: Upload coverage to Codecov\n if: ${{ !inputs.affected || steps.reports.outputs.coverage == 'true' }}\n with:\n use_oidc: true\n fail_ci_if_error: true\n\n - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0\n name: Upload test results to Codecov\n if: ${{ !cancelled() && (!inputs.affected || steps.reports.outputs.tests == 'true') }}\n with:\n use_oidc: true\n fail_ci_if_error: true\n report_type: test_results\n files: \"**/test-report.junit.xml\"\n\n - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0\n name: Post the Codecov statuses without a report\n if: ${{ inputs.affected && steps.reports.outputs.coverage != 'true' }}\n with:\n use_oidc: true\n fail_ci_if_error: true\n run_command: empty-upload\n\n storybook:\n name: Run Storybook interaction tests\n if: ${{ inputs.run-storybook }}\n permissions:\n contents: read\n id-token: write\n runs-on: ubuntu-latest\n timeout-minutes: 15\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - run: pnpm exec playwright install chromium --with-deps\n name: Install Playwright\n\n - run: pnpm test:storybook\n name: Run Storybook tests\n\n # A Codecov upload must not fail silently. fail_ci_if_error makes a failed\n # upload fail this step (the action's default is to log the error and pass),\n # which fails the job and so the `Test / Conclusion` check. Whether that\n # blocks a merge is up to whether the check is required, not this workflow\n # (holocron#934).\n - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0\n name: Upload coverage to Codecov\n with:\n use_oidc: true\n fail_ci_if_error: true\n\n - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0\n name: Upload test results to Codecov\n if: ${{ !cancelled() }}\n with:\n use_oidc: true\n fail_ci_if_error: true\n report_type: test_results\n files: \"**/test-report.junit.xml\"\n\n interaction-and-accessibility:\n name: Run interactions and accessibility tests\n if: ${{ inputs.run-interaction }}\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 15\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - run: pnpm exec playwright install --with-deps\n name: Install Playwright\n\n - run: pnpm test:storybook\n name: Run interaction and accessibility tests\n\n user-flow:\n name: Run user flow tests\n if: ${{ inputs.run-user-flow }}\n permissions:\n contents: read\n runs-on: ubuntu-latest\n timeout-minutes: 15\n strategy:\n fail-fast: false\n matrix:\n containers: [1, 2]\n env:\n TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - run: pnpm exec cypress install\n name: Install Cypress binary\n\n - uses: cypress-io/github-action@1052aa98bbbe4f55210f844878213c07d9c8c399 # v6.7.13\n name: Cypress run\n with:\n start: pnpm dev\n wait-on: ${{ inputs.wait-on-url }}\n record: true\n parallel: true\n env:\n CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n conclusion:\n name: Conclusion\n runs-on: ubuntu-latest\n if: always()\n needs: [unit, storybook, interaction-and-accessibility, user-flow]\n steps:\n - name: Check job statuses\n run: |\n if [[ \"$RESULTS\" == *\"failure\"* ]] || [[ \"$RESULTS\" == *\"cancelled\"* ]]; then\n exit 1\n fi\n env:\n RESULTS: ${{ join(needs.*.result, ',') }}\n";
337
337
  // src/templates/reusable/verification.visualRegression.yml
338
338
  var verification_visualRegression_default$1 = "name: Visual Regression\n\non: # yamllint disable-line rule:truthy\n workflow_call:\n inputs:\n chromatic-projects:\n description: >\n JSON array of Chromatic projects to build, one matrix job per entry.\n Each entry: { \"tokenName\": \"WEB\", \"workingDir\": \"apps/web\", \"buildScript\": \"build:storybook\" }.\n tokenName maps to secret CHROMATIC_PROJECT_TOKEN_<TOKENNAME>; use \"default\"\n (or omit for the legacy empty-string form) to use the bare CHROMATIC_PROJECT_TOKEN\n secret for single-project repos.\n buildScript defaults to \"build:storybook\" when omitted.\n Required -- this task only exists in a repo's workflow list when it\n opts into Chromatic at all (holocron#394/#1062): GitHub evaluates a\n job's `if:` before expanding its `strategy.matrix`, so no default\n here (empty or otherwise) can make a *disabled* Chromatic job\n disappear from PR checks -- only not generating this job's thin\n caller in the first place can. A repo that doesn't want Chromatic\n simply omits `verification.visualRegression` from its `tasks:`.\n type: string\n required: true\n secrets:\n CHROMATIC_PROJECT_TOKEN:\n required: false\n\njobs:\n visual-and-composition:\n name: Run visual and composition tests\n strategy:\n fail-fast: false\n matrix:\n project: ${{ fromJSON(inputs.chromatic-projects) }}\n permissions:\n contents: read\n statuses: write\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0\n name: Checkout repository\n with:\n fetch-depth: 0\n\n - uses: theholocron/.github/.github/actions/setup@main\n name: Setup\n\n - uses: chromaui/action@14cfaef73576e69f95f47f60058063f46ca38719 # v18\n name: Publish to Chromatic\n with:\n projectToken: ${{ (matrix.project.tokenName == 'default' || matrix.project.tokenName == '') && secrets.CHROMATIC_PROJECT_TOKEN || secrets[format('CHROMATIC_PROJECT_TOKEN_{0}', matrix.project.tokenName)] }}\n token: ${{ github.token }}\n buildScriptName: ${{ matrix.project.buildScript || 'build:storybook' }}\n workingDir: ${{ matrix.project.workingDir || '.' }}\n storybookBaseDir: ${{ matrix.project.storybookBaseDir || '' }}\n untraced: ${{ matrix.project.untraced || '' }}\n onlyStoryFiles: ${{ matrix.project.onlyStoryFiles || '' }}\n exitZeroOnChanges: ${{ matrix.project.exitZeroOnChanges || false }}\n";
339
339
  // src/templates/workflows/bookkeeping.yml
@@ -1016,9 +1016,13 @@ const TASKS = {
1016
1016
  turbo: {
1017
1017
  inputs: [
1018
1018
  "src/**",
1019
+ "test/**",
1019
1020
  "vitest.config.ts",
1020
1021
  "vitest.config.js",
1021
1022
  "vitest.config.mjs",
1023
+ "$TURBO_ROOT$/vitest.config.ts",
1024
+ "$TURBO_ROOT$/vitest.config.js",
1025
+ "$TURBO_ROOT$/vitest.config.mjs",
1022
1026
  "package.json"
1023
1027
  ],
1024
1028
  outputs: ["test-report.junit.xml", "coverage/**"],
@@ -1031,7 +1035,11 @@ const TASKS = {
1031
1035
  args: ["--noEmit"]
1032
1036
  },
1033
1037
  turbo: {
1034
- inputs: ["src/**", "tsconfig.json"],
1038
+ inputs: [
1039
+ "src/**",
1040
+ "test/**",
1041
+ "tsconfig.json"
1042
+ ],
1035
1043
  outputs: [],
1036
1044
  dependsOn: ["^delivery.build"]
1037
1045
  }
@@ -1295,6 +1303,143 @@ function createTsconfig(options) {
1295
1303
  };
1296
1304
  return stringifyJson(config);
1297
1305
  }
1306
+ // src/utils/create-header/create-header.ts
1307
+ /**
1308
+ * Factory that binds `source` and `tool` once and returns all header
1309
+ * constructors for auto-generated files. Prefer this over passing source
1310
+ * as a positional argument at every call site.
1311
+ *
1312
+ * @example
1313
+ * const { workflowHeader, scaffoldHeader } = createHeader({
1314
+ * source: "cli/astromech/src/templates/configs/editorconfig/create-config.ts",
1315
+ * });
1316
+ *
1317
+ * export function createConfig(): string {
1318
+ * return `${workflowHeader()}${body}`;
1319
+ * }
1320
+ *
1321
+ * ## Which header to use
1322
+ *
1323
+ * | Function | When to use | User can edit? |
1324
+ * |-------------------|----------------------------------------------------|----------------|
1325
+ * | `workflowHeader` | Files overwritten on every setup / sync-github run | No — "AUTO-GENERATED — do not edit" |
1326
+ * | `scaffoldHeader` | Files written once; user takes ownership after | Yes — "Scaffolded — edit this file freely" |
1327
+ *
1328
+ * ## `workflowHeader` formats
1329
+ *
1330
+ * | Format | Comment style | Used for |
1331
+ * |---------------------|------------------------|-------------------------------------------------------|
1332
+ * | `"yaml"` (default) | `# …` lines | YAML workflows, ignore files, `.editorconfig`, labeler|
1333
+ * | `"cjs"` | `/* … *\/` block | CommonJS config files (`.cjs`) |
1334
+ * | `"shebang"` | `#!/bin/sh` + `# …` | Shell scripts (`prepare-commit-msg`, hooks) |
1335
+ */
1336
+ function createHeader(options) {
1337
+ const { source, tool = "holocron repo setup", forPrimary = false } = options;
1338
+ const doNotEdit = forPrimary ? `AUTO-GENERATED — do not edit in theholocron/.github directly.` : `AUTO-GENERATED — do not edit directly.`;
1339
+ return {
1340
+ workflowHeader(format = "yaml") {
1341
+ if (format === "cjs") return [
1342
+ `/* ${doNotEdit}`,
1343
+ ` * Source: theholocron/holocron · ${source}`,
1344
+ ` * Tool: ${tool}`,
1345
+ ` * Changes: edit source in theholocron/holocron`,
1346
+ ` */`,
1347
+ ``
1348
+ ].join("\n");
1349
+ const yamlLines = [
1350
+ `# ${doNotEdit}`,
1351
+ `# Source: theholocron/holocron · ${source}`,
1352
+ `# Tool: ${tool}`,
1353
+ `# Changes: edit source in theholocron/holocron`,
1354
+ ``
1355
+ ].join("\n");
1356
+ if (format === "shebang") return `#!/bin/sh\n\n${yamlLines}`;
1357
+ return yamlLines;
1358
+ },
1359
+ scaffoldHeader() {
1360
+ return [
1361
+ `# Scaffolded by holocron repo setup — edit this file freely.`,
1362
+ `# Source: theholocron/holocron · ${source}`,
1363
+ ``
1364
+ ].join("\n");
1365
+ }
1366
+ };
1367
+ }
1368
+ // src/utils/default-list-dirs/default-list-dirs.ts
1369
+ const defaultListDirs = (path) => readdirSync(path, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => entry.name);
1370
+ // src/utils/default-read-json/default-read-json.ts
1371
+ const defaultReadJson = (path) => JSON.parse(readFileSync(path, "utf8"));
1372
+ // src/utils/default-run/default-run.ts
1373
+ const defaultRun = (command, args, opts) => spawnSync(command, args, {
1374
+ encoding: "utf8",
1375
+ ...opts
1376
+ });
1377
+ // src/utils/default-sleep/default-sleep.ts
1378
+ const defaultSleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
1379
+ // src/utils/exec/exec.ts
1380
+ /** Runs `cmd` with the parent's stdio; a signal-killed or unspawnable process reports `-1`. */
1381
+ const realExec = (cmd, args, opts) => {
1382
+ return { exitCode: spawnSync(cmd, args, {
1383
+ cwd: opts.cwd,
1384
+ stdio: "inherit",
1385
+ ...opts.env ? { env: {
1386
+ ...process.env,
1387
+ ...opts.env
1388
+ } } : {}
1389
+ }).status ?? -1 };
1390
+ };
1391
+ // src/utils/format-json/format-json.ts
1392
+ /** Prettier's default for a JSON file under this repo's config (`printWidth: 120`, 2-space indent). */
1393
+ const PRINT_WIDTH = 120;
1394
+ const INDENT = " ";
1395
+ const pad = (depth) => INDENT.repeat(depth);
1396
+ const isPlain = (value) => value === null || typeof value !== "object";
1397
+ /**
1398
+ * `column` is how many characters are already on the line before `value`, and `comma` is 1 when a `,` follows it:
1399
+ * Prettier counts both when it decides whether an array fits on its line.
1400
+ */
1401
+ function render(value, depth, column, comma) {
1402
+ if (isPlain(value)) return JSON.stringify(value);
1403
+ if (Array.isArray(value)) {
1404
+ if (value.length === 0) return "[]";
1405
+ if (value.every(isPlain)) {
1406
+ const oneLine = `[${value.map((item) => JSON.stringify(item)).join(", ")}]`;
1407
+ if (column + oneLine.length + comma <= PRINT_WIDTH) return oneLine;
1408
+ }
1409
+ return `[\n${value.map((item, i) => {
1410
+ const last = i === value.length - 1;
1411
+ return `${pad(depth + 1)}${render(item, depth + 1, (depth + 1) * 2, last ? 0 : 1)}`;
1412
+ }).join(",\n")}\n${pad(depth)}]`;
1413
+ }
1414
+ const entries = Object.entries(value);
1415
+ if (entries.length === 0) return "{}";
1416
+ return `{\n${entries.map(([key, member], i) => {
1417
+ const prefix = `${pad(depth + 1)}${JSON.stringify(key)}: `;
1418
+ return `${prefix}${render(member, depth + 1, prefix.length, i === entries.length - 1 ? 0 : 1)}`;
1419
+ }).join(",\n")}\n${pad(depth)}}`;
1420
+ }
1421
+ /**
1422
+ * `value` as JSON laid out the way this repo's Prettier lays out a `.json` file, so a file a generator writes is
1423
+ * already what the formatting check expects and a re-run does not change it. Objects are always expanded, one key
1424
+ * per line; an array of plain values stays on one line when it fits in 120 columns and goes one value per line when
1425
+ * it does not (what Prettier does for strings). Ends in a single newline.
1426
+ *
1427
+ * `JSON.stringify` rules apply first: `undefined`, functions and symbols are dropped from objects.
1428
+ */
1429
+ function formatJson(value) {
1430
+ const text = JSON.stringify(value);
1431
+ if (text === void 0) throw new TypeError("Cannot format a value that has no JSON representation");
1432
+ return `${render(JSON.parse(text), 0, 0, 0)}\n`;
1433
+ }
1434
+ // src/utils/look-path/look-path.ts
1435
+ /** `node_modules/.bin/<bin>`, else the first `PATH` entry that has it, else `null`. */
1436
+ const realLookPath = (cwd, bin) => findExecutableSync(bin, { path: join(cwd, "node_modules", ".bin") }) ?? findExecutableSync(bin) ?? null;
1437
+ // src/utils/noop-logger/noop-logger.ts
1438
+ /** The `RunLogger` used when the caller injects none: drops every record. */
1439
+ const noopLogger = {
1440
+ debug() {},
1441
+ warn() {}
1442
+ };
1298
1443
  // src/generators/turbo/turbo.ts
1299
1444
  /**
1300
1445
  * `turboConfig(config)` — the generated `turbo.json` for a repo's task
@@ -1316,8 +1461,20 @@ function createTsconfig(options) {
1316
1461
  * for a package whose layout the registry default doesn't cover (e.g. a
1317
1462
  * flat-layout package with no `src/` directory at all).
1318
1463
  */
1319
- /** Filed once per repo, unconditionally — every generated turbo.json's root. */
1320
- const GLOBAL_DEPENDENCIES = ["pnpm-workspace.yaml", "tsconfig.json"];
1464
+ /**
1465
+ * Filed once per repo, unconditionally — every generated turbo.json's root. A change to any of these
1466
+ * selects every package under `--affected`.
1467
+ *
1468
+ * `holocron.config.*` and `astromech.config.*` define the tasks themselves. The lockfile is deliberately
1469
+ * not here: turbo already compares it per package, so a dependency bump only invalidates the packages
1470
+ * whose resolved dependencies changed. Workflow files are not here either, so a CI tweak is not a full run.
1471
+ */
1472
+ const GLOBAL_DEPENDENCIES = [
1473
+ "pnpm-workspace.yaml",
1474
+ "tsconfig.json",
1475
+ "holocron.config.*",
1476
+ "astromech.config.*"
1477
+ ];
1321
1478
  /**
1322
1479
  * Guards against a malformed `turbo.inputs`/`turbo.passThroughEnv` override
1323
1480
  * (review on holocron#845): a bare string instead of an array would
@@ -1362,7 +1519,7 @@ function turboConfig(config) {
1362
1519
  };
1363
1520
  }
1364
1521
  if (Object.keys(tasks).length === 0) return null;
1365
- return stringifyJson({
1522
+ return formatJson({
1366
1523
  $schema: "https://turborepo.org/schema.json",
1367
1524
  globalDependencies: GLOBAL_DEPENDENCIES,
1368
1525
  tasks
@@ -2374,100 +2531,6 @@ function runCi(input) {
2374
2531
  function taskName(item) {
2375
2532
  return typeof item === "string" ? item : item.name;
2376
2533
  }
2377
- // src/utils/create-header/create-header.ts
2378
- /**
2379
- * Factory that binds `source` and `tool` once and returns all header
2380
- * constructors for auto-generated files. Prefer this over passing source
2381
- * as a positional argument at every call site.
2382
- *
2383
- * @example
2384
- * const { workflowHeader, scaffoldHeader } = createHeader({
2385
- * source: "cli/astromech/src/templates/configs/editorconfig/create-config.ts",
2386
- * });
2387
- *
2388
- * export function createConfig(): string {
2389
- * return `${workflowHeader()}${body}`;
2390
- * }
2391
- *
2392
- * ## Which header to use
2393
- *
2394
- * | Function | When to use | User can edit? |
2395
- * |-------------------|----------------------------------------------------|----------------|
2396
- * | `workflowHeader` | Files overwritten on every setup / sync-github run | No — "AUTO-GENERATED — do not edit" |
2397
- * | `scaffoldHeader` | Files written once; user takes ownership after | Yes — "Scaffolded — edit this file freely" |
2398
- *
2399
- * ## `workflowHeader` formats
2400
- *
2401
- * | Format | Comment style | Used for |
2402
- * |---------------------|------------------------|-------------------------------------------------------|
2403
- * | `"yaml"` (default) | `# …` lines | YAML workflows, ignore files, `.editorconfig`, labeler|
2404
- * | `"cjs"` | `/* … *\/` block | CommonJS config files (`.cjs`) |
2405
- * | `"shebang"` | `#!/bin/sh` + `# …` | Shell scripts (`prepare-commit-msg`, hooks) |
2406
- */
2407
- function createHeader(options) {
2408
- const { source, tool = "holocron repo setup", forPrimary = false } = options;
2409
- const doNotEdit = forPrimary ? `AUTO-GENERATED — do not edit in theholocron/.github directly.` : `AUTO-GENERATED — do not edit directly.`;
2410
- return {
2411
- workflowHeader(format = "yaml") {
2412
- if (format === "cjs") return [
2413
- `/* ${doNotEdit}`,
2414
- ` * Source: theholocron/holocron · ${source}`,
2415
- ` * Tool: ${tool}`,
2416
- ` * Changes: edit source in theholocron/holocron`,
2417
- ` */`,
2418
- ``
2419
- ].join("\n");
2420
- const yamlLines = [
2421
- `# ${doNotEdit}`,
2422
- `# Source: theholocron/holocron · ${source}`,
2423
- `# Tool: ${tool}`,
2424
- `# Changes: edit source in theholocron/holocron`,
2425
- ``
2426
- ].join("\n");
2427
- if (format === "shebang") return `#!/bin/sh\n\n${yamlLines}`;
2428
- return yamlLines;
2429
- },
2430
- scaffoldHeader() {
2431
- return [
2432
- `# Scaffolded by holocron repo setup — edit this file freely.`,
2433
- `# Source: theholocron/holocron · ${source}`,
2434
- ``
2435
- ].join("\n");
2436
- }
2437
- };
2438
- }
2439
- // src/utils/default-list-dirs/default-list-dirs.ts
2440
- const defaultListDirs = (path) => readdirSync(path, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => entry.name);
2441
- // src/utils/default-read-json/default-read-json.ts
2442
- const defaultReadJson = (path) => JSON.parse(readFileSync(path, "utf8"));
2443
- // src/utils/default-run/default-run.ts
2444
- const defaultRun = (command, args, opts) => spawnSync(command, args, {
2445
- encoding: "utf8",
2446
- ...opts
2447
- });
2448
- // src/utils/default-sleep/default-sleep.ts
2449
- const defaultSleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
2450
- // src/utils/exec/exec.ts
2451
- /** Runs `cmd` with the parent's stdio; a signal-killed or unspawnable process reports `-1`. */
2452
- const realExec = (cmd, args, opts) => {
2453
- return { exitCode: spawnSync(cmd, args, {
2454
- cwd: opts.cwd,
2455
- stdio: "inherit",
2456
- ...opts.env ? { env: {
2457
- ...process.env,
2458
- ...opts.env
2459
- } } : {}
2460
- }).status ?? -1 };
2461
- };
2462
- // src/utils/look-path/look-path.ts
2463
- /** `node_modules/.bin/<bin>`, else the first `PATH` entry that has it, else `null`. */
2464
- const realLookPath = (cwd, bin) => findExecutableSync(bin, { path: join(cwd, "node_modules", ".bin") }) ?? findExecutableSync(bin) ?? null;
2465
- // src/utils/noop-logger/noop-logger.ts
2466
- /** The `RunLogger` used when the caller injects none: drops every record. */
2467
- const noopLogger = {
2468
- debug() {},
2469
- warn() {}
2470
- };
2471
2534
  // src/tasks/deploy-on-release/constants.ts
2472
2535
  /** A stable release (no prerelease identifier) is on `main`, the default channel for a task. */
2473
2536
  const MAIN_CHANNEL = "main";
@@ -2974,7 +3037,7 @@ var alexignore_default = ".github/*\nCHANGELOG.md\nLICENSE\n";
2974
3037
  // src/templates/configs/alexjs/create-config.ts
2975
3038
  const { workflowHeader: workflowHeader$9 } = createHeader({ source: "cli/astromech/src/templates/configs/alexjs/create-config.ts" });
2976
3039
  function createRcConfig() {
2977
- return stringifyJson(alexrc_default);
3040
+ return formatJson(alexrc_default);
2978
3041
  }
2979
3042
  function createIgnoreConfig() {
2980
3043
  return `${workflowHeader$9()}${alexignore_default}`;
@@ -2999,8 +3062,18 @@ function createConfig(holocronScript = "pnpm exec holocron") {
2999
3062
  var dependabot_default = "version: 2\nupdates:\n - package-ecosystem: npm\n directory: /\n schedule:\n interval: weekly\n commit-message:\n prefix: \"chore(deps)\"\n prefix-development: \"chore(deps-dev)\"\n groups:\n security-patches:\n applies-to: security-updates\n patterns:\n - \"*\"\n all-dependencies:\n update-types:\n - minor\n - patch\n\n - package-ecosystem: github-actions\n directory: /\n schedule:\n interval: weekly\n commit-message:\n prefix: \"chore(deps)\"\n groups:\n all-actions:\n patterns:\n - \"*\"\n";
3000
3063
  // src/templates/configs/dependabot/create-config.ts
3001
3064
  const { workflowHeader: workflowHeader$7 } = createHeader({ source: "cli/astromech/src/templates/configs/dependabot/create-config.ts" });
3002
- function createConfig$1() {
3003
- return `${workflowHeader$7()}${dependabot_default}`;
3065
+ /** Where the npm entry's `groups:` begins. The `ignore:` block goes right before it (the first `groups:` is npm's). */
3066
+ const NPM_GROUPS = " groups:\n";
3067
+ function ignoreBlock(names) {
3068
+ return ` ignore:\n${[...new Set(names)].sort().map((name) => ` - dependency-name: "${name}"\n`).join("")}`;
3069
+ }
3070
+ /**
3071
+ * The content of `.github/dependabot.yml`, with its generated-file header. Names in `ignore` get a name-only
3072
+ * `ignore` entry on the npm ecosystem; with none, the file is the shared body unchanged.
3073
+ */
3074
+ function createConfig$1({ ignore = [] } = {}) {
3075
+ const body = ignore.length === 0 ? dependabot_default : dependabot_default.replace(NPM_GROUPS, `${ignoreBlock(ignore)}${NPM_GROUPS}`);
3076
+ return `${workflowHeader$7()}${body}`;
3004
3077
  }
3005
3078
  // src/templates/configs/devmoji/create-config.ts
3006
3079
  const { workflowHeader: workflowHeader$6 } = createHeader({ source: "cli/astromech/src/templates/configs/devmoji/create-config.ts" });
@@ -3033,7 +3106,7 @@ function createConfig$3() {
3033
3106
  * buys nothing.
3034
3107
  */
3035
3108
  function createConfig$4() {
3036
- return stringifyJson(editorconfig_checker_default);
3109
+ return formatJson(editorconfig_checker_default);
3037
3110
  }
3038
3111
  // src/templates/configs/labeler/labeler.yml
3039
3112
  var labeler_default = "bug:\n - \"^fix\"\n\nchore:\n - '^chore(?!\\(deps)'\n\nci:\n - \"^ci\"\n\ndependencies:\n - '^chore\\(deps'\n\ndocumentation:\n - \"^docs\"\n\nenhancement:\n - \"^feat\"\n\nperformance:\n - \"^perf\"\n\nrefactor:\n - \"^refactor\"\n\ntest:\n - \"^test\"\n";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/astromech",
3
- "version": "5.0.0-alpha.256",
3
+ "version": "5.0.0-alpha.257",
4
4
  "description": "The Holocron task runner — one task manifest drives `holocron run`, `holocron run ci`, the CI workflows, package.json scripts, linters, and required checks.",
5
5
  "keywords": [
6
6
  "ci",
@@ -50,9 +50,9 @@
50
50
  "@commitlint/lint": "^21.2.3",
51
51
  "@commitlint/load": "^21.2.3",
52
52
  "@commitlint/types": "^21.2.3",
53
- "@theholocron/datapad": "5.0.0-alpha.256",
54
- "@theholocron/fs-utils": "^1.16.1-alpha.1",
53
+ "@theholocron/datapad": "5.0.0-alpha.257",
55
54
  "@theholocron/pkg-utils": "^1.16.1-alpha.1",
55
+ "@theholocron/fs-utils": "^1.16.1-alpha.1",
56
56
  "@theholocron/json-utils": "^1.16.1-alpha.1"
57
57
  },
58
58
  "devDependencies": {
@@ -65,6 +65,7 @@
65
65
  "eslint": "^10.8.1",
66
66
  "eslint-plugin-n": "^18.3.0",
67
67
  "globals": "^17.11.0",
68
+ "prettier": "^3.9.6",
68
69
  "tsdown": "^0.23.3",
69
70
  "typescript": "^5.9.3",
70
71
  "vitest": "^5.0.5",
@@ -73,8 +74,8 @@
73
74
  "@theholocron/eslint-config": "^8.9.0-alpha.3",
74
75
  "@theholocron/semantic-release-config": "^8.9.0-alpha.3",
75
76
  "@theholocron/tsconfig": "^8.9.0-alpha.3",
76
- "@theholocron/tsdown-config": "^8.9.0-alpha.3",
77
- "@theholocron/vitest-config": "^8.9.0-alpha.3"
77
+ "@theholocron/vitest-config": "^8.9.0-alpha.3",
78
+ "@theholocron/tsdown-config": "^8.9.0-alpha.3"
78
79
  },
79
80
  "peerDependencies": {
80
81
  "@semantic-release/commit-analyzer": "^13",