@depup/angular__cli 21.2.1-depup.1
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/LICENSE +21 -0
- package/README.md +36 -0
- package/bin/bootstrap.js +33 -0
- package/bin/ng.js +71 -0
- package/bin/package.json +3 -0
- package/changes.json +30 -0
- package/lib/cli/index.d.ts +11 -0
- package/lib/cli/index.js +109 -0
- package/lib/cli/index.js.map +1 -0
- package/lib/code-examples.db +0 -0
- package/lib/config/schema.json +6150 -0
- package/lib/config/workspace-schema.d.ts +1025 -0
- package/lib/config/workspace-schema.js +133 -0
- package/lib/config/workspace-schema.js.map +1 -0
- package/lib/init.d.ts +8 -0
- package/lib/init.js +162 -0
- package/lib/init.js.map +1 -0
- package/package.json +103 -0
- package/src/analytics/analytics-collector.d.ts +35 -0
- package/src/analytics/analytics-collector.js +195 -0
- package/src/analytics/analytics-collector.js.map +1 -0
- package/src/analytics/analytics-parameters.d.ts +101 -0
- package/src/analytics/analytics-parameters.js +107 -0
- package/src/analytics/analytics-parameters.js.map +1 -0
- package/src/analytics/analytics.d.ts +27 -0
- package/src/analytics/analytics.js +183 -0
- package/src/analytics/analytics.js.map +1 -0
- package/src/command-builder/architect-base-command-module.d.ts +30 -0
- package/src/command-builder/architect-base-command-module.js +244 -0
- package/src/command-builder/architect-base-command-module.js.map +1 -0
- package/src/command-builder/architect-command-module.d.ts +28 -0
- package/src/command-builder/architect-command-module.js +218 -0
- package/src/command-builder/architect-command-module.js.map +1 -0
- package/src/command-builder/command-module.d.ts +73 -0
- package/src/command-builder/command-module.js +245 -0
- package/src/command-builder/command-module.js.map +1 -0
- package/src/command-builder/command-runner.d.ts +9 -0
- package/src/command-builder/command-runner.js +195 -0
- package/src/command-builder/command-runner.js.map +1 -0
- package/src/command-builder/definitions.d.ts +41 -0
- package/src/command-builder/definitions.js +20 -0
- package/src/command-builder/definitions.js.map +1 -0
- package/src/command-builder/schematics-command-module.d.ts +41 -0
- package/src/command-builder/schematics-command-module.js +408 -0
- package/src/command-builder/schematics-command-module.js.map +1 -0
- package/src/command-builder/utilities/command.d.ts +13 -0
- package/src/command-builder/utilities/command.js +39 -0
- package/src/command-builder/utilities/command.js.map +1 -0
- package/src/command-builder/utilities/json-help.d.ts +37 -0
- package/src/command-builder/utilities/json-help.js +92 -0
- package/src/command-builder/utilities/json-help.js.map +1 -0
- package/src/command-builder/utilities/json-schema.d.ts +64 -0
- package/src/command-builder/utilities/json-schema.js +349 -0
- package/src/command-builder/utilities/json-schema.js.map +1 -0
- package/src/command-builder/utilities/normalize-options-middleware.d.ts +18 -0
- package/src/command-builder/utilities/normalize-options-middleware.js +37 -0
- package/src/command-builder/utilities/normalize-options-middleware.js.map +1 -0
- package/src/command-builder/utilities/schematic-engine-host.d.ts +15 -0
- package/src/command-builder/utilities/schematic-engine-host.js +179 -0
- package/src/command-builder/utilities/schematic-engine-host.js.map +1 -0
- package/src/command-builder/utilities/schematic-workflow.d.ts +14 -0
- package/src/command-builder/utilities/schematic-workflow.js +70 -0
- package/src/command-builder/utilities/schematic-workflow.js.map +1 -0
- package/src/commands/add/cli.d.ts +38 -0
- package/src/commands/add/cli.js +623 -0
- package/src/commands/add/cli.js.map +1 -0
- package/src/commands/add/long-description.md +7 -0
- package/src/commands/analytics/cli.d.ts +16 -0
- package/src/commands/analytics/cli.js +34 -0
- package/src/commands/analytics/cli.js.map +1 -0
- package/src/commands/analytics/info/cli.d.ts +16 -0
- package/src/commands/analytics/info/cli.js +25 -0
- package/src/commands/analytics/info/cli.js.map +1 -0
- package/src/commands/analytics/long-description.md +20 -0
- package/src/commands/analytics/settings/cli.d.ts +35 -0
- package/src/commands/analytics/settings/cli.js +54 -0
- package/src/commands/analytics/settings/cli.js.map +1 -0
- package/src/commands/build/cli.d.ts +16 -0
- package/src/commands/build/cli.js +21 -0
- package/src/commands/build/cli.js.map +1 -0
- package/src/commands/build/long-description.md +18 -0
- package/src/commands/cache/clean/cli.d.ts +17 -0
- package/src/commands/cache/clean/cli.js +32 -0
- package/src/commands/cache/clean/cli.js.map +1 -0
- package/src/commands/cache/cli.d.ts +17 -0
- package/src/commands/cache/cli.js +36 -0
- package/src/commands/cache/cli.js.map +1 -0
- package/src/commands/cache/info/cli.d.ts +20 -0
- package/src/commands/cache/info/cli.js +139 -0
- package/src/commands/cache/info/cli.js.map +1 -0
- package/src/commands/cache/long-description.md +53 -0
- package/src/commands/cache/settings/cli.d.ts +27 -0
- package/src/commands/cache/settings/cli.js +41 -0
- package/src/commands/cache/settings/cli.js.map +1 -0
- package/src/commands/cache/utilities.d.ts +11 -0
- package/src/commands/cache/utilities.js +47 -0
- package/src/commands/cache/utilities.js.map +1 -0
- package/src/commands/command-config.d.ts +17 -0
- package/src/commands/command-config.js +116 -0
- package/src/commands/command-config.js.map +1 -0
- package/src/commands/completion/cli.d.ts +16 -0
- package/src/commands/completion/cli.js +61 -0
- package/src/commands/completion/cli.js.map +1 -0
- package/src/commands/completion/long-description.md +67 -0
- package/src/commands/config/cli.d.ts +24 -0
- package/src/commands/config/cli.js +150 -0
- package/src/commands/config/cli.js.map +1 -0
- package/src/commands/config/long-description.md +13 -0
- package/src/commands/deploy/cli.d.ts +17 -0
- package/src/commands/deploy/cli.js +38 -0
- package/src/commands/deploy/cli.js.map +1 -0
- package/src/commands/deploy/long-description.md +22 -0
- package/src/commands/e2e/cli.d.ts +18 -0
- package/src/commands/e2e/cli.js +42 -0
- package/src/commands/e2e/cli.js.map +1 -0
- package/src/commands/extract-i18n/cli.d.ts +17 -0
- package/src/commands/extract-i18n/cli.js +48 -0
- package/src/commands/extract-i18n/cli.js.map +1 -0
- package/src/commands/generate/cli.d.ts +47 -0
- package/src/commands/generate/cli.js +189 -0
- package/src/commands/generate/cli.js.map +1 -0
- package/src/commands/lint/cli.d.ts +17 -0
- package/src/commands/lint/cli.js +25 -0
- package/src/commands/lint/cli.js.map +1 -0
- package/src/commands/lint/long-description.md +20 -0
- package/src/commands/make-this-awesome/cli.d.ts +17 -0
- package/src/commands/make-this-awesome/cli.js +36 -0
- package/src/commands/make-this-awesome/cli.js.map +1 -0
- package/src/commands/mcp/cli.d.ts +20 -0
- package/src/commands/mcp/cli.js +74 -0
- package/src/commands/mcp/cli.js.map +1 -0
- package/src/commands/mcp/constants.d.ts +10 -0
- package/src/commands/mcp/constants.js +16 -0
- package/src/commands/mcp/constants.js.map +1 -0
- package/src/commands/mcp/devserver.d.ts +85 -0
- package/src/commands/mcp/devserver.js +112 -0
- package/src/commands/mcp/devserver.js.map +1 -0
- package/src/commands/mcp/host.d.ts +97 -0
- package/src/commands/mcp/host.js +118 -0
- package/src/commands/mcp/host.js.map +1 -0
- package/src/commands/mcp/mcp-server.d.ts +192 -0
- package/src/commands/mcp/mcp-server.js +155 -0
- package/src/commands/mcp/mcp-server.js.map +1 -0
- package/src/commands/mcp/resources/ai-tutor.md +824 -0
- package/src/commands/mcp/resources/best-practices.md +54 -0
- package/src/commands/mcp/resources/instructions.d.ts +9 -0
- package/src/commands/mcp/resources/instructions.js +26 -0
- package/src/commands/mcp/resources/instructions.js.map +1 -0
- package/src/commands/mcp/shared-options.d.ts +12 -0
- package/src/commands/mcp/shared-options.js +22 -0
- package/src/commands/mcp/shared-options.js.map +1 -0
- package/src/commands/mcp/tools/ai-tutor.d.ts +12 -0
- package/src/commands/mcp/tools/ai-tutor.js +59 -0
- package/src/commands/mcp/tools/ai-tutor.js.map +1 -0
- package/src/commands/mcp/tools/best-practices.d.ts +13 -0
- package/src/commands/mcp/tools/best-practices.js +187 -0
- package/src/commands/mcp/tools/best-practices.js.map +1 -0
- package/src/commands/mcp/tools/build.d.ts +37 -0
- package/src/commands/mcp/tools/build.js +89 -0
- package/src/commands/mcp/tools/build.js.map +1 -0
- package/src/commands/mcp/tools/devserver/devserver-start.d.ts +31 -0
- package/src/commands/mcp/tools/devserver/devserver-start.js +91 -0
- package/src/commands/mcp/tools/devserver/devserver-start.js.map +1 -0
- package/src/commands/mcp/tools/devserver/devserver-stop.d.ts +31 -0
- package/src/commands/mcp/tools/devserver/devserver-stop.js +68 -0
- package/src/commands/mcp/tools/devserver/devserver-stop.js.map +1 -0
- package/src/commands/mcp/tools/devserver/devserver-wait-for-build.d.ts +41 -0
- package/src/commands/mcp/tools/devserver/devserver-wait-for-build.js +104 -0
- package/src/commands/mcp/tools/devserver/devserver-wait-for-build.js.map +1 -0
- package/src/commands/mcp/tools/doc-search.d.ts +21 -0
- package/src/commands/mcp/tools/doc-search.js +324 -0
- package/src/commands/mcp/tools/doc-search.js.map +1 -0
- package/src/commands/mcp/tools/e2e.d.ts +44 -0
- package/src/commands/mcp/tools/e2e.js +87 -0
- package/src/commands/mcp/tools/e2e.js.map +1 -0
- package/src/commands/mcp/tools/examples/database-discovery.d.ts +34 -0
- package/src/commands/mcp/tools/examples/database-discovery.js +87 -0
- package/src/commands/mcp/tools/examples/database-discovery.js.map +1 -0
- package/src/commands/mcp/tools/examples/database.d.ts +35 -0
- package/src/commands/mcp/tools/examples/database.js +125 -0
- package/src/commands/mcp/tools/examples/database.js.map +1 -0
- package/src/commands/mcp/tools/examples/index.d.ts +26 -0
- package/src/commands/mcp/tools/examples/index.js +149 -0
- package/src/commands/mcp/tools/examples/index.js.map +1 -0
- package/src/commands/mcp/tools/examples/query-escaper.d.ts +20 -0
- package/src/commands/mcp/tools/examples/query-escaper.js +68 -0
- package/src/commands/mcp/tools/examples/query-escaper.js.map +1 -0
- package/src/commands/mcp/tools/examples/runtime-database.d.ts +10 -0
- package/src/commands/mcp/tools/examples/runtime-database.js +192 -0
- package/src/commands/mcp/tools/examples/runtime-database.js.map +1 -0
- package/src/commands/mcp/tools/examples/schemas.d.ts +29 -0
- package/src/commands/mcp/tools/examples/schemas.js +101 -0
- package/src/commands/mcp/tools/examples/schemas.js.map +1 -0
- package/src/commands/mcp/tools/examples/utils.d.ts +14 -0
- package/src/commands/mcp/tools/examples/utils.js +31 -0
- package/src/commands/mcp/tools/examples/utils.js.map +1 -0
- package/src/commands/mcp/tools/modernize.d.ts +43 -0
- package/src/commands/mcp/tools/modernize.js +165 -0
- package/src/commands/mcp/tools/modernize.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.d.ts +17 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.js +62 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.d.ts +12 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.js +73 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.d.ts +11 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.js +60 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.d.ts +15 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.js +238 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.d.ts +10 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.js +20 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.d.ts +35 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.js +136 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/types.d.ts +13 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/types.js +10 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/types.js.map +1 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.d.ts +16 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js +224 -0
- package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js.map +1 -0
- package/src/commands/mcp/tools/projects.d.ts +47 -0
- package/src/commands/mcp/tools/projects.js +523 -0
- package/src/commands/mcp/tools/projects.js.map +1 -0
- package/src/commands/mcp/tools/test.d.ts +35 -0
- package/src/commands/mcp/tools/test.js +79 -0
- package/src/commands/mcp/tools/test.js.map +1 -0
- package/src/commands/mcp/tools/tool-registry.d.ts +39 -0
- package/src/commands/mcp/tools/tool-registry.js +35 -0
- package/src/commands/mcp/tools/tool-registry.js.map +1 -0
- package/src/commands/mcp/utils.d.ts +25 -0
- package/src/commands/mcp/utils.js +44 -0
- package/src/commands/mcp/utils.js.map +1 -0
- package/src/commands/mcp/workspace-utils.d.ts +53 -0
- package/src/commands/mcp/workspace-utils.js +138 -0
- package/src/commands/mcp/workspace-utils.js.map +1 -0
- package/src/commands/new/cli.d.ts +27 -0
- package/src/commands/new/cli.js +76 -0
- package/src/commands/new/cli.js.map +1 -0
- package/src/commands/new/long-description.md +15 -0
- package/src/commands/run/cli.d.ts +25 -0
- package/src/commands/run/cli.js +89 -0
- package/src/commands/run/cli.js.map +1 -0
- package/src/commands/run/long-description.md +10 -0
- package/src/commands/serve/cli.d.ts +16 -0
- package/src/commands/serve/cli.js +20 -0
- package/src/commands/serve/cli.js.map +1 -0
- package/src/commands/test/cli.d.ts +16 -0
- package/src/commands/test/cli.js +21 -0
- package/src/commands/test/cli.js.map +1 -0
- package/src/commands/test/long-description.md +2 -0
- package/src/commands/update/cli.d.ts +34 -0
- package/src/commands/update/cli.js +531 -0
- package/src/commands/update/cli.js.map +1 -0
- package/src/commands/update/long-description.md +22 -0
- package/src/commands/update/schematic/collection.json +9 -0
- package/src/commands/update/schematic/index.d.ts +11 -0
- package/src/commands/update/schematic/index.js +715 -0
- package/src/commands/update/schematic/index.js.map +1 -0
- package/src/commands/update/schematic/schema.d.ts +51 -0
- package/src/commands/update/schematic/schema.js +16 -0
- package/src/commands/update/schematic/schema.js.map +1 -0
- package/src/commands/update/schematic/schema.json +64 -0
- package/src/commands/update/utilities/cli-version.d.ts +48 -0
- package/src/commands/update/utilities/cli-version.js +196 -0
- package/src/commands/update/utilities/cli-version.js.map +1 -0
- package/src/commands/update/utilities/constants.d.ts +12 -0
- package/src/commands/update/utilities/constants.js +16 -0
- package/src/commands/update/utilities/constants.js.map +1 -0
- package/src/commands/update/utilities/git.d.ts +36 -0
- package/src/commands/update/utilities/git.js +148 -0
- package/src/commands/update/utilities/git.js.map +1 -0
- package/src/commands/update/utilities/migration.d.ts +32 -0
- package/src/commands/update/utilities/migration.js +267 -0
- package/src/commands/update/utilities/migration.js.map +1 -0
- package/src/commands/version/cli.d.ts +36 -0
- package/src/commands/version/cli.js +117 -0
- package/src/commands/version/cli.js.map +1 -0
- package/src/commands/version/version-info.d.ts +46 -0
- package/src/commands/version/version-info.js +107 -0
- package/src/commands/version/version-info.js.map +1 -0
- package/src/package-managers/discovery.d.ts +23 -0
- package/src/package-managers/discovery.js +104 -0
- package/src/package-managers/discovery.js.map +1 -0
- package/src/package-managers/error.d.ts +43 -0
- package/src/package-managers/error.js +41 -0
- package/src/package-managers/error.js.map +1 -0
- package/src/package-managers/factory.d.ts +30 -0
- package/src/package-managers/factory.js +137 -0
- package/src/package-managers/factory.js.map +1 -0
- package/src/package-managers/host.d.ts +86 -0
- package/src/package-managers/host.js +80 -0
- package/src/package-managers/host.js.map +1 -0
- package/src/package-managers/index.d.ts +13 -0
- package/src/package-managers/index.js +17 -0
- package/src/package-managers/index.js.map +1 -0
- package/src/package-managers/logger.d.ts +27 -0
- package/src/package-managers/logger.js +10 -0
- package/src/package-managers/logger.js.map +1 -0
- package/src/package-managers/package-manager-descriptor.d.ts +245 -0
- package/src/package-managers/package-manager-descriptor.js +175 -0
- package/src/package-managers/package-manager-descriptor.js.map +1 -0
- package/src/package-managers/package-manager.d.ts +191 -0
- package/src/package-managers/package-manager.js +496 -0
- package/src/package-managers/package-manager.js.map +1 -0
- package/src/package-managers/package-metadata.d.ts +91 -0
- package/src/package-managers/package-metadata.js +10 -0
- package/src/package-managers/package-metadata.js.map +1 -0
- package/src/package-managers/package-tree.d.ts +23 -0
- package/src/package-managers/package-tree.js +10 -0
- package/src/package-managers/package-tree.js.map +1 -0
- package/src/package-managers/parsers.d.ts +170 -0
- package/src/package-managers/parsers.js +467 -0
- package/src/package-managers/parsers.js.map +1 -0
- package/src/utilities/color.d.ts +9 -0
- package/src/utilities/color.js +28 -0
- package/src/utilities/color.js.map +1 -0
- package/src/utilities/completion.d.ts +30 -0
- package/src/utilities/completion.js +270 -0
- package/src/utilities/completion.js.map +1 -0
- package/src/utilities/config.d.ts +38 -0
- package/src/utilities/config.js +369 -0
- package/src/utilities/config.js.map +1 -0
- package/src/utilities/environment-options.d.ts +25 -0
- package/src/utilities/environment-options.js +60 -0
- package/src/utilities/environment-options.js.map +1 -0
- package/src/utilities/eol.d.ts +20 -0
- package/src/utilities/eol.js +35 -0
- package/src/utilities/eol.js.map +1 -0
- package/src/utilities/error.d.ts +18 -0
- package/src/utilities/error.js +41 -0
- package/src/utilities/error.js.map +1 -0
- package/src/utilities/find-up.d.ts +21 -0
- package/src/utilities/find-up.js +67 -0
- package/src/utilities/find-up.js.map +1 -0
- package/src/utilities/json-file.d.ts +24 -0
- package/src/utilities/json-file.js +179 -0
- package/src/utilities/json-file.js.map +1 -0
- package/src/utilities/log-file.d.ts +13 -0
- package/src/utilities/log-file.js +28 -0
- package/src/utilities/log-file.js.map +1 -0
- package/src/utilities/memoize.d.ts +15 -0
- package/src/utilities/memoize.js +64 -0
- package/src/utilities/memoize.js.map +1 -0
- package/src/utilities/package-metadata.d.ts +58 -0
- package/src/utilities/package-metadata.js +265 -0
- package/src/utilities/package-metadata.js.map +1 -0
- package/src/utilities/prettier.d.ts +13 -0
- package/src/utilities/prettier.js +46 -0
- package/src/utilities/prettier.js.map +1 -0
- package/src/utilities/project.d.ts +8 -0
- package/src/utilities/project.js +81 -0
- package/src/utilities/project.js.map +1 -0
- package/src/utilities/prompt.d.ts +17 -0
- package/src/utilities/prompt.js +90 -0
- package/src/utilities/prompt.js.map +1 -0
- package/src/utilities/tty.d.ts +16 -0
- package/src/utilities/tty.js +23 -0
- package/src/utilities/tty.js.map +1 -0
- package/src/utilities/version.d.ts +16 -0
- package/src/utilities/version.js +26 -0
- package/src/utilities/version.js.map +1 -0
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.parseNpmLikeDependencies = parseNpmLikeDependencies;
|
|
11
|
+
exports.parseYarnClassicDependencies = parseYarnClassicDependencies;
|
|
12
|
+
exports.parseNpmLikeManifest = parseNpmLikeManifest;
|
|
13
|
+
exports.parseNpmLikeMetadata = parseNpmLikeMetadata;
|
|
14
|
+
exports.parseYarnClassicManifest = parseYarnClassicManifest;
|
|
15
|
+
exports.parseYarnClassicMetadata = parseYarnClassicMetadata;
|
|
16
|
+
exports.parseNpmLikeError = parseNpmLikeError;
|
|
17
|
+
exports.parseYarnClassicError = parseYarnClassicError;
|
|
18
|
+
exports.parseBunDependencies = parseBunDependencies;
|
|
19
|
+
exports.parseYarnModernDependencies = parseYarnModernDependencies;
|
|
20
|
+
const MAX_LOG_LENGTH = 1024;
|
|
21
|
+
function logStdout(stdout, logger) {
|
|
22
|
+
if (!logger) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
let output = stdout;
|
|
26
|
+
if (output.length > MAX_LOG_LENGTH) {
|
|
27
|
+
output = `${output.slice(0, MAX_LOG_LENGTH)}... (truncated)`;
|
|
28
|
+
}
|
|
29
|
+
logger.debug(` stdout:\n${output}`);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A generator function that parses a string containing JSONL (newline-delimited JSON)
|
|
33
|
+
* and yields each successfully parsed JSON object.
|
|
34
|
+
* @param output The string output to parse.
|
|
35
|
+
* @param logger An optional logger instance.
|
|
36
|
+
*/
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
38
|
+
function* parseJsonLines(output, logger) {
|
|
39
|
+
for (const line of output.split('\n')) {
|
|
40
|
+
if (!line.trim()) {
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
yield JSON.parse(line);
|
|
45
|
+
}
|
|
46
|
+
catch (e) {
|
|
47
|
+
logger?.debug(` Ignoring non-JSON line: ${e}`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Parses the output of `npm list` or a compatible command.
|
|
53
|
+
*
|
|
54
|
+
* The expected JSON structure is:
|
|
55
|
+
* ```json
|
|
56
|
+
* {
|
|
57
|
+
* "dependencies": {
|
|
58
|
+
* "@angular/cli": {
|
|
59
|
+
* "version": "18.0.0",
|
|
60
|
+
* "path": "/path/to/project/node_modules/@angular/cli", // path is optional
|
|
61
|
+
* ... (other package.json properties)
|
|
62
|
+
* }
|
|
63
|
+
* }
|
|
64
|
+
* }
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param stdout The standard output of the command.
|
|
68
|
+
* @param logger An optional logger instance.
|
|
69
|
+
* @returns A map of package names to their installed package details.
|
|
70
|
+
*/
|
|
71
|
+
function parseNpmLikeDependencies(stdout, logger) {
|
|
72
|
+
logger?.debug(`Parsing npm-like dependency list...`);
|
|
73
|
+
logStdout(stdout, logger);
|
|
74
|
+
const dependencies = new Map();
|
|
75
|
+
if (!stdout) {
|
|
76
|
+
logger?.debug(' stdout is empty. No dependencies found.');
|
|
77
|
+
return dependencies;
|
|
78
|
+
}
|
|
79
|
+
let data = JSON.parse(stdout);
|
|
80
|
+
if (Array.isArray(data)) {
|
|
81
|
+
// pnpm returns an array of projects.
|
|
82
|
+
data = data[0];
|
|
83
|
+
}
|
|
84
|
+
const dependencyMaps = [data.dependencies, data.devDependencies, data.unsavedDependencies].filter((d) => !!d);
|
|
85
|
+
if (dependencyMaps.length === 0) {
|
|
86
|
+
logger?.debug(' `dependencies` property not found. No dependencies found.');
|
|
87
|
+
return dependencies;
|
|
88
|
+
}
|
|
89
|
+
for (const dependencyMap of dependencyMaps) {
|
|
90
|
+
for (const [name, info] of Object.entries(dependencyMap)) {
|
|
91
|
+
dependencies.set(name, {
|
|
92
|
+
name,
|
|
93
|
+
version: info.version,
|
|
94
|
+
path: info.path,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
logger?.debug(` Found ${dependencies.size} dependencies.`);
|
|
99
|
+
return dependencies;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Parses the output of `yarn list` (classic).
|
|
103
|
+
*
|
|
104
|
+
* The expected output is a JSON stream (JSONL), where each line is a JSON object.
|
|
105
|
+
* The relevant object has a `type` of `'tree'` with a `data` property.
|
|
106
|
+
* Yarn classic does not provide a path, so the `path` property will be `undefined`.
|
|
107
|
+
*
|
|
108
|
+
* ```json
|
|
109
|
+
* {"type":"tree","data":{"trees":[{"name":"@angular/cli@18.0.0","children":[]}]}}
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* @param stdout The standard output of the command.
|
|
113
|
+
* @param logger An optional logger instance.
|
|
114
|
+
* @returns A map of package names to their installed package details.
|
|
115
|
+
*/
|
|
116
|
+
function parseYarnClassicDependencies(stdout, logger) {
|
|
117
|
+
logger?.debug(`Parsing yarn classic dependency list...`);
|
|
118
|
+
logStdout(stdout, logger);
|
|
119
|
+
const dependencies = new Map();
|
|
120
|
+
if (!stdout) {
|
|
121
|
+
logger?.debug(' stdout is empty. No dependencies found.');
|
|
122
|
+
return dependencies;
|
|
123
|
+
}
|
|
124
|
+
for (const json of parseJsonLines(stdout, logger)) {
|
|
125
|
+
if (json.type === 'tree' && json.data?.trees) {
|
|
126
|
+
for (const info of json.data.trees) {
|
|
127
|
+
const lastAtIndex = info.name.lastIndexOf('@');
|
|
128
|
+
const name = info.name.slice(0, lastAtIndex);
|
|
129
|
+
const version = info.name.slice(lastAtIndex + 1);
|
|
130
|
+
dependencies.set(name, {
|
|
131
|
+
name,
|
|
132
|
+
version,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
logger?.debug(` Found ${dependencies.size} dependencies.`);
|
|
138
|
+
return dependencies;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Parses the output of `npm view` or a compatible command to get a package manifest.
|
|
142
|
+
* @param stdout The standard output of the command.
|
|
143
|
+
* @param logger An optional logger instance.
|
|
144
|
+
* @returns The package manifest object.
|
|
145
|
+
*/
|
|
146
|
+
function parseNpmLikeManifest(stdout, logger) {
|
|
147
|
+
logger?.debug(`Parsing npm-like manifest...`);
|
|
148
|
+
logStdout(stdout, logger);
|
|
149
|
+
if (!stdout) {
|
|
150
|
+
logger?.debug(' stdout is empty. No manifest found.');
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
const result = JSON.parse(stdout);
|
|
154
|
+
return Array.isArray(result) ? result[result.length - 1] : result;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Parses the output of `npm view` or a compatible command to get package metadata.
|
|
158
|
+
* @param stdout The standard output of the command.
|
|
159
|
+
* @param logger An optional logger instance.
|
|
160
|
+
* @returns The package metadata object.
|
|
161
|
+
*/
|
|
162
|
+
function parseNpmLikeMetadata(stdout, logger) {
|
|
163
|
+
logger?.debug(`Parsing npm-like metadata...`);
|
|
164
|
+
logStdout(stdout, logger);
|
|
165
|
+
if (!stdout) {
|
|
166
|
+
logger?.debug(' stdout is empty. No metadata found.');
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
return JSON.parse(stdout);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Parses the output of `yarn info` (classic) to get a package manifest.
|
|
173
|
+
*
|
|
174
|
+
* When `yarn info --verbose` is used, the output is a JSONL stream. This function
|
|
175
|
+
* iterates through the lines to find the object with `type: 'inspect'` which contains
|
|
176
|
+
* the package manifest.
|
|
177
|
+
*
|
|
178
|
+
* For non-verbose output, it falls back to parsing a single JSON object.
|
|
179
|
+
*
|
|
180
|
+
* @param stdout The standard output of the command.
|
|
181
|
+
* @param logger An optional logger instance.
|
|
182
|
+
* @returns The package manifest object, or `null` if not found.
|
|
183
|
+
*/
|
|
184
|
+
function parseYarnClassicManifest(stdout, logger) {
|
|
185
|
+
logger?.debug(`Parsing yarn classic manifest...`);
|
|
186
|
+
logStdout(stdout, logger);
|
|
187
|
+
if (!stdout) {
|
|
188
|
+
logger?.debug(' stdout is empty. No manifest found.');
|
|
189
|
+
return null;
|
|
190
|
+
}
|
|
191
|
+
// Yarn classic outputs JSONL. We need to find the relevant object.
|
|
192
|
+
let manifest;
|
|
193
|
+
for (const json of parseJsonLines(stdout, logger)) {
|
|
194
|
+
// The manifest data is in a JSON object with type 'inspect'.
|
|
195
|
+
if (json.type === 'inspect' && json.data) {
|
|
196
|
+
manifest = json.data;
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
if (!manifest) {
|
|
201
|
+
logger?.debug(' Failed to find manifest in yarn classic output.');
|
|
202
|
+
return null;
|
|
203
|
+
}
|
|
204
|
+
// Yarn classic removes any field with a falsy value
|
|
205
|
+
// https://github.com/yarnpkg/yarn/blob/7cafa512a777048ce0b666080a24e80aae3d66a9/src/cli/commands/info.js#L26-L29
|
|
206
|
+
// Add a default of 'false' for the `save` field when the `ng-add` object is present but does not have any fields.
|
|
207
|
+
// There is a small chance this causes an incorrect value. However, the use of `ng-add` is rare and, in the cases
|
|
208
|
+
// it is used, save is set to either a `false` literal or a truthy value. Special cases can be added for specific
|
|
209
|
+
// packages if discovered.
|
|
210
|
+
if (manifest['ng-add'] &&
|
|
211
|
+
typeof manifest['ng-add'] === 'object' &&
|
|
212
|
+
Object.keys(manifest['ng-add']).length === 0) {
|
|
213
|
+
manifest['ng-add'].save ??= false;
|
|
214
|
+
}
|
|
215
|
+
return manifest;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Parses the output of `yarn info` (classic) to get package metadata.
|
|
219
|
+
* @param stdout The standard output of the command.
|
|
220
|
+
* @param logger An optional logger instance.
|
|
221
|
+
* @returns The package metadata object.
|
|
222
|
+
*/
|
|
223
|
+
function parseYarnClassicMetadata(stdout, logger) {
|
|
224
|
+
logger?.debug(`Parsing yarn classic metadata...`);
|
|
225
|
+
logStdout(stdout, logger);
|
|
226
|
+
if (!stdout) {
|
|
227
|
+
logger?.debug(' stdout is empty. No metadata found.');
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
// Yarn classic outputs JSONL. We need to find the relevant object.
|
|
231
|
+
let metadata;
|
|
232
|
+
for (const json of parseJsonLines(stdout, logger)) {
|
|
233
|
+
// The metadata data is in a JSON object with type 'inspect'.
|
|
234
|
+
if (json.type === 'inspect' && json.data) {
|
|
235
|
+
metadata = json.data;
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
if (!metadata) {
|
|
240
|
+
logger?.debug(' Failed to find metadata in yarn classic output.');
|
|
241
|
+
return null;
|
|
242
|
+
}
|
|
243
|
+
return metadata;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Parses the `stdout` or `stderr` output of npm, pnpm, modern yarn, or bun to extract structured error information.
|
|
247
|
+
*
|
|
248
|
+
* This parser uses a multi-stage approach. It first attempts to parse the entire `output` as a
|
|
249
|
+
* single JSON object, which is the standard for modern tools like pnpm, yarn, and bun. If JSON
|
|
250
|
+
* parsing fails, it falls back to a line-by-line regex-based approach to handle the plain
|
|
251
|
+
* text output from older versions of npm.
|
|
252
|
+
*
|
|
253
|
+
* Example JSON output (pnpm):
|
|
254
|
+
* ```json
|
|
255
|
+
* {
|
|
256
|
+
* "code": "E404",
|
|
257
|
+
* "summary": "Not Found - GET https://registry.npmjs.org/@angular%2fnon-existent - Not found",
|
|
258
|
+
* "detail": "The requested resource '@angular/non-existent@*' could not be found or you do not have permission to access it."
|
|
259
|
+
* }
|
|
260
|
+
* ```
|
|
261
|
+
*
|
|
262
|
+
* Example text output (npm):
|
|
263
|
+
* ```
|
|
264
|
+
* npm error code E404
|
|
265
|
+
* npm error 404 Not Found - GET https://registry.npmjs.org/@angular%2fnon-existent - Not found
|
|
266
|
+
* ```
|
|
267
|
+
*
|
|
268
|
+
* @param output The standard output or standard error of the command.
|
|
269
|
+
* @param logger An optional logger instance.
|
|
270
|
+
* @returns An `ErrorInfo` object if parsing is successful, otherwise `null`.
|
|
271
|
+
*/
|
|
272
|
+
function parseNpmLikeError(output, logger) {
|
|
273
|
+
logger?.debug(`Parsing npm-like error output...`);
|
|
274
|
+
logStdout(output, logger); // Log output for debugging purposes
|
|
275
|
+
if (!output) {
|
|
276
|
+
logger?.debug(' output is empty. No error found.');
|
|
277
|
+
return null;
|
|
278
|
+
}
|
|
279
|
+
// Attempt to parse as JSON first (common for pnpm, modern yarn, bun)
|
|
280
|
+
try {
|
|
281
|
+
const jsonError = JSON.parse(output);
|
|
282
|
+
if (jsonError &&
|
|
283
|
+
typeof jsonError.code === 'string' &&
|
|
284
|
+
(typeof jsonError.summary === 'string' || typeof jsonError.message === 'string')) {
|
|
285
|
+
const summary = jsonError.summary || jsonError.message;
|
|
286
|
+
logger?.debug(` Successfully parsed JSON error with code '${jsonError.code}'.`);
|
|
287
|
+
return {
|
|
288
|
+
code: jsonError.code,
|
|
289
|
+
summary,
|
|
290
|
+
detail: jsonError.detail,
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
catch (e) {
|
|
295
|
+
logger?.debug(` Failed to parse output as JSON: ${e}. Attempting regex fallback.`);
|
|
296
|
+
// Fallback to regex for plain text errors (common for npm)
|
|
297
|
+
}
|
|
298
|
+
// Regex for npm-like error codes (e.g., `npm ERR! code E404` or `npm error code E404`)
|
|
299
|
+
const errorCodeMatch = output.match(/npm (ERR!|error) code (E\d{3}|[A-Z_]+)/);
|
|
300
|
+
if (errorCodeMatch) {
|
|
301
|
+
const code = errorCodeMatch[2]; // Capture group 2 is the actual error code
|
|
302
|
+
let summary;
|
|
303
|
+
// Find the most descriptive summary line (the line after `npm ERR! code ...` or `npm error code ...`).
|
|
304
|
+
for (const line of output.split('\n')) {
|
|
305
|
+
if (line.startsWith('npm ERR!') && !line.includes(' code ')) {
|
|
306
|
+
summary = line.replace('npm ERR! ', '').trim();
|
|
307
|
+
break;
|
|
308
|
+
}
|
|
309
|
+
else if (line.startsWith('npm error') && !line.includes(' code ')) {
|
|
310
|
+
summary = line.replace('npm error ', '').trim();
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
logger?.debug(` Successfully parsed text error with code '${code}'.`);
|
|
315
|
+
return {
|
|
316
|
+
code,
|
|
317
|
+
summary: summary || `Package manager error: ${code}`,
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
logger?.debug(' Failed to parse npm-like error. No structured error found.');
|
|
321
|
+
return null;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Parses the `stdout` or `stderr` output of yarn classic to extract structured error information.
|
|
325
|
+
*
|
|
326
|
+
* This parser first attempts to find an HTTP status code (e.g., 404, 401) in the verbose output.
|
|
327
|
+
* If found, it returns a standardized error code (`E${statusCode}`).
|
|
328
|
+
* If no HTTP status code is found, it falls back to parsing generic JSON error lines.
|
|
329
|
+
*
|
|
330
|
+
* Example verbose output (with HTTP status code):
|
|
331
|
+
* ```json
|
|
332
|
+
* {"type":"verbose","data":"Request \"https://registry.npmjs.org/@angular%2fnon-existent\" finished with status code 404."}
|
|
333
|
+
* ```
|
|
334
|
+
*
|
|
335
|
+
* Example generic JSON error output:
|
|
336
|
+
* ```json
|
|
337
|
+
* {"type":"error","data":"Received invalid response from npm."}
|
|
338
|
+
* ```
|
|
339
|
+
*
|
|
340
|
+
* @param output The standard output or standard error of the command.
|
|
341
|
+
* @param logger An optional logger instance.
|
|
342
|
+
* @returns An `ErrorInfo` object if parsing is successful, otherwise `null`.
|
|
343
|
+
*/
|
|
344
|
+
function parseYarnClassicError(output, logger) {
|
|
345
|
+
logger?.debug(`Parsing yarn classic error output...`);
|
|
346
|
+
logStdout(output, logger); // Log output for debugging purposes
|
|
347
|
+
if (!output) {
|
|
348
|
+
logger?.debug(' output is empty. No error found.');
|
|
349
|
+
return null;
|
|
350
|
+
}
|
|
351
|
+
// First, check for any HTTP status code in the verbose output.
|
|
352
|
+
const statusCodeMatch = output.match(/finished with status code (\d{3})/);
|
|
353
|
+
if (statusCodeMatch) {
|
|
354
|
+
const statusCode = Number(statusCodeMatch[1]);
|
|
355
|
+
// Status codes in the 200-299 range are successful.
|
|
356
|
+
if (statusCode < 200 || statusCode >= 300) {
|
|
357
|
+
logger?.debug(` Detected HTTP error status code '${statusCode}' in verbose output.`);
|
|
358
|
+
return {
|
|
359
|
+
code: `E${statusCode}`,
|
|
360
|
+
summary: `Request failed with status code ${statusCode}.`,
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
// Fallback to the JSON error type if no HTTP status code is present.
|
|
365
|
+
for (const json of parseJsonLines(output, logger)) {
|
|
366
|
+
if (json.type === 'error' && typeof json.data === 'string') {
|
|
367
|
+
const summary = json.data;
|
|
368
|
+
logger?.debug(` Successfully parsed generic yarn classic error.`);
|
|
369
|
+
return {
|
|
370
|
+
code: 'UNKNOWN_ERROR',
|
|
371
|
+
summary,
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
logger?.debug(' Failed to parse yarn classic error. No structured error found.');
|
|
376
|
+
return null;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Parses the output of `bun pm ls`.
|
|
380
|
+
*
|
|
381
|
+
* Bun does not support JSON output for `pm ls`. The output is a tree structure:
|
|
382
|
+
* ```
|
|
383
|
+
* /path/to/project node_modules (1084)
|
|
384
|
+
* ├── @angular/core@20.3.15
|
|
385
|
+
* ├── rxjs @7.8.2
|
|
386
|
+
* └── zone.js @0.15.1
|
|
387
|
+
* ```
|
|
388
|
+
*
|
|
389
|
+
* @param stdout The standard output of the command.
|
|
390
|
+
* @param logger An optional logger instance.
|
|
391
|
+
* @returns A map of package names to their installed package details.
|
|
392
|
+
*/
|
|
393
|
+
function parseBunDependencies(stdout, logger) {
|
|
394
|
+
logger?.debug('Parsing Bun dependency list...');
|
|
395
|
+
logStdout(stdout, logger);
|
|
396
|
+
const dependencies = new Map();
|
|
397
|
+
if (!stdout) {
|
|
398
|
+
return dependencies;
|
|
399
|
+
}
|
|
400
|
+
const lines = stdout.split('\n');
|
|
401
|
+
// Skip the first line (project info)
|
|
402
|
+
for (let i = 1; i < lines.length; i++) {
|
|
403
|
+
const line = lines[i].trim();
|
|
404
|
+
if (!line) {
|
|
405
|
+
continue;
|
|
406
|
+
}
|
|
407
|
+
// Remove tree structure characters
|
|
408
|
+
const cleanLine = line.replace(/^[└├]──\s*/, '');
|
|
409
|
+
// Parse name and version
|
|
410
|
+
// Scoped: @angular/core@20.3.15
|
|
411
|
+
// Unscoped: rxjs @7.8.2
|
|
412
|
+
const match = cleanLine.match(/^(.+?)\s?@([^@\s]+)$/);
|
|
413
|
+
if (match) {
|
|
414
|
+
const name = match[1];
|
|
415
|
+
const version = match[2];
|
|
416
|
+
dependencies.set(name, { name, version });
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
logger?.debug(` Found ${dependencies.size} dependencies.`);
|
|
420
|
+
return dependencies;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Parses the output of `yarn info --name-only --json`.
|
|
424
|
+
*
|
|
425
|
+
* The expected output is a JSON stream (JSONL) of strings.
|
|
426
|
+
* Each string represents a package locator.
|
|
427
|
+
*
|
|
428
|
+
* ```
|
|
429
|
+
* "karma@npm:6.4.4"
|
|
430
|
+
* "@angular/core@npm:20.3.15"
|
|
431
|
+
* ```
|
|
432
|
+
*
|
|
433
|
+
* @param stdout The standard output of the command.
|
|
434
|
+
* @param logger An optional logger instance.
|
|
435
|
+
* @returns A map of package names to their installed package details.
|
|
436
|
+
*/
|
|
437
|
+
function parseYarnModernDependencies(stdout, logger) {
|
|
438
|
+
logger?.debug('Parsing Yarn Berry dependency list...');
|
|
439
|
+
logStdout(stdout, logger);
|
|
440
|
+
const dependencies = new Map();
|
|
441
|
+
if (!stdout) {
|
|
442
|
+
return dependencies;
|
|
443
|
+
}
|
|
444
|
+
for (const json of parseJsonLines(stdout, logger)) {
|
|
445
|
+
if (typeof json === 'string') {
|
|
446
|
+
const match = json.match(/^(@?[^@]+)@(.+)$/);
|
|
447
|
+
if (match) {
|
|
448
|
+
const name = match[1];
|
|
449
|
+
let version = match[2];
|
|
450
|
+
// Handle "npm:" prefix
|
|
451
|
+
if (version.startsWith('npm:')) {
|
|
452
|
+
version = version.slice(4);
|
|
453
|
+
}
|
|
454
|
+
// Handle complex locators with embedded version metadata (e.g., "patch:...", "virtual:...")
|
|
455
|
+
// Yarn Berry often appends metadata like "::version=x.y.z"
|
|
456
|
+
const versionParamMatch = version.match(/::version=([^&]+)/);
|
|
457
|
+
if (versionParamMatch) {
|
|
458
|
+
version = versionParamMatch[1];
|
|
459
|
+
}
|
|
460
|
+
dependencies.set(name, { name, version });
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
logger?.debug(` Found ${dependencies.size} dependencies.`);
|
|
465
|
+
return dependencies;
|
|
466
|
+
}
|
|
467
|
+
//# sourceMappingURL=parsers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["parsers.ts"],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KAAK,CAAC,CAAC,CAAC,CAAC;gBAEvB,uBAAuB;gBACvB,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;oBAC/B,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBAC7B,CAAC;gBAED,4FAA4F;gBAC5F,2DAA2D;gBAC3D,MAAM,iBAAiB,GAAG,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;gBAC7D,IAAI,iBAAiB,EAAE,CAAC;oBACtB,OAAO,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;gBACjC,CAAC;gBAED,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,EAAE,KAAK,CAAC,WAAW,YAAY,CAAC,IAAI,gBAAgB,CAAC,CAAC;IAE5D,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
export { color as colors, figures } from 'listr2';
|
|
9
|
+
export declare function supportColor(stream?: NodeJS.WritableStream): boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.figures = exports.colors = void 0;
|
|
11
|
+
exports.supportColor = supportColor;
|
|
12
|
+
const node_tty_1 = require("node:tty");
|
|
13
|
+
var listr2_1 = require("listr2");
|
|
14
|
+
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return listr2_1.color; } });
|
|
15
|
+
Object.defineProperty(exports, "figures", { enumerable: true, get: function () { return listr2_1.figures; } });
|
|
16
|
+
function supportColor(stream = process.stdout) {
|
|
17
|
+
if (stream instanceof node_tty_1.WriteStream) {
|
|
18
|
+
return stream.hasColors();
|
|
19
|
+
}
|
|
20
|
+
try {
|
|
21
|
+
// The hasColors function does not rely on any instance state and should ideally be static
|
|
22
|
+
return node_tty_1.WriteStream.prototype.hasColors();
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return process.env['FORCE_COLOR'] !== undefined && process.env['FORCE_COLOR'] !== '0';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.js","sourceRoot":"","sources":["color.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAMH,oCAWC;AAfD,uCAAuC;AAEvC,iCAAkD;AAAzC,gGAAA,KAAK,OAAU;AAAE,iGAAA,OAAO,OAAA;AAEjC,SAAgB,YAAY,CAAC,SAAgC,OAAO,CAAC,MAAM;IACzE,IAAI,MAAM,YAAY,sBAAW,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC,SAAS,EAAE,CAAC;IAC5B,CAAC;IAED,IAAI,CAAC;QACH,0FAA0F;QAC1F,OAAO,sBAAW,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;IAC3C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,GAAG,CAAC;IACxF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
|
+
*/
|
|
8
|
+
import { logging } from '@angular-devkit/core';
|
|
9
|
+
/**
|
|
10
|
+
* Checks if it is appropriate to prompt the user to setup autocompletion. If not, does nothing. If
|
|
11
|
+
* so prompts and sets up autocompletion for the user. Returns an exit code if the program should
|
|
12
|
+
* terminate, otherwise returns `undefined`.
|
|
13
|
+
* @returns an exit code if the program should terminate, undefined otherwise.
|
|
14
|
+
*/
|
|
15
|
+
export declare function considerSettingUpAutocompletion(command: string, logger: logging.Logger): Promise<number | undefined>;
|
|
16
|
+
/**
|
|
17
|
+
* Sets up autocompletion for the user's terminal. This attempts to find the configuration file for
|
|
18
|
+
* the current shell (`.bashrc`, `.zshrc`, etc.) and append a command which enables autocompletion
|
|
19
|
+
* for the Angular CLI. Supports only Bash and Zsh. Returns whether or not it was successful.
|
|
20
|
+
* @return The full path of the configuration file modified.
|
|
21
|
+
*/
|
|
22
|
+
export declare function initializeAutocomplete(): Promise<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Returns whether the user has a global CLI install.
|
|
25
|
+
* Execution from `npx` is *not* considered a global CLI install.
|
|
26
|
+
*
|
|
27
|
+
* This does *not* mean the current execution is from a global CLI install, only that a global
|
|
28
|
+
* install exists on the system.
|
|
29
|
+
*/
|
|
30
|
+
export declare function hasGlobalCliInstall(): Promise<boolean>;
|