@ng-doc/builder 22.0.0-beta.1 → 22.0.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 +19 -28
- package/application/index.js +7 -2
- package/application/index.js.map +1 -1
- package/application/schema.json +11 -4
- package/builders.json +23 -13
- package/classes/observable-map.d.ts +1 -0
- package/classes/observable-map.js +14 -3
- package/classes/observable-map.js.map +1 -1
- package/classes/observable-set.js +2 -1
- package/classes/observable-set.js.map +1 -1
- package/dev-server/index.js +5 -3
- package/dev-server/index.js.map +1 -1
- package/engine/build-ng-doc.js +1 -16
- package/engine/build-ng-doc.js.map +1 -1
- package/engine/builders/api-list/api-list-component.builder.js +4 -4
- package/engine/builders/api-list/api-list-component.builder.js.map +1 -1
- package/engine/builders/api-list/api-page-template.builder.js +2 -2
- package/engine/builders/api-list/api-page-template.builder.js.map +1 -1
- package/engine/builders/global/keywords.builder.d.ts +1 -4
- package/engine/builders/global/keywords.builder.js +5 -9
- package/engine/builders/global/keywords.builder.js.map +1 -1
- package/engine/builders/global/search-indexes.builder.js +1 -1
- package/engine/builders/global/search-indexes.builder.js.map +1 -1
- package/engine/builders/helpers/create-entry-metadata.js +2 -1
- package/engine/builders/helpers/create-entry-metadata.js.map +1 -1
- package/engine/builders/helpers/create-import-path.js.map +1 -1
- package/engine/builders/helpers/get-entry-relative-path.js.map +1 -1
- package/engine/builders/page/demo-assets.builder.js +8 -5
- package/engine/builders/page/demo-assets.builder.js.map +1 -1
- package/engine/builders/page/playground.builder.js +1 -0
- package/engine/builders/page/playground.builder.js.map +1 -1
- package/engine/builders/shared/content.builder.js +3 -3
- package/engine/builders/shared/content.builder.js.map +1 -1
- package/engine/builders/shared/entry.builder.js +1 -13
- package/engine/builders/shared/entry.builder.js.map +1 -1
- package/engine/builders/shared/page-component.builder.js +16 -6
- package/engine/builders/shared/page-component.builder.js.map +1 -1
- package/engine/builders/shared/page-wrapper.builder.js +8 -5
- package/engine/builders/shared/page-wrapper.builder.js.map +1 -1
- package/engine/core/operators/distinct-pending.js.map +1 -1
- package/engine/core/operators/entries-emitter.js +2 -6
- package/engine/core/operators/entries-emitter.js.map +1 -1
- package/engine/core/operators/factory.js +1 -4
- package/engine/core/operators/factory.js.map +1 -1
- package/engine/core/operators/merge-factory.js +19 -17
- package/engine/core/operators/merge-factory.js.map +1 -1
- package/engine/core/operators/when-builders-done.js.map +1 -1
- package/engine/core/stores/index.d.ts +0 -1
- package/engine/core/stores/index.js +0 -1
- package/engine/core/stores/index.js.map +1 -1
- package/engine/core/triggers/on-dependencies-change.d.ts +1 -1
- package/engine/core/triggers/on-dependencies-change.js +2 -2
- package/engine/core/triggers/on-dependencies-change.js.map +1 -1
- package/engine/core/watcher/watch.js +19 -1
- package/engine/core/watcher/watch.js.map +1 -1
- package/engine/variables.d.ts +1 -0
- package/engine/variables.js +1 -0
- package/engine/variables.js.map +1 -1
- package/generator/artifacts/index.d.ts +317 -0
- package/generator/bootstrap/bin.d.ts +18 -0
- package/generator/bootstrap/bin.js +7274 -0
- package/generator/bootstrap/candidate-output-committer.d.ts +12 -0
- package/generator/bootstrap/cli.d.ts +42 -0
- package/generator/bootstrap/cli.js +7123 -0
- package/generator/bootstrap/constants.d.ts +4 -0
- package/generator/bootstrap/index.d.ts +111 -0
- package/generator/bootstrap/index.js +5020 -0
- package/generator/bootstrap/prerender-command.d.ts +31 -0
- package/generator/bootstrap/process-tree.d.ts +49 -0
- package/generator/build-metafile.json +11701 -0
- package/generator/build-provenance.json +119 -0
- package/generator/compiler/assemble.d.ts +41 -0
- package/generator/compiler/classify.d.ts +161 -0
- package/generator/compiler/closure-store.d.ts +55 -0
- package/generator/compiler/common.d.ts +32 -0
- package/generator/compiler/describe.d.ts +21 -0
- package/generator/compiler/dry-run.d.ts +108 -0
- package/generator/compiler/fast-start.d.ts +104 -0
- package/generator/compiler/fold.d.ts +116 -0
- package/generator/compiler/index.d.ts +111 -0
- package/generator/compiler/index.js +17759 -0
- package/generator/compiler/link.d.ts +38 -0
- package/generator/compiler/memo.d.ts +44 -0
- package/generator/compiler/plan.d.ts +92 -0
- package/generator/compiler/progress.d.ts +54 -0
- package/generator/compiler/render.d.ts +27 -0
- package/generator/compiler/retention.d.ts +181 -0
- package/generator/compiler/semantic-closure.d.ts +46 -0
- package/generator/compiler/targeted.d.ts +280 -0
- package/generator/content/content-compiler.d.ts +118 -0
- package/generator/content/highlight-cache.d.ts +139 -0
- package/generator/content/html-pipeline.d.ts +170 -0
- package/generator/content/html-pool.d.ts +239 -0
- package/generator/content/html-worker.js +1598 -0
- package/generator/content-module-ids.d.ts +8 -0
- package/generator/contracts.d.ts +1063 -0
- package/generator/contracts.js +15 -0
- package/generator/discovery/index.d.ts +77 -0
- package/generator/graph/index.d.ts +211 -0
- package/generator/graph/unit-index.d.ts +216 -0
- package/generator/kernel/canonical.d.ts +57 -0
- package/generator/kernel/flags.d.ts +49 -0
- package/generator/kernel/footprint.d.ts +88 -0
- package/generator/kernel/observations.d.ts +68 -0
- package/generator/kernel/paths.d.ts +22 -0
- package/generator/kernel/runtime-identity.d.ts +11 -0
- package/generator/outputs/index.d.ts +67 -0
- package/generator/package.json +3 -0
- package/generator/progress/ci.d.ts +22 -0
- package/generator/progress/detect.d.ts +60 -0
- package/generator/progress/events.d.ts +126 -0
- package/generator/progress/format.d.ts +83 -0
- package/generator/progress/gate.d.ts +49 -0
- package/generator/progress/host.d.ts +29 -0
- package/generator/progress/lines.d.ts +42 -0
- package/generator/progress/live.d.ts +115 -0
- package/generator/progress/model.d.ts +85 -0
- package/generator/progress/reporter.d.ts +87 -0
- package/generator/progress/settings.d.ts +60 -0
- package/generator/semantic/angular.d.ts +9 -0
- package/generator/semantic/api-enumeration.d.ts +19 -0
- package/generator/semantic/api-summary.d.ts +33 -0
- package/generator/semantic/dependencies.d.ts +20 -0
- package/generator/semantic/derived-classes.d.ts +58 -0
- package/generator/semantic/documentation-cache.d.ts +23 -0
- package/generator/semantic/fragments.d.ts +28 -0
- package/generator/semantic/owned-roots.d.ts +59 -0
- package/generator/semantic/program-builder.d.ts +55 -0
- package/generator/semantic/program-index.d.ts +124 -0
- package/generator/semantic/program-inputs.d.ts +26 -0
- package/generator/semantic/program-observations.d.ts +158 -0
- package/generator/semantic/program-retention.d.ts +147 -0
- package/generator/semantic/program-state.d.ts +196 -0
- package/generator/semantic/program-verify.d.ts +22 -0
- package/generator/semantic/recorder.d.ts +89 -0
- package/generator/semantic/rendering.d.ts +34 -0
- package/generator/semantic/semantic-closure.d.ts +129 -0
- package/generator/semantic/semantic-service.d.ts +186 -0
- package/generator/semantic/type-text.d.ts +5 -0
- package/generator/session/build-session.d.ts +206 -0
- package/generator/session/input-verification.d.ts +38 -0
- package/generator/session/parcel-event-source.d.ts +22 -0
- package/generator/session/progress.d.ts +72 -0
- package/generator/session/unchanged-saves.d.ts +63 -0
- package/generator/session/watch-inputs.d.ts +6 -0
- package/generator/session/watch-signals.d.ts +10 -0
- package/generator/templates/api/base.html.nunj +26 -0
- package/generator/templates/api/class-declaration.html.nunj +57 -0
- package/generator/templates/api/details/class-declaration.html.nunj +47 -0
- package/generator/templates/api/details/enum-declaration.html.nunj +0 -0
- package/generator/templates/api/details/function-declaration.html.nunj +14 -0
- package/generator/templates/api/details/helpers/decorators.html.nunj +14 -0
- package/generator/templates/api/details/helpers/extends.html.nunj +6 -0
- package/generator/templates/api/details/helpers/selectors.html.nunj +12 -0
- package/generator/templates/api/details/helpers/type-parameters.html.nunj +14 -0
- package/generator/templates/api/details/interface-declaration.html.nunj +27 -0
- package/generator/templates/api/details/type-alias-declaration.html.nunj +14 -0
- package/generator/templates/api/details/variable-declaration.html.nunj +0 -0
- package/generator/templates/api/details.html.nunj +9 -0
- package/generator/templates/api/enum-declaration.html.nunj +12 -0
- package/generator/templates/api/function-declaration.html.nunj +35 -0
- package/generator/templates/api/interface-declaration.html.nunj +37 -0
- package/generator/templates/api/type-alias-declaration.html.nunj +16 -0
- package/generator/templates/api/variable-declaration.html.nunj +8 -0
- package/generator/templates/api-header.html.nunj +11 -0
- package/generator/templates/api-list.ts.nunj +22 -0
- package/generator/templates/api-page-content.html.nunj +1 -0
- package/generator/templates/api-scope.ts.nunj +22 -0
- package/generator/templates/category.ts.nunj +22 -0
- package/generator/templates/code.html.nunj +3 -0
- package/generator/templates/context.ts.nunj +55 -0
- package/generator/templates/demo-assets.ts.nunj +25 -0
- package/generator/templates/helpers/accessor.html.nunj +76 -0
- package/generator/templates/helpers/accessors.html.nunj +7 -0
- package/generator/templates/helpers/badge.html.nunj +4 -0
- package/generator/templates/helpers/call-signature.html.nunj +70 -0
- package/generator/templates/helpers/code.html.nunj +3 -0
- package/generator/templates/helpers/constructor.html.nunj +32 -0
- package/generator/templates/helpers/declaration-modifiers.html.nunj +45 -0
- package/generator/templates/helpers/decorators.html.nunj +11 -0
- package/generator/templates/helpers/members.html.nunj +29 -0
- package/generator/templates/helpers/method.html.nunj +89 -0
- package/generator/templates/helpers/methods.html.nunj +7 -0
- package/generator/templates/helpers/modifier.html.nunj +4 -0
- package/generator/templates/helpers/no-content.html.nunj +3 -0
- package/generator/templates/helpers/overload.html.nunj +57 -0
- package/generator/templates/helpers/parameters.html.nunj +44 -0
- package/generator/templates/helpers/properties.html.nunj +61 -0
- package/generator/templates/helpers/status.html.nunj +33 -0
- package/generator/templates/helpers/tag.html.nunj +4 -0
- package/generator/templates/helpers/type.html.nunj +11 -0
- package/generator/templates/index.ts.nunj +2 -0
- package/generator/templates/page-header.html.nunj +5 -0
- package/generator/templates/page-wrapper.ts.nunj +64 -0
- package/generator/templates/page.ts.nunj +97 -0
- package/generator/templates/parts/examples.html.nunj +11 -0
- package/generator/templates/parts/member-examples.html.nunj +12 -0
- package/generator/templates/parts/member-remarks.html.nunj +8 -0
- package/generator/templates/parts/page-tags.html.nunj +10 -0
- package/generator/templates/parts/remarks.html.nunj +10 -0
- package/generator/templates/parts/see-also.html.nunj +23 -0
- package/generator/templates/parts/usage-notes.html.nunj +8 -0
- package/generator/templates/playgrounds.ts.nunj +63 -0
- package/generator/templates/routes.ts.nunj +49 -0
- package/generator/templates/symbol/decorators.html.nunj +12 -0
- package/generator/templates/symbol/details.html.nunj +62 -0
- package/generator/templates/symbol/extended-by.html.nunj +17 -0
- package/generator/templates/symbol/header.html.nunj +22 -0
- package/generator/templates/symbol/members.html.nunj +301 -0
- package/generator/templates/symbol/page.html.nunj +76 -0
- package/generator/templates/symbol/see-also.html.nunj +16 -0
- package/generator/vite/angular/ANALOG-LICENSE +21 -0
- package/generator/vite/angular/analog-provenance.json +880 -0
- package/generator/vite/angular/index.d.ts +14 -0
- package/generator/vite/angular/index.js +7300 -0
- package/generator/vite/angular-compatibility.d.ts +6 -0
- package/generator/vite/angular-composition.d.ts +68 -0
- package/generator/vite/angular-version.d.ts +38 -0
- package/generator/vite/application-builder.js +331 -0
- package/generator/vite/application-builder.schema.json +46 -0
- package/generator/vite/application.d.ts +91 -0
- package/generator/vite/assets.d.ts +11 -0
- package/generator/vite/bounded-close.d.ts +33 -0
- package/generator/vite/component-updates.d.ts +21 -0
- package/generator/vite/configuration.d.ts +3 -0
- package/generator/vite/dev-server-builder.js +334 -0
- package/generator/vite/dev-server-builder.schema.json +27 -0
- package/generator/vite/dev-styles.d.ts +65 -0
- package/generator/vite/diagnostics.d.ts +4 -0
- package/generator/vite/external-probes.d.ts +40 -0
- package/generator/vite/host-updates.d.ts +145 -0
- package/generator/vite/index.d.ts +13 -0
- package/generator/vite/index.js +11589 -0
- package/generator/vite/lease.d.ts +6 -0
- package/generator/vite/lifecycle.d.ts +119 -0
- package/generator/vite/mime.d.ts +2 -0
- package/generator/vite/missing-paths.d.ts +44 -0
- package/generator/vite/options.d.ts +87 -0
- package/generator/vite/output-watch.d.ts +41 -0
- package/generator/vite/paths.d.ts +7 -0
- package/generator/vite/plugin.d.ts +3 -0
- package/generator/vite/prerender-entry.js +395 -0
- package/generator/vite/prerender-runtime.d.ts +66 -0
- package/generator/vite/prerender.d.ts +27 -0
- package/generator/vite/production.d.ts +66 -0
- package/generator/vite/progress.d.ts +33 -0
- package/generator/vite/restore-theme.js +13 -0
- package/generator/vite/route-inventory.d.ts +24 -0
- package/generator/vite/ssr-renderer-control.d.ts +1 -0
- package/generator/vite/ssr-renderer-entry.js +444 -0
- package/generator/vite/ssr-renderer-protocol.d.ts +101 -0
- package/generator/vite/ssr-renderer.d.ts +74 -0
- package/generator/vite/theme-index.d.ts +13 -0
- package/generator/vite/tsconfig-paths.d.ts +64 -0
- package/generator/vite/vite-event-source.d.ts +198 -0
- package/generator/vite/vite-version.d.ts +26 -0
- package/generator/vite/watch-inputs.d.ts +39 -0
- package/generator/worker/entry.d.ts +1 -0
- package/generator/worker/entry.js +614 -0
- package/generator/worker/index.d.ts +156 -0
- package/generator/worker/index.js +1030 -0
- package/generator/worker/protocol.d.ts +160 -0
- package/helpers/angular/get-component-decorator.js +6 -6
- package/helpers/angular/get-component-decorator.js.map +1 -1
- package/helpers/angular/get-directive-decorator.js +3 -3
- package/helpers/angular/get-directive-decorator.js.map +1 -1
- package/helpers/angular/get-pipe-decorator.js +3 -3
- package/helpers/angular/get-pipe-decorator.js.map +1 -1
- package/helpers/build-indexes.js +5 -2
- package/helpers/build-indexes.js.map +1 -1
- package/helpers/construct-page-keyword.js +2 -1
- package/helpers/construct-page-keyword.js.map +1 -1
- package/helpers/extract-selectors.d.ts +1 -1
- package/helpers/extract-selectors.js +5 -3
- package/helpers/extract-selectors.js.map +1 -1
- package/helpers/filter-useless-members.d.ts +1 -1
- package/helpers/format-code.d.ts +2 -1
- package/helpers/format-code.js +13 -4
- package/helpers/format-code.js.map +1 -1
- package/helpers/import-fresh-esm.js.map +1 -1
- package/helpers/index.d.ts +2 -0
- package/helpers/index.js +2 -0
- package/helpers/index.js.map +1 -1
- package/helpers/keyword-heading-title.d.ts +7 -0
- package/helpers/keyword-heading-title.js +21 -0
- package/helpers/keyword-heading-title.js.map +1 -0
- package/helpers/markdown-to-html.js +3 -3
- package/helpers/markdown-to-html.js.map +1 -1
- package/helpers/navigation-title-order.d.ts +8 -0
- package/helpers/navigation-title-order.js +15 -0
- package/helpers/navigation-title-order.js.map +1 -0
- package/helpers/playground/get-playground-inputs.js +8 -4
- package/helpers/playground/get-playground-inputs.js.map +1 -1
- package/helpers/playground/get-playground-template-inputs.js +2 -1
- package/helpers/playground/get-playground-template-inputs.js.map +1 -1
- package/helpers/presentation.d.ts +7 -7
- package/helpers/presentation.js +23 -23
- package/helpers/presentation.js.map +1 -1
- package/helpers/print.js +32 -5
- package/helpers/print.js.map +1 -1
- package/helpers/process-snippets.d.ts +1 -1
- package/helpers/process-snippets.js +3 -3
- package/helpers/process-snippets.js.map +1 -1
- package/helpers/snippets-from-asset.d.ts +1 -1
- package/helpers/snippets-from-asset.js +2 -2
- package/helpers/snippets-from-asset.js.map +1 -1
- package/helpers/sort-navigation-entities.js +2 -1
- package/helpers/sort-navigation-entities.js.map +1 -1
- package/helpers/stable-generated-id.d.ts +2 -0
- package/helpers/stable-generated-id.js +12 -0
- package/helpers/stable-generated-id.js.map +1 -0
- package/helpers/text-order.d.ts +8 -0
- package/helpers/text-order.js +26 -0
- package/helpers/text-order.js.map +1 -0
- package/helpers/typescript/member/get-inherited-parent.d.ts +1 -1
- package/helpers/typescript/member/get-inherited-parent.js +2 -2
- package/helpers/typescript/member/get-inherited-parent.js.map +1 -1
- package/helpers/typescript/node/sort-by-nodes-name.d.ts +4 -2
- package/helpers/typescript/node/sort-by-nodes-name.js +6 -3
- package/helpers/typescript/node/sort-by-nodes-name.js.map +1 -1
- package/helpers/typescript/property/get-property-assignment.js.map +1 -1
- package/interfaces/schema.d.ts +1 -0
- package/package.json +87 -30
- package/parsers/helpers/number.d.ts +1 -1
- package/parsers/helpers/number.js +2 -2
- package/parsers/helpers/number.js.map +1 -1
- package/parsers/helpers/param-value.d.ts +1 -1
- package/parsers/helpers/param-value.js +2 -2
- package/parsers/helpers/param-value.js.map +1 -1
- package/parsers/helpers/param.js +3 -3
- package/parsers/helpers/param.js.map +1 -1
- package/parsers/parse-code-block-params.d.ts +1 -1
- package/parsers/parse-code-block-params.js +22 -16
- package/parsers/parse-code-block-params.js.map +1 -1
- package/parsers/parse-snippet.js +10 -10
- package/parsers/parse-snippet.js.map +1 -1
- package/schematics/collection.json +34 -23
- package/schematics/migrate-to-vite/analyze.d.ts +76 -0
- package/schematics/migrate-to-vite/analyze.js +816 -0
- package/schematics/migrate-to-vite/analyze.js.map +1 -0
- package/schematics/migrate-to-vite/index.d.ts +9 -0
- package/schematics/migrate-to-vite/index.js +585 -0
- package/schematics/migrate-to-vite/index.js.map +1 -0
- package/schematics/migrate-to-vite/legacy-folder.d.ts +84 -0
- package/schematics/migrate-to-vite/legacy-folder.js +340 -0
- package/schematics/migrate-to-vite/legacy-folder.js.map +1 -0
- package/schematics/migrate-to-vite/report.d.ts +32 -0
- package/schematics/migrate-to-vite/report.js +97 -0
- package/schematics/migrate-to-vite/report.js.map +1 -0
- package/schematics/migrate-to-vite/schema.d.ts +13 -0
- package/schematics/migrate-to-vite/schema.js +3 -0
- package/schematics/migrate-to-vite/schema.js.map +1 -0
- package/schematics/migrate-to-vite/schema.json +31 -0
- package/schematics/migrate-to-vite/setup/dependencies.d.ts +64 -0
- package/schematics/migrate-to-vite/setup/dependencies.js +183 -0
- package/schematics/migrate-to-vite/setup/dependencies.js.map +1 -0
- package/schematics/migrate-to-vite/setup/index.d.ts +6 -0
- package/schematics/migrate-to-vite/setup/index.js +13 -0
- package/schematics/migrate-to-vite/setup/index.js.map +1 -0
- package/schematics/migrate-to-vite/setup/json-file.d.ts +51 -0
- package/schematics/migrate-to-vite/setup/json-file.js +115 -0
- package/schematics/migrate-to-vite/setup/json-file.js.map +1 -0
- package/schematics/migrate-to-vite/setup/source.d.ts +30 -0
- package/schematics/migrate-to-vite/setup/source.js +202 -0
- package/schematics/migrate-to-vite/setup/source.js.map +1 -0
- package/schematics/migrate-to-vite/setup/targets.d.ts +51 -0
- package/schematics/migrate-to-vite/setup/targets.js +48 -0
- package/schematics/migrate-to-vite/setup/targets.js.map +1 -0
- package/schematics/migrate-to-vite/setup/vite-config.d.ts +100 -0
- package/schematics/migrate-to-vite/setup/vite-config.js +175 -0
- package/schematics/migrate-to-vite/setup/vite-config.js.map +1 -0
- package/schematics/migrate-to-vite/setup/workspace.d.ts +100 -0
- package/schematics/migrate-to-vite/setup/workspace.js +225 -0
- package/schematics/migrate-to-vite/setup/workspace.js.map +1 -0
- package/schematics/migrate-to-vite/state.d.ts +65 -0
- package/schematics/migrate-to-vite/state.js +92 -0
- package/schematics/migrate-to-vite/state.js.map +1 -0
- package/schematics/migrate-to-vite/testing/fixtures.d.ts +18 -0
- package/schematics/migrate-to-vite/testing/fixtures.js +279 -0
- package/schematics/migrate-to-vite/testing/fixtures.js.map +1 -0
- package/schematics/migrate-to-vite/update-note.d.ts +6 -0
- package/schematics/migrate-to-vite/update-note.js +23 -0
- package/schematics/migrate-to-vite/update-note.js.map +1 -0
- package/schematics/migration.json +5 -0
- package/schematics/migrations/standalone-pages/index.js +7 -6
- package/schematics/migrations/standalone-pages/index.js.map +1 -1
- package/schematics/vite-setup/index.d.ts +20 -0
- package/schematics/vite-setup/index.js +206 -0
- package/schematics/vite-setup/index.js.map +1 -0
- package/schematics/vite-setup/schema.d.ts +7 -0
- package/schematics/vite-setup/schema.js +3 -0
- package/schematics/vite-setup/schema.js.map +1 -0
- package/schematics/vite-setup/schema.json +19 -0
- package/scripts/restore-theme.js +9 -2
- package/templates/context.ts.nunj +3 -0
- package/templates/helpers/badge.html.nunj +1 -1
- package/templates/helpers/status.html.nunj +4 -8
- package/templates/page-wrapper.ts.nunj +24 -1
- package/templates/page.ts.nunj +25 -0
- package/templates/parts/page-tags.html.nunj +1 -1
- package/templates/playgrounds.ts.nunj +8 -9
- package/templates/routes.ts.nunj +6 -1
- package/templates/symbol/decorators.html.nunj +12 -0
- package/templates/symbol/details.html.nunj +62 -0
- package/templates/symbol/extended-by.html.nunj +17 -0
- package/templates/symbol/header.html.nunj +22 -0
- package/templates/symbol/members.html.nunj +301 -0
- package/templates/symbol/page.html.nunj +76 -0
- package/templates/symbol/see-also.html.nunj +16 -0
- package/engine/.cache/apps/ng-doc/docs/api-documentation/auto-generation/ng-doc.page.mjs +0 -20
- package/engine/.cache/apps/ng-doc/docs/api-documentation/documenting-declarations/ng-doc.page.mjs +0 -20
- package/engine/.cache/apps/ng-doc/docs/api-documentation/rendering-api/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/icons/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/layout/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/page-processors/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/page-skeleton/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/search/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/themes/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/develop/ng-doc.page.mjs +0 -36
- package/engine/.cache/apps/ng-doc/docs/getting-started/configuration/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/getting-started/installation/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/getting-started/migrations/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/getting-started/ssr/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/getting-started/what-is-ng-doc/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/ng-doc.api.mjs +0 -42
- package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/recipes/performance/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/writing-content/blockquotes/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/code-blocks/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/demo-and-demo-pane/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/writing-content/images-videos-and-embeds/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/keywords/ng-doc.page.mjs +0 -17
- package/engine/.cache/apps/ng-doc/docs/writing-content/mermaid-diagrams/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/nunjucks/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/pages-and-categories/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/playground/ng-doc.page.mjs +0 -33
- package/engine/core/stores/entry-status.d.ts +0 -23
- package/engine/core/stores/entry-status.js +0 -36
- package/engine/core/stores/entry-status.js.map +0 -1
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { rename, writeFile } from 'node:fs/promises';
|
|
2
|
+
import type { ArtifactCache, CacheKey, CommitGuard, CommitRequest, CommitResult, OutputCommitter, OutputManifest, PageArtifact, PublishedGeneratorConfiguration } from '../contracts.js';
|
|
3
|
+
/** Bounded backoff for transient Windows rename failures: at most about 3.5 s per rename. */
|
|
4
|
+
export declare const RENAME_RETRY: Readonly<{
|
|
5
|
+
attempts: 8;
|
|
6
|
+
delayMs: 50;
|
|
7
|
+
maxDelayMs: 1000;
|
|
8
|
+
}>;
|
|
9
|
+
export interface RenameRetryOptions {
|
|
10
|
+
/** @internal Test port; `process.platform` by default. */
|
|
11
|
+
platform?: NodeJS.Platform;
|
|
12
|
+
/** @internal Test port. */
|
|
13
|
+
sleep?: (milliseconds: number) => Promise<void>;
|
|
14
|
+
retry?: {
|
|
15
|
+
attempts: number;
|
|
16
|
+
delayMs: number;
|
|
17
|
+
maxDelayMs: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* `rename`, retried on win32 while it fails with EPERM, EBUSY or EACCES, with a bounded
|
|
22
|
+
* exponential backoff; the last failure is thrown. Each call still renames exactly once when it
|
|
23
|
+
* succeeds, so callers keep their order (the committer publishes the manifest last). Other
|
|
24
|
+
* platforms get `rename` itself.
|
|
25
|
+
*/
|
|
26
|
+
export declare function retryingRename(renameFile?: typeof rename, options?: RenameRetryOptions): typeof rename;
|
|
27
|
+
export interface ArtifactCacheOptions {
|
|
28
|
+
root: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Identity of one published cache entry file (device, inode, size, mtime, ctime) and the clock
|
|
32
|
+
* reading taken before that lstat. Only a settled stamp (mtime and ctime at least the racy
|
|
33
|
+
* window older than `observedNs`) is trusted without reading the file.
|
|
34
|
+
*/
|
|
35
|
+
export interface FileStamp {
|
|
36
|
+
dev: string;
|
|
37
|
+
ino: string;
|
|
38
|
+
size: string;
|
|
39
|
+
mtimeNs: string;
|
|
40
|
+
ctimeNs: string;
|
|
41
|
+
observedNs: string;
|
|
42
|
+
}
|
|
43
|
+
export declare class JsonArtifactCache implements ArtifactCache {
|
|
44
|
+
private readonly root;
|
|
45
|
+
constructor(options: ArtifactCacheOptions);
|
|
46
|
+
read(key: CacheKey): ReturnType<ArtifactCache['read']>;
|
|
47
|
+
write(artifact: PageArtifact): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Writes exactly like `write` and returns the stamp of the entry file it published, or
|
|
50
|
+
* undefined when the published path is no longer the inode this call wrote.
|
|
51
|
+
*/
|
|
52
|
+
writeStamped(artifact: PageArtifact): Promise<FileStamp | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* Confirms that the entry file for `artifact` still holds exactly the bytes `write` would
|
|
55
|
+
* publish, given the stamp recorded when it was written or last confirmed. A settled
|
|
56
|
+
* matching stamp is trusted; a racy one (changed within the racy window of its stat) is
|
|
57
|
+
* confirmed by reading and comparing the bytes. Returns the stamp to keep, or undefined when
|
|
58
|
+
* the entry must be written.
|
|
59
|
+
*/
|
|
60
|
+
confirm(artifact: PageArtifact, stamp: FileStamp): Promise<FileStamp | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Stamps `file` if it is a regular file whose `fields` equal `expected`. `observedNs` must be
|
|
63
|
+
* a clock reading taken before the bytes being vouched for were written or compared. A file
|
|
64
|
+
* that cannot be observed (for example removed after the rename) gets no stamp; the write
|
|
65
|
+
* itself has already succeeded.
|
|
66
|
+
*/
|
|
67
|
+
private stamp;
|
|
68
|
+
private fileFor;
|
|
69
|
+
}
|
|
70
|
+
export type CommitMutation = 'stage-write' | 'backup-output' | 'publish-output' | 'remove-output' | 'backup-manifest' | 'publish-manifest';
|
|
71
|
+
export interface OutputCommitterOptions {
|
|
72
|
+
outputRoot: string;
|
|
73
|
+
/** Fault-injection/telemetry port. The real filesystem operation still follows this hook. */
|
|
74
|
+
beforeMutation?: (operation: CommitMutation, target: string) => void | Promise<void>;
|
|
75
|
+
fileSystem?: {
|
|
76
|
+
rename?: typeof rename;
|
|
77
|
+
/** @internal Test port: the copy that backs a published file up (see `backUp`). */
|
|
78
|
+
copyFile?: (from: string, to: string) => Promise<void>;
|
|
79
|
+
writeFile?: typeof writeFile;
|
|
80
|
+
/**
|
|
81
|
+
* @internal Test port: the platform whose rename behaviour applies (win32 retries transient
|
|
82
|
+
* rename failures, see {@link retryingRename}); `process.platform` by default.
|
|
83
|
+
*/
|
|
84
|
+
platform?: NodeJS.Platform;
|
|
85
|
+
/** @internal Test port: the wait between rename retries. */
|
|
86
|
+
sleep?: (milliseconds: number) => Promise<void>;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Delta commit; on unless `false`. A request whose `base` is the manifest this committer
|
|
90
|
+
* published in its previous call prepares, probes and compares only the artifacts that changed
|
|
91
|
+
* against it, and the outputs a commit publishes stay verified after publication. `false` (the
|
|
92
|
+
* `NGDOC_TARGETED_REBUILD=0` kill switch, resolved in bootstrap) ignores `base`: every commit is
|
|
93
|
+
* the full commit, with no publication recorded.
|
|
94
|
+
*/
|
|
95
|
+
delta?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Parallel writes; on unless `false`. A commit stages its changed outputs and takes the backup
|
|
98
|
+
* copies of the outputs it replaces concurrently, at most {@link WRITE_CONCURRENCY} at a time,
|
|
99
|
+
* and still publishes them one rename at a time in the sequential order, the manifest last.
|
|
100
|
+
* `false` (the `NGDOC_PARALLEL_WRITES=0` kill switch, resolved in bootstrap) writes, copies and
|
|
101
|
+
* publishes one output at a time, as before.
|
|
102
|
+
*/
|
|
103
|
+
parallelWrites?: boolean;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Why a commit ran the full path while delta commits are on. `untrusted`: this committer has no
|
|
107
|
+
* publication that the previous call left it (its first commit, or the previous call did not end
|
|
108
|
+
* `committed`); `base-identity`: `base`/`previous` do not name that publication;
|
|
109
|
+
* `manifest-stamp`: the published manifest file changed on disk; `configuration`: the candidate's
|
|
110
|
+
* configuration differs; `candidate`: a check of the changed artifacts would fail (the full commit
|
|
111
|
+
* reports it); `targets`: a target of a changed artifact or orphan cannot be committed as probed,
|
|
112
|
+
* or planning the delta commit failed.
|
|
113
|
+
*/
|
|
114
|
+
export type FullCommitReason = 'no-base' | 'untrusted' | 'base-identity' | 'manifest-stamp' | 'configuration' | 'candidate' | 'targets';
|
|
115
|
+
/** How the last commit call ran; for tests and diagnostics only. */
|
|
116
|
+
export interface CommitTelemetry {
|
|
117
|
+
mode: 'full' | 'delta';
|
|
118
|
+
/** Set when delta commits are on and this commit ran the full path. */
|
|
119
|
+
reason?: FullCommitReason;
|
|
120
|
+
/** Candidate artifacts prepared and validated: all of them (full) or the changed ones. */
|
|
121
|
+
artifacts: number;
|
|
122
|
+
/** Outputs probed and compared with the disk. */
|
|
123
|
+
outputs: number;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The most staging writes, directory creations or backup copies one commit has in flight (parallel
|
|
127
|
+
* writes). Node runs them on its libuv thread pool (four threads unless `UV_THREADPOOL_SIZE` says
|
|
128
|
+
* otherwise), so a few more than its threads keep it busy, and the bound keeps a commit of
|
|
129
|
+
* thousands of outputs from queueing them all ahead of the host's own file reads.
|
|
130
|
+
*/
|
|
131
|
+
export declare const WRITE_CONCURRENCY = 16;
|
|
132
|
+
export declare class TransactionalOutputCommitter implements OutputCommitter {
|
|
133
|
+
private readonly outputRoot;
|
|
134
|
+
private readonly hook?;
|
|
135
|
+
private readonly renameFile;
|
|
136
|
+
private readonly copyBackup;
|
|
137
|
+
/** The rollback's rename: the real one, never the injected port, with the same retries. */
|
|
138
|
+
private readonly restoreFile;
|
|
139
|
+
private readonly platform;
|
|
140
|
+
private readonly write;
|
|
141
|
+
private readonly delta;
|
|
142
|
+
private readonly parallel;
|
|
143
|
+
private active?;
|
|
144
|
+
private disposed;
|
|
145
|
+
/**
|
|
146
|
+
* Outputs whose on-disk bytes were compared equal to their digest. A later commit skips
|
|
147
|
+
* reading an output whose digest is unchanged while its lstat identity (device, inode,
|
|
148
|
+
* size, mtime, ctime) still matches; any other output is read and compared as before.
|
|
149
|
+
*/
|
|
150
|
+
private readonly verified;
|
|
151
|
+
/** The publication of the previous call, if it ended `committed` (delta commits only). */
|
|
152
|
+
private published?;
|
|
153
|
+
/** Commit calls so far; a publication is recorded only by the newest call. */
|
|
154
|
+
private calls;
|
|
155
|
+
private telemetry?;
|
|
156
|
+
constructor(options: OutputCommitterOptions);
|
|
157
|
+
commit(request: CommitRequest, guard: CommitGuard, signal: AbortSignal): Promise<CommitResult>;
|
|
158
|
+
/** How the last commit call ran, if it reached a plan (tests and diagnostics). */
|
|
159
|
+
inspect(): CommitTelemetry | undefined;
|
|
160
|
+
dispose(): Promise<void>;
|
|
161
|
+
private runCommit;
|
|
162
|
+
/**
|
|
163
|
+
* The probe of a plan's targets: every segment is checked as `assertSafeTarget` would, and an
|
|
164
|
+
* existing target that the previous manifest does not own is an unowned collision.
|
|
165
|
+
*/
|
|
166
|
+
private checkTargets;
|
|
167
|
+
private prepare;
|
|
168
|
+
private ensureSafeRoot;
|
|
169
|
+
private assertSafeTarget;
|
|
170
|
+
/**
|
|
171
|
+
* The read-only half of the full commit's per-output loop, concurrently: whether each output is
|
|
172
|
+
* unchanged since it was verified, else its safety check (`assertSafeTarget`) and the comparison
|
|
173
|
+
* of its bytes. A large site has thousands of outputs, and one at a time those lstat, realpath
|
|
174
|
+
* and read calls made a restart that writes nothing wait on the filesystem for seconds.
|
|
175
|
+
*
|
|
176
|
+
* Nothing here writes or records anything: the caller applies the outcomes in plan order, so
|
|
177
|
+
* staging, the verified stats and the first failure are exactly those of the sequential loop (a
|
|
178
|
+
* later output's failure is never reported before an earlier output's). An output whose check
|
|
179
|
+
* did not run (the generation stopped being current) is checked by the caller as before.
|
|
180
|
+
*/
|
|
181
|
+
private checkOutputs;
|
|
182
|
+
/**
|
|
183
|
+
* Observes every path segment under the root once, concurrently.
|
|
184
|
+
*/
|
|
185
|
+
private probe;
|
|
186
|
+
/** `assertSafeTarget` over probed segments: the same checks, order and messages. */
|
|
187
|
+
private checkProbedTarget;
|
|
188
|
+
private unchangedSinceVerified;
|
|
189
|
+
private rememberVerified;
|
|
190
|
+
private readManifest;
|
|
191
|
+
/**
|
|
192
|
+
* The delta commit's plan, or why the full commit runs instead. It mutates nothing, and it
|
|
193
|
+
* returns a plan only when the full commit would reach the same transaction: the base is the
|
|
194
|
+
* publication this committer made in its previous call and still on disk (manifest stamp); the
|
|
195
|
+
* configuration is unchanged; the changed artifacts and the top level pass the full path's
|
|
196
|
+
* checks; and every target of a changed artifact and every orphan passes the probe. Anything
|
|
197
|
+
* else, including an error, runs the full commit, which then reports any failure exactly as
|
|
198
|
+
* before.
|
|
199
|
+
*/
|
|
200
|
+
private deltaAttempt;
|
|
201
|
+
/**
|
|
202
|
+
* `prepare` for the changed artifacts only, or undefined when the full commit must decide.
|
|
203
|
+
* Unchanged artifacts (the same id and revision, and outputs equal to the published ones) keep
|
|
204
|
+
* their published manifest entries; the manifest is the published one minus the entries of
|
|
205
|
+
* removed or changed artifacts plus the changed artifacts' outputs, in the full path's order.
|
|
206
|
+
*/
|
|
207
|
+
private prepareDelta;
|
|
208
|
+
/**
|
|
209
|
+
* Post-publish verification: the stat of each file this commit published is recorded instead of
|
|
210
|
+
* forgotten, but only while the target is provably still the file this commit wrote:
|
|
211
|
+
* - the target right after the rename had the staged file's device, inode, size and mtime (a
|
|
212
|
+
* rename keeps them; a replacement changes the inode);
|
|
213
|
+
* - the target now has that same stat, including the ctime taken right after the rename (an
|
|
214
|
+
* in-place rewrite changes the ctime even when it restores the mtime, as `touch -r` does);
|
|
215
|
+
* - the timestamps are finer than whole seconds (on a coarse filesystem a rewrite within the
|
|
216
|
+
* same tick leaves every timestamp unchanged, so nothing is recorded there).
|
|
217
|
+
* `rememberVerified` keeps its racy-window rule, so a file is trusted only when it was
|
|
218
|
+
* published at least that window before its stat; a file published later would be dropped by
|
|
219
|
+
* that rule anyway and is not observed at all.
|
|
220
|
+
*/
|
|
221
|
+
private rememberPublished;
|
|
222
|
+
/**
|
|
223
|
+
* The stamp of `file` if it is still the file whose staged stat is `staged`. None on a
|
|
224
|
+
* filesystem with whole-second timestamps: there an in-place rewrite of the manifest within the
|
|
225
|
+
* same tick would keep the stamp, so such a committer always takes the full path.
|
|
226
|
+
*/
|
|
227
|
+
private publishedStamp;
|
|
228
|
+
/** What the next call may use as its delta base: this commit's manifest, as published. */
|
|
229
|
+
private publication;
|
|
230
|
+
private manifestStamp;
|
|
231
|
+
/**
|
|
232
|
+
* For each output below a directory that does not exist yet, the outermost such directory
|
|
233
|
+
* (relative to the output root), unless one of its outputs is published late (routes, context,
|
|
234
|
+
* search): the directory would publish it early. Those outputs, and every other, are published
|
|
235
|
+
* one by one.
|
|
236
|
+
* @param order The changed outputs, in publication order.
|
|
237
|
+
*/
|
|
238
|
+
private newDirectories;
|
|
239
|
+
/**
|
|
240
|
+
* Parallel writes: stages the changed outputs concurrently, first the directories they need in
|
|
241
|
+
* the stage, then their files, at most {@link WRITE_CONCURRENCY} at a time. Every write lands
|
|
242
|
+
* inside the stage, which hosts do not watch (`GENERATED_STAGE_IGNORE`) and which nothing reads
|
|
243
|
+
* before its publish renames, so the order of the writes is not observable. A failure, a stale
|
|
244
|
+
* guard or an abort starts no further write and waits for the writes in flight (`runBounded`),
|
|
245
|
+
* so nothing is still writing when the rollback removes the stage.
|
|
246
|
+
* @param changed The changed outputs, in plan order.
|
|
247
|
+
* @param stagedOutputs The stage's output tree.
|
|
248
|
+
* @param generation The generation the guard must still accept.
|
|
249
|
+
* @param guard The commit guard.
|
|
250
|
+
* @param signal The commit's signal.
|
|
251
|
+
*/
|
|
252
|
+
private stage;
|
|
253
|
+
/**
|
|
254
|
+
* Parallel writes: the backups of the outputs published one by one, taken concurrently (at most
|
|
255
|
+
* {@link WRITE_CONCURRENCY} at a time) before the first publish rename, keyed by output.
|
|
256
|
+
*
|
|
257
|
+
* A backup copies its output and leaves it untouched (see `backUp`), so taking it early changes
|
|
258
|
+
* nothing a reader or watcher of the output root sees, and the publish renames that follow keep
|
|
259
|
+
* their order. Until an output is published, the rollback has no record of it, so a failure here
|
|
260
|
+
* or before its turn leaves it in place and its copy goes with the stage. Where the copy fails
|
|
261
|
+
* with a file system error, its partial file is removed and the output gets no identity: its
|
|
262
|
+
* publication moves it away right before its rename, as `backUp` does, so the gap of that
|
|
263
|
+
* fallback is as short as without parallel writes. A copy error without a code is thrown.
|
|
264
|
+
* @param items The outputs published one by one, in publication order.
|
|
265
|
+
* @param backups The stage's backup tree.
|
|
266
|
+
* @param generation The generation the guard must still accept.
|
|
267
|
+
* @param guard The commit guard.
|
|
268
|
+
* @param signal The commit's signal.
|
|
269
|
+
*/
|
|
270
|
+
private backUpAll;
|
|
271
|
+
/**
|
|
272
|
+
* Parallel writes: publishes the new directory `directory` whole, as the sequential loop does
|
|
273
|
+
* (one rename of its staged copy, each member's `publish-output` hook first, in order), with the
|
|
274
|
+
* stats of delta commits taken concurrently: every staged file's before the rename, then the
|
|
275
|
+
* clock, which the rename follows, then every published file's right after it.
|
|
276
|
+
* @param members The outputs below the directory, in publication order.
|
|
277
|
+
* @param stagedOutputs The stage's output tree.
|
|
278
|
+
* @param directory The directory, relative to the output root.
|
|
279
|
+
* @param published The delta commit's record of published outputs.
|
|
280
|
+
* @param signal The commit's signal.
|
|
281
|
+
*/
|
|
282
|
+
private publishDirectory;
|
|
283
|
+
/**
|
|
284
|
+
* Keeps the published file `target` at `backup` for the rollback, leaving `target` in place and
|
|
285
|
+
* untouched: a copy, so the publish rename that follows replaces `target` in one step and it never
|
|
286
|
+
* goes missing. Had it been moved away first, a reader between the two renames (a transform
|
|
287
|
+
* request) would find no file, and a watcher that stats a file whose inode moved (chokidar's
|
|
288
|
+
* `fs.watch` backend, the default on Linux) would report the rewrite as a deletion and a creation;
|
|
289
|
+
* a host waiting for that output's change would wait in vain. Not a hard link either: a link
|
|
290
|
+
* changes the file's link count, which inotify reports (`IN_ATTRIB`) as a change of the old
|
|
291
|
+
* bytes, and chokidar then drops the publish's own change within its 50 ms throttle, so the host
|
|
292
|
+
* never sees the new bytes.
|
|
293
|
+
*
|
|
294
|
+
* The copy records the identity of the file it copied: a rollback leaves that very file in place
|
|
295
|
+
* while the target still is it, and restores the copy's bytes otherwise. Where the copy fails, the
|
|
296
|
+
* file is moved away instead, which is the protocol without the copy: the rollback restores that
|
|
297
|
+
* backup by moving it back, so only the gap differs. Any system error falls back, not a list of
|
|
298
|
+
* codes, because file systems do not agree on them (a full volume, a file another process holds
|
|
299
|
+
* on Windows, network and FUSE mounts). A copy that took effect although it reported an error is
|
|
300
|
+
* replaced by the move. Only an error without a code, which no file system call raises, is
|
|
301
|
+
* rethrown.
|
|
302
|
+
* @param target A published output or the manifest.
|
|
303
|
+
* @param backup Its path in the stage's backups.
|
|
304
|
+
* @param record The target's rollback record, which learns how the backup was taken.
|
|
305
|
+
*/
|
|
306
|
+
private backUp;
|
|
307
|
+
private mutate;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Whether `outputRoot` still publishes exactly `manifest`: its manifest file holds the bytes the
|
|
311
|
+
* commit of `manifest` wrote. A later commit of any generation or project replaces it.
|
|
312
|
+
*/
|
|
313
|
+
export declare function publishesManifest(outputRoot: string, manifest: OutputManifest): Promise<boolean>;
|
|
314
|
+
export declare function createArtifactCache(root: string): ArtifactCache;
|
|
315
|
+
export declare function createOutputCommitter(options: OutputCommitterOptions): OutputCommitter;
|
|
316
|
+
/** Shared strict boundary for host-visible candidate configuration. */
|
|
317
|
+
export declare function isPublishedGeneratorConfiguration(value: unknown): value is PublishedGeneratorConfiguration;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { runGeneratorCli } from './cli.js';
|
|
3
|
+
/** @internal Process boundary used by the executable and its signal tests. */
|
|
4
|
+
export interface GeneratorBinProcess {
|
|
5
|
+
argv: string[];
|
|
6
|
+
exitCode?: string | number;
|
|
7
|
+
stderr: {
|
|
8
|
+
write(text: string): unknown;
|
|
9
|
+
};
|
|
10
|
+
once(event: 'SIGINT' | 'SIGTERM', listener: () => void): unknown;
|
|
11
|
+
removeListener(event: 'SIGINT' | 'SIGTERM', listener: () => void): unknown;
|
|
12
|
+
}
|
|
13
|
+
type CliRunner = typeof runGeneratorCli;
|
|
14
|
+
export declare function runGeneratorBin(processPort?: GeneratorBinProcess, run?: CliRunner): Promise<number>;
|
|
15
|
+
export declare function isGeneratorBinMain(argv1: string | undefined, moduleUrl: string): boolean;
|
|
16
|
+
/** @internal Converts an unexpected executable-boundary rejection to a joined exit. */
|
|
17
|
+
export declare function runGeneratorBinMain(processPort?: GeneratorBinProcess, run?: CliRunner): Promise<void>;
|
|
18
|
+
export {};
|