@invarn/cibuild 2.9.5 → 2.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-35SI42CD.mjs +1 -0
- package/dist/chunk-IC45KVLJ.mjs +1 -0
- package/dist/chunk-XDY4V23V.mjs +1 -0
- package/dist/cli.cjs +14 -14
- package/dist/commands.mjs +1 -0
- package/dist/lib.mjs +3934 -0
- package/package.json +6 -10
- package/dist/src/cli.d.ts +0 -3
- package/dist/src/cli.d.ts.map +0 -1
- package/dist/src/cli.js +0 -399
- package/dist/src/commands/a-credential-target-follows-the-flavor-source-set.test.d.ts +0 -38
- package/dist/src/commands/a-credential-target-follows-the-flavor-source-set.test.d.ts.map +0 -1
- package/dist/src/commands/a-credential-target-follows-the-flavor-source-set.test.js +0 -222
- package/dist/src/commands/a-credential-two-workflows-cannot-share-is-declared-per-workflow.test.d.ts +0 -41
- package/dist/src/commands/a-credential-two-workflows-cannot-share-is-declared-per-workflow.test.d.ts.map +0 -1
- package/dist/src/commands/a-credential-two-workflows-cannot-share-is-declared-per-workflow.test.js +0 -324
- package/dist/src/commands/a-properties-stand-in-declares-the-keys-the-build-reads.test.d.ts +0 -2
- package/dist/src/commands/a-properties-stand-in-declares-the-keys-the-build-reads.test.d.ts.map +0 -1
- package/dist/src/commands/a-properties-stand-in-declares-the-keys-the-build-reads.test.js +0 -382
- package/dist/src/commands/an-already-stored-value-does-not-answer-the-target-question.test.d.ts +0 -29
- package/dist/src/commands/an-already-stored-value-does-not-answer-the-target-question.test.d.ts.map +0 -1
- package/dist/src/commands/an-already-stored-value-does-not-answer-the-target-question.test.js +0 -160
- package/dist/src/commands/android-gms-guard.test.d.ts +0 -9
- package/dist/src/commands/android-gms-guard.test.d.ts.map +0 -1
- package/dist/src/commands/android-gms-guard.test.js +0 -78
- package/dist/src/commands/android-java-version.test.d.ts +0 -12
- package/dist/src/commands/android-java-version.test.d.ts.map +0 -1
- package/dist/src/commands/android-java-version.test.js +0 -209
- package/dist/src/commands/android-scanner-java.test.d.ts +0 -2
- package/dist/src/commands/android-scanner-java.test.d.ts.map +0 -1
- package/dist/src/commands/android-scanner-java.test.js +0 -130
- package/dist/src/commands/android-scanner.d.ts +0 -250
- package/dist/src/commands/android-scanner.d.ts.map +0 -1
- package/dist/src/commands/android-scanner.js +0 -1639
- package/dist/src/commands/build.d.ts +0 -215
- package/dist/src/commands/build.d.ts.map +0 -1
- package/dist/src/commands/build.js +0 -1433
- package/dist/src/commands/build.test.d.ts +0 -13
- package/dist/src/commands/build.test.d.ts.map +0 -1
- package/dist/src/commands/build.test.js +0 -121
- package/dist/src/commands/detect-platform.d.ts +0 -13
- package/dist/src/commands/detect-platform.d.ts.map +0 -1
- package/dist/src/commands/detect-platform.js +0 -51
- package/dist/src/commands/detect-project.d.ts +0 -7
- package/dist/src/commands/detect-project.d.ts.map +0 -1
- package/dist/src/commands/detect-project.js +0 -12
- package/dist/src/commands/each-flavor-is-asked-for-its-own-properties-file.test.d.ts +0 -26
- package/dist/src/commands/each-flavor-is-asked-for-its-own-properties-file.test.d.ts.map +0 -1
- package/dist/src/commands/each-flavor-is-asked-for-its-own-properties-file.test.js +0 -196
- package/dist/src/commands/edit.d.ts +0 -12
- package/dist/src/commands/edit.d.ts.map +0 -1
- package/dist/src/commands/edit.js +0 -652
- package/dist/src/commands/edit.test.d.ts +0 -6
- package/dist/src/commands/edit.test.d.ts.map +0 -1
- package/dist/src/commands/edit.test.js +0 -45
- package/dist/src/commands/fidelity-trim.d.ts +0 -13
- package/dist/src/commands/fidelity-trim.d.ts.map +0 -1
- package/dist/src/commands/fidelity-trim.js +0 -21
- package/dist/src/commands/fidelity-trim.test.d.ts +0 -8
- package/dist/src/commands/fidelity-trim.test.d.ts.map +0 -1
- package/dist/src/commands/fidelity-trim.test.js +0 -79
- package/dist/src/commands/file-secret-collector.d.ts +0 -50
- package/dist/src/commands/file-secret-collector.d.ts.map +0 -1
- package/dist/src/commands/file-secret-collector.js +0 -217
- package/dist/src/commands/flavors-a-convention-plugin-creates-are-still-found.test.d.ts +0 -38
- package/dist/src/commands/flavors-a-convention-plugin-creates-are-still-found.test.d.ts.map +0 -1
- package/dist/src/commands/flavors-a-convention-plugin-creates-are-still-found.test.js +0 -300
- package/dist/src/commands/github-workflow.d.ts +0 -5
- package/dist/src/commands/github-workflow.d.ts.map +0 -1
- package/dist/src/commands/github-workflow.js +0 -45
- package/dist/src/commands/index.d.ts +0 -33
- package/dist/src/commands/index.d.ts.map +0 -1
- package/dist/src/commands/index.js +0 -33
- package/dist/src/commands/init.d.ts +0 -20
- package/dist/src/commands/init.d.ts.map +0 -1
- package/dist/src/commands/init.js +0 -264
- package/dist/src/commands/ios-scanner.d.ts +0 -104
- package/dist/src/commands/ios-scanner.d.ts.map +0 -1
- package/dist/src/commands/ios-scanner.js +0 -492
- package/dist/src/commands/ios-scheme-ranking.test.d.ts +0 -2
- package/dist/src/commands/ios-scheme-ranking.test.d.ts.map +0 -1
- package/dist/src/commands/ios-scheme-ranking.test.js +0 -264
- package/dist/src/commands/local-properties-reaches-every-workflow.test.d.ts +0 -30
- package/dist/src/commands/local-properties-reaches-every-workflow.test.d.ts.map +0 -1
- package/dist/src/commands/local-properties-reaches-every-workflow.test.js +0 -146
- package/dist/src/commands/reset.d.ts +0 -7
- package/dist/src/commands/reset.d.ts.map +0 -1
- package/dist/src/commands/reset.js +0 -81
- package/dist/src/commands/run.d.ts +0 -22
- package/dist/src/commands/run.d.ts.map +0 -1
- package/dist/src/commands/run.js +0 -141
- package/dist/src/commands/secrets-sync-workflow.d.ts +0 -15
- package/dist/src/commands/secrets-sync-workflow.d.ts.map +0 -1
- package/dist/src/commands/secrets-sync-workflow.js +0 -255
- package/dist/src/commands/secrets-upload.d.ts +0 -21
- package/dist/src/commands/secrets-upload.d.ts.map +0 -1
- package/dist/src/commands/secrets-upload.js +0 -177
- package/dist/src/commands/secrets-upload.test.d.ts +0 -5
- package/dist/src/commands/secrets-upload.test.d.ts.map +0 -1
- package/dist/src/commands/secrets-upload.test.js +0 -60
- package/dist/src/commands/validate.d.ts +0 -10
- package/dist/src/commands/validate.d.ts.map +0 -1
- package/dist/src/commands/validate.js +0 -46
- package/dist/src/config.d.ts +0 -3
- package/dist/src/config.d.ts.map +0 -1
- package/dist/src/config.js +0 -47
- package/dist/src/envman/cli.d.ts +0 -21
- package/dist/src/envman/cli.d.ts.map +0 -1
- package/dist/src/envman/cli.js +0 -240
- package/dist/src/envman/envman.d.ts +0 -83
- package/dist/src/envman/envman.d.ts.map +0 -1
- package/dist/src/envman/envman.js +0 -361
- package/dist/src/envman/envman.test.d.ts +0 -5
- package/dist/src/envman/envman.test.d.ts.map +0 -1
- package/dist/src/envman/envman.test.js +0 -236
- package/dist/src/envman/envstore-round-trip.test.d.ts +0 -27
- package/dist/src/envman/envstore-round-trip.test.d.ts.map +0 -1
- package/dist/src/envman/envstore-round-trip.test.js +0 -130
- package/dist/src/envman/index.d.ts +0 -23
- package/dist/src/envman/index.d.ts.map +0 -1
- package/dist/src/envman/index.js +0 -23
- package/dist/src/envman/shim.d.ts +0 -16
- package/dist/src/envman/shim.d.ts.map +0 -1
- package/dist/src/envman/shim.js +0 -66
- package/dist/src/envman/types.d.ts +0 -55
- package/dist/src/envman/types.d.ts.map +0 -1
- package/dist/src/envman/types.js +0 -12
- package/dist/src/lib.d.ts +0 -33
- package/dist/src/lib.d.ts.map +0 -1
- package/dist/src/lib.js +0 -37
- package/dist/src/pipeline.d.ts +0 -3
- package/dist/src/pipeline.d.ts.map +0 -1
- package/dist/src/pipeline.js +0 -57
- package/dist/src/runner-node-step.test.d.ts +0 -12
- package/dist/src/runner-node-step.test.d.ts.map +0 -1
- package/dist/src/runner-node-step.test.js +0 -61
- package/dist/src/runner.d.ts +0 -31
- package/dist/src/runner.d.ts.map +0 -1
- package/dist/src/runner.js +0 -240
- package/dist/src/shared/detect-project.d.ts +0 -57
- package/dist/src/shared/detect-project.d.ts.map +0 -1
- package/dist/src/shared/detect-project.js +0 -219
- package/dist/src/shared/detect-project.test.d.ts +0 -2
- package/dist/src/shared/detect-project.test.d.ts.map +0 -1
- package/dist/src/shared/detect-project.test.js +0 -161
- package/dist/src/shared/git.d.ts +0 -25
- package/dist/src/shared/git.d.ts.map +0 -1
- package/dist/src/shared/git.js +0 -53
- package/dist/src/shared/git.test.d.ts +0 -9
- package/dist/src/shared/git.test.d.ts.map +0 -1
- package/dist/src/shared/git.test.js +0 -66
- package/dist/src/shared/gitignore.d.ts +0 -6
- package/dist/src/shared/gitignore.d.ts.map +0 -1
- package/dist/src/shared/gitignore.js +0 -26
- package/dist/src/shared/gradle-settings.d.ts +0 -49
- package/dist/src/shared/gradle-settings.d.ts.map +0 -1
- package/dist/src/shared/gradle-settings.js +0 -138
- package/dist/src/shared/gradle-settings.test.d.ts +0 -2
- package/dist/src/shared/gradle-settings.test.d.ts.map +0 -1
- package/dist/src/shared/gradle-settings.test.js +0 -65
- package/dist/src/shared/prompts.d.ts +0 -30
- package/dist/src/shared/prompts.d.ts.map +0 -1
- package/dist/src/shared/prompts.js +0 -121
- package/dist/src/shared/xcode-container.test.d.ts +0 -2
- package/dist/src/shared/xcode-container.test.d.ts.map +0 -1
- package/dist/src/shared/xcode-container.test.js +0 -123
- package/dist/src/step-marker.d.ts +0 -12
- package/dist/src/step-marker.d.ts.map +0 -1
- package/dist/src/step-marker.js +0 -29
- package/dist/src/step-marker.test.d.ts +0 -11
- package/dist/src/step-marker.test.d.ts.map +0 -1
- package/dist/src/step-marker.test.js +0 -45
- package/dist/src/types.d.ts +0 -58
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js +0 -2
- package/dist/src/yaml/a-cache-path-must-not-swallow-a-credential.test.d.ts +0 -28
- package/dist/src/yaml/a-cache-path-must-not-swallow-a-credential.test.d.ts.map +0 -1
- package/dist/src/yaml/a-cache-path-must-not-swallow-a-credential.test.js +0 -223
- package/dist/src/yaml/a-declared-secret-reaches-the-file-step.test.d.ts +0 -20
- package/dist/src/yaml/a-declared-secret-reaches-the-file-step.test.d.ts.map +0 -1
- package/dist/src/yaml/a-declared-secret-reaches-the-file-step.test.js +0 -201
- package/dist/src/yaml/a-declared-slot-may-name-the-workflow-it-belongs-to.test.d.ts +0 -37
- package/dist/src/yaml/a-declared-slot-may-name-the-workflow-it-belongs-to.test.d.ts.map +0 -1
- package/dist/src/yaml/a-declared-slot-may-name-the-workflow-it-belongs-to.test.js +0 -255
- package/dist/src/yaml/a-missing-credential-is-loud.test.d.ts +0 -32
- package/dist/src/yaml/a-missing-credential-is-loud.test.d.ts.map +0 -1
- package/dist/src/yaml/a-missing-credential-is-loud.test.js +0 -301
- package/dist/src/yaml/a-runtime-requirement-names-a-real-provider.test.d.ts +0 -18
- package/dist/src/yaml/a-runtime-requirement-names-a-real-provider.test.d.ts.map +0 -1
- package/dist/src/yaml/a-runtime-requirement-names-a-real-provider.test.js +0 -66
- package/dist/src/yaml/a-scoped-slot-must-name-a-workflow-the-pipeline-has.test.d.ts +0 -34
- package/dist/src/yaml/a-scoped-slot-must-name-a-workflow-the-pipeline-has.test.d.ts.map +0 -1
- package/dist/src/yaml/a-scoped-slot-must-name-a-workflow-the-pipeline-has.test.js +0 -218
- package/dist/src/yaml/a-value-this-instance-stored-is-a-value-it-has.test.d.ts +0 -27
- package/dist/src/yaml/a-value-this-instance-stored-is-a-value-it-has.test.d.ts.map +0 -1
- package/dist/src/yaml/a-value-this-instance-stored-is-a-value-it-has.test.js +0 -126
- package/dist/src/yaml/bitrise-compat.d.ts +0 -65
- package/dist/src/yaml/bitrise-compat.d.ts.map +0 -1
- package/dist/src/yaml/bitrise-compat.js +0 -206
- package/dist/src/yaml/bitrise-compat.test.d.ts +0 -5
- package/dist/src/yaml/bitrise-compat.test.d.ts.map +0 -1
- package/dist/src/yaml/bitrise-compat.test.js +0 -347
- package/dist/src/yaml/cache-key-missing-file.test.d.ts +0 -12
- package/dist/src/yaml/cache-key-missing-file.test.d.ts.map +0 -1
- package/dist/src/yaml/cache-key-missing-file.test.js +0 -116
- package/dist/src/yaml/converter.d.ts +0 -103
- package/dist/src/yaml/converter.d.ts.map +0 -1
- package/dist/src/yaml/converter.js +0 -420
- package/dist/src/yaml/converter.test.d.ts +0 -5
- package/dist/src/yaml/converter.test.d.ts.map +0 -1
- package/dist/src/yaml/converter.test.js +0 -548
- package/dist/src/yaml/e2e.test.d.ts +0 -6
- package/dist/src/yaml/e2e.test.d.ts.map +0 -1
- package/dist/src/yaml/e2e.test.js +0 -446
- package/dist/src/yaml/env-resolver.d.ts +0 -218
- package/dist/src/yaml/env-resolver.d.ts.map +0 -1
- package/dist/src/yaml/env-resolver.js +0 -591
- package/dist/src/yaml/env-resolver.test.d.ts +0 -5
- package/dist/src/yaml/env-resolver.test.d.ts.map +0 -1
- package/dist/src/yaml/env-resolver.test.js +0 -502
- package/dist/src/yaml/every-build-log-witnesses-the-commit-on-disk.test.d.ts +0 -16
- package/dist/src/yaml/every-build-log-witnesses-the-commit-on-disk.test.d.ts.map +0 -1
- package/dist/src/yaml/every-build-log-witnesses-the-commit-on-disk.test.js +0 -126
- package/dist/src/yaml/fidelity-input-digest.d.ts +0 -37
- package/dist/src/yaml/fidelity-input-digest.d.ts.map +0 -1
- package/dist/src/yaml/fidelity-input-digest.js +0 -208
- package/dist/src/yaml/fidelity-input-digest.test.d.ts +0 -2
- package/dist/src/yaml/fidelity-input-digest.test.d.ts.map +0 -1
- package/dist/src/yaml/fidelity-input-digest.test.js +0 -167
- package/dist/src/yaml/fidelity-manifest.d.ts +0 -126
- package/dist/src/yaml/fidelity-manifest.d.ts.map +0 -1
- package/dist/src/yaml/fidelity-manifest.js +0 -134
- package/dist/src/yaml/fidelity-manifest.test.d.ts +0 -12
- package/dist/src/yaml/fidelity-manifest.test.d.ts.map +0 -1
- package/dist/src/yaml/fidelity-manifest.test.js +0 -251
- package/dist/src/yaml/interactive-prompts.d.ts +0 -71
- package/dist/src/yaml/interactive-prompts.d.ts.map +0 -1
- package/dist/src/yaml/interactive-prompts.js +0 -260
- package/dist/src/yaml/meta-helpers.d.ts +0 -28
- package/dist/src/yaml/meta-helpers.d.ts.map +0 -1
- package/dist/src/yaml/meta-helpers.js +0 -46
- package/dist/src/yaml/missing-env-handler.d.ts +0 -45
- package/dist/src/yaml/missing-env-handler.d.ts.map +0 -1
- package/dist/src/yaml/missing-env-handler.js +0 -64
- package/dist/src/yaml/parser.d.ts +0 -33
- package/dist/src/yaml/parser.d.ts.map +0 -1
- package/dist/src/yaml/parser.js +0 -148
- package/dist/src/yaml/parser.test.d.ts +0 -5
- package/dist/src/yaml/parser.test.d.ts.map +0 -1
- package/dist/src/yaml/parser.test.js +0 -83
- package/dist/src/yaml/pipeline-with-secrets.d.ts +0 -25
- package/dist/src/yaml/pipeline-with-secrets.d.ts.map +0 -1
- package/dist/src/yaml/pipeline-with-secrets.js +0 -76
- package/dist/src/yaml/platform-detector.d.ts +0 -83
- package/dist/src/yaml/platform-detector.d.ts.map +0 -1
- package/dist/src/yaml/platform-detector.js +0 -189
- package/dist/src/yaml/platform-detector.test.d.ts +0 -5
- package/dist/src/yaml/platform-detector.test.d.ts.map +0 -1
- package/dist/src/yaml/platform-detector.test.js +0 -525
- package/dist/src/yaml/preflight-validation.d.ts +0 -29
- package/dist/src/yaml/preflight-validation.d.ts.map +0 -1
- package/dist/src/yaml/preflight-validation.js +0 -21
- package/dist/src/yaml/secrets-manager.d.ts +0 -87
- package/dist/src/yaml/secrets-manager.d.ts.map +0 -1
- package/dist/src/yaml/secrets-manager.js +0 -230
- package/dist/src/yaml/shell-assignments.d.ts +0 -40
- package/dist/src/yaml/shell-assignments.d.ts.map +0 -1
- package/dist/src/yaml/shell-assignments.js +0 -77
- package/dist/src/yaml/step-validator-check-failure.test.d.ts +0 -24
- package/dist/src/yaml/step-validator-check-failure.test.d.ts.map +0 -1
- package/dist/src/yaml/step-validator-check-failure.test.js +0 -130
- package/dist/src/yaml/step-validator-self-assigned.test.d.ts +0 -23
- package/dist/src/yaml/step-validator-self-assigned.test.d.ts.map +0 -1
- package/dist/src/yaml/step-validator-self-assigned.test.js +0 -191
- package/dist/src/yaml/step-validator.d.ts +0 -67
- package/dist/src/yaml/step-validator.d.ts.map +0 -1
- package/dist/src/yaml/step-validator.js +0 -466
- package/dist/src/yaml/step-validator.test.d.ts +0 -18
- package/dist/src/yaml/step-validator.test.d.ts.map +0 -1
- package/dist/src/yaml/step-validator.test.js +0 -140
- package/dist/src/yaml/steps/android-sign.d.ts +0 -35
- package/dist/src/yaml/steps/android-sign.d.ts.map +0 -1
- package/dist/src/yaml/steps/android-sign.js +0 -147
- package/dist/src/yaml/steps/android-variant-resolution.test.d.ts +0 -2
- package/dist/src/yaml/steps/android-variant-resolution.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/android-variant-resolution.test.js +0 -260
- package/dist/src/yaml/steps/android-version.d.ts +0 -26
- package/dist/src/yaml/steps/android-version.d.ts.map +0 -1
- package/dist/src/yaml/steps/android-version.js +0 -128
- package/dist/src/yaml/steps/android-version.test.d.ts +0 -5
- package/dist/src/yaml/steps/android-version.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/android-version.test.js +0 -196
- package/dist/src/yaml/steps/android.d.ts +0 -156
- package/dist/src/yaml/steps/android.d.ts.map +0 -1
- package/dist/src/yaml/steps/android.js +0 -1092
- package/dist/src/yaml/steps/app-store-deploy.d.ts +0 -48
- package/dist/src/yaml/steps/app-store-deploy.d.ts.map +0 -1
- package/dist/src/yaml/steps/app-store-deploy.js +0 -167
- package/dist/src/yaml/steps/base.d.ts +0 -263
- package/dist/src/yaml/steps/base.d.ts.map +0 -1
- package/dist/src/yaml/steps/base.js +0 -380
- package/dist/src/yaml/steps/bitrise-android-tools.d.ts +0 -26
- package/dist/src/yaml/steps/bitrise-android-tools.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-android-tools.js +0 -200
- package/dist/src/yaml/steps/bitrise-android-tools.test.d.ts +0 -5
- package/dist/src/yaml/steps/bitrise-android-tools.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-android-tools.test.js +0 -280
- package/dist/src/yaml/steps/bitrise-apk-info.d.ts +0 -22
- package/dist/src/yaml/steps/bitrise-apk-info.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-apk-info.js +0 -144
- package/dist/src/yaml/steps/bitrise-apk-info.test.d.ts +0 -5
- package/dist/src/yaml/steps/bitrise-apk-info.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-apk-info.test.js +0 -331
- package/dist/src/yaml/steps/bitrise-slack.d.ts +0 -49
- package/dist/src/yaml/steps/bitrise-slack.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-slack.js +0 -280
- package/dist/src/yaml/steps/bitrise-slack.test.d.ts +0 -5
- package/dist/src/yaml/steps/bitrise-slack.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-slack.test.js +0 -484
- package/dist/src/yaml/steps/bitrise-ssh.d.ts +0 -27
- package/dist/src/yaml/steps/bitrise-ssh.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-ssh.js +0 -134
- package/dist/src/yaml/steps/bitrise-ssh.test.d.ts +0 -5
- package/dist/src/yaml/steps/bitrise-ssh.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-ssh.test.js +0 -205
- package/dist/src/yaml/steps/cache-pull-daemon.test.d.ts +0 -27
- package/dist/src/yaml/steps/cache-pull-daemon.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cache-pull-daemon.test.js +0 -212
- package/dist/src/yaml/steps/cache-pull-restore-roots.test.d.ts +0 -42
- package/dist/src/yaml/steps/cache-pull-restore-roots.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cache-pull-restore-roots.test.js +0 -209
- package/dist/src/yaml/steps/cache-push-daemon.test.d.ts +0 -27
- package/dist/src/yaml/steps/cache-push-daemon.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cache-push-daemon.test.js +0 -171
- package/dist/src/yaml/steps/cache.d.ts +0 -59
- package/dist/src/yaml/steps/cache.d.ts.map +0 -1
- package/dist/src/yaml/steps/cache.js +0 -1027
- package/dist/src/yaml/steps/capture-injection.d.ts +0 -30
- package/dist/src/yaml/steps/capture-injection.d.ts.map +0 -1
- package/dist/src/yaml/steps/capture-injection.js +0 -88
- package/dist/src/yaml/steps/capture-injection.test.d.ts +0 -2
- package/dist/src/yaml/steps/capture-injection.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/capture-injection.test.js +0 -163
- package/dist/src/yaml/steps/cocoapods-deployment-floor.d.ts +0 -42
- package/dist/src/yaml/steps/cocoapods-deployment-floor.d.ts.map +0 -1
- package/dist/src/yaml/steps/cocoapods-deployment-floor.js +0 -140
- package/dist/src/yaml/steps/cocoapods-deployment-floor.test.d.ts +0 -11
- package/dist/src/yaml/steps/cocoapods-deployment-floor.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cocoapods-deployment-floor.test.js +0 -176
- package/dist/src/yaml/steps/cocoapods-install-emits-valid-bash.test.d.ts +0 -22
- package/dist/src/yaml/steps/cocoapods-install-emits-valid-bash.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cocoapods-install-emits-valid-bash.test.js +0 -97
- package/dist/src/yaml/steps/cocoapods-locked-bundler.test.d.ts +0 -17
- package/dist/src/yaml/steps/cocoapods-locked-bundler.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cocoapods-locked-bundler.test.js +0 -282
- package/dist/src/yaml/steps/cocoapods-skip-if-absent.test.d.ts +0 -17
- package/dist/src/yaml/steps/cocoapods-skip-if-absent.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cocoapods-skip-if-absent.test.js +0 -132
- package/dist/src/yaml/steps/envstore-loader.test.d.ts +0 -15
- package/dist/src/yaml/steps/envstore-loader.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/envstore-loader.test.js +0 -143
- package/dist/src/yaml/steps/fastlane.d.ts +0 -27
- package/dist/src/yaml/steps/fastlane.d.ts.map +0 -1
- package/dist/src/yaml/steps/fastlane.js +0 -79
- package/dist/src/yaml/steps/fidelity-aspect-guard.d.ts +0 -53
- package/dist/src/yaml/steps/fidelity-aspect-guard.d.ts.map +0 -1
- package/dist/src/yaml/steps/fidelity-aspect-guard.js +0 -72
- package/dist/src/yaml/steps/fidelity-aspect-guard.test.d.ts +0 -11
- package/dist/src/yaml/steps/fidelity-aspect-guard.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/fidelity-aspect-guard.test.js +0 -50
- package/dist/src/yaml/steps/fidelity-reference-provenance.d.ts +0 -87
- package/dist/src/yaml/steps/fidelity-reference-provenance.d.ts.map +0 -1
- package/dist/src/yaml/steps/fidelity-reference-provenance.js +0 -111
- package/dist/src/yaml/steps/fidelity-reference-provenance.test.d.ts +0 -22
- package/dist/src/yaml/steps/fidelity-reference-provenance.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/fidelity-reference-provenance.test.js +0 -118
- package/dist/src/yaml/steps/file.d.ts +0 -52
- package/dist/src/yaml/steps/file.d.ts.map +0 -1
- package/dist/src/yaml/steps/file.js +0 -108
- package/dist/src/yaml/steps/flutter.d.ts +0 -63
- package/dist/src/yaml/steps/flutter.d.ts.map +0 -1
- package/dist/src/yaml/steps/flutter.js +0 -215
- package/dist/src/yaml/steps/git-clone-names-the-inputs-it-ignores.test.d.ts +0 -16
- package/dist/src/yaml/steps/git-clone-names-the-inputs-it-ignores.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/git-clone-names-the-inputs-it-ignores.test.js +0 -127
- package/dist/src/yaml/steps/git-clone.d.ts +0 -32
- package/dist/src/yaml/steps/git-clone.d.ts.map +0 -1
- package/dist/src/yaml/steps/git-clone.js +0 -171
- package/dist/src/yaml/steps/git-fetch-retry-exec.test.d.ts +0 -10
- package/dist/src/yaml/steps/git-fetch-retry-exec.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/git-fetch-retry-exec.test.js +0 -162
- package/dist/src/yaml/steps/git-fetch-retry.d.ts +0 -62
- package/dist/src/yaml/steps/git-fetch-retry.d.ts.map +0 -1
- package/dist/src/yaml/steps/git-fetch-retry.js +0 -155
- package/dist/src/yaml/steps/git-fetch-retry.test.d.ts +0 -5
- package/dist/src/yaml/steps/git-fetch-retry.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/git-fetch-retry.test.js +0 -86
- package/dist/src/yaml/steps/google-play-deploy.d.ts +0 -37
- package/dist/src/yaml/steps/google-play-deploy.d.ts.map +0 -1
- package/dist/src/yaml/steps/google-play-deploy.js +0 -193
- package/dist/src/yaml/steps/google-play-deploy.test.d.ts +0 -5
- package/dist/src/yaml/steps/google-play-deploy.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/google-play-deploy.test.js +0 -310
- package/dist/src/yaml/steps/gradle-memory.d.ts +0 -61
- package/dist/src/yaml/steps/gradle-memory.d.ts.map +0 -1
- package/dist/src/yaml/steps/gradle-memory.js +0 -386
- package/dist/src/yaml/steps/gradle-memory.test.d.ts +0 -2
- package/dist/src/yaml/steps/gradle-memory.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/gradle-memory.test.js +0 -344
- package/dist/src/yaml/steps/gradle-sdk-cmake.d.ts +0 -28
- package/dist/src/yaml/steps/gradle-sdk-cmake.d.ts.map +0 -1
- package/dist/src/yaml/steps/gradle-sdk-cmake.js +0 -107
- package/dist/src/yaml/steps/gradle-sdk-cmake.test.d.ts +0 -2
- package/dist/src/yaml/steps/gradle-sdk-cmake.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/gradle-sdk-cmake.test.js +0 -183
- package/dist/src/yaml/steps/index.d.ts +0 -10
- package/dist/src/yaml/steps/index.d.ts.map +0 -1
- package/dist/src/yaml/steps/index.js +0 -1461
- package/dist/src/yaml/steps/ios-deps.d.ts +0 -78
- package/dist/src/yaml/steps/ios-deps.d.ts.map +0 -1
- package/dist/src/yaml/steps/ios-deps.js +0 -279
- package/dist/src/yaml/steps/ios-deps.test.d.ts +0 -5
- package/dist/src/yaml/steps/ios-deps.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/ios-deps.test.js +0 -90
- package/dist/src/yaml/steps/ios-signing.d.ts +0 -31
- package/dist/src/yaml/steps/ios-signing.d.ts.map +0 -1
- package/dist/src/yaml/steps/ios-signing.js +0 -144
- package/dist/src/yaml/steps/ios-version.d.ts +0 -47
- package/dist/src/yaml/steps/ios-version.d.ts.map +0 -1
- package/dist/src/yaml/steps/ios-version.js +0 -151
- package/dist/src/yaml/steps/java-home-version-spec.test.d.ts +0 -10
- package/dist/src/yaml/steps/java-home-version-spec.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/java-home-version-spec.test.js +0 -58
- package/dist/src/yaml/steps/linting.d.ts +0 -47
- package/dist/src/yaml/steps/linting.d.ts.map +0 -1
- package/dist/src/yaml/steps/linting.js +0 -148
- package/dist/src/yaml/steps/phase2.test.d.ts +0 -6
- package/dist/src/yaml/steps/phase2.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/phase2.test.js +0 -197
- package/dist/src/yaml/steps/phase3.test.d.ts +0 -5
- package/dist/src/yaml/steps/phase3.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/phase3.test.js +0 -144
- package/dist/src/yaml/steps/phase4.test.d.ts +0 -5
- package/dist/src/yaml/steps/phase4.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/phase4.test.js +0 -166
- package/dist/src/yaml/steps/phase5.test.d.ts +0 -6
- package/dist/src/yaml/steps/phase5.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/phase5.test.js +0 -263
- package/dist/src/yaml/steps/registry.d.ts +0 -88
- package/dist/src/yaml/steps/registry.d.ts.map +0 -1
- package/dist/src/yaml/steps/registry.js +0 -125
- package/dist/src/yaml/steps/registry.test.d.ts +0 -5
- package/dist/src/yaml/steps/registry.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/registry.test.js +0 -235
- package/dist/src/yaml/steps/release.d.ts +0 -50
- package/dist/src/yaml/steps/release.d.ts.map +0 -1
- package/dist/src/yaml/steps/release.js +0 -154
- package/dist/src/yaml/steps/render-post-processor.d.ts +0 -100
- package/dist/src/yaml/steps/render-post-processor.d.ts.map +0 -1
- package/dist/src/yaml/steps/render-post-processor.js +0 -270
- package/dist/src/yaml/steps/render-post-processor.test.d.ts +0 -13
- package/dist/src/yaml/steps/render-post-processor.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/render-post-processor.test.js +0 -220
- package/dist/src/yaml/steps/script.d.ts +0 -23
- package/dist/src/yaml/steps/script.d.ts.map +0 -1
- package/dist/src/yaml/steps/script.js +0 -63
- package/dist/src/yaml/steps/spec-validation.test.d.ts +0 -6
- package/dist/src/yaml/steps/spec-validation.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/spec-validation.test.js +0 -130
- package/dist/src/yaml/steps/steps.test.d.ts +0 -6
- package/dist/src/yaml/steps/steps.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/steps.test.js +0 -881
- package/dist/src/yaml/steps/structural-facts.d.ts +0 -992
- package/dist/src/yaml/steps/structural-facts.d.ts.map +0 -1
- package/dist/src/yaml/steps/structural-facts.js +0 -3276
- package/dist/src/yaml/steps/structural-facts.test.d.ts +0 -12
- package/dist/src/yaml/steps/structural-facts.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/structural-facts.test.js +0 -3039
- package/dist/src/yaml/steps/test-config.d.ts +0 -5
- package/dist/src/yaml/steps/test-config.d.ts.map +0 -1
- package/dist/src/yaml/steps/test-config.js +0 -25
- package/dist/src/yaml/steps/trim-align-corpus.test.d.ts +0 -28
- package/dist/src/yaml/steps/trim-align-corpus.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/trim-align-corpus.test.js +0 -383
- package/dist/src/yaml/steps/trim-align.d.ts +0 -87
- package/dist/src/yaml/steps/trim-align.d.ts.map +0 -1
- package/dist/src/yaml/steps/trim-align.js +0 -367
- package/dist/src/yaml/steps/trim-align.test.d.ts +0 -11
- package/dist/src/yaml/steps/trim-align.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/trim-align.test.js +0 -261
- package/dist/src/yaml/steps/ui-fidelity-preview-android.d.ts +0 -66
- package/dist/src/yaml/steps/ui-fidelity-preview-android.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-preview-android.js +0 -251
- package/dist/src/yaml/steps/ui-fidelity-preview-android.test.d.ts +0 -13
- package/dist/src/yaml/steps/ui-fidelity-preview-android.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-preview-android.test.js +0 -302
- package/dist/src/yaml/steps/ui-fidelity-preview.d.ts +0 -134
- package/dist/src/yaml/steps/ui-fidelity-preview.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-preview.js +0 -173
- package/dist/src/yaml/steps/ui-fidelity-preview.test.d.ts +0 -11
- package/dist/src/yaml/steps/ui-fidelity-preview.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-preview.test.js +0 -210
- package/dist/src/yaml/steps/ui-fidelity-render-android.d.ts +0 -155
- package/dist/src/yaml/steps/ui-fidelity-render-android.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-render-android.js +0 -1389
- package/dist/src/yaml/steps/ui-fidelity-render-android.test.d.ts +0 -2
- package/dist/src/yaml/steps/ui-fidelity-render-android.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-render-android.test.js +0 -1106
- package/dist/src/yaml/steps/ui-fidelity-render.d.ts +0 -230
- package/dist/src/yaml/steps/ui-fidelity-render.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-render.js +0 -1597
- package/dist/src/yaml/steps/ui-fidelity-render.test.d.ts +0 -18
- package/dist/src/yaml/steps/ui-fidelity-render.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-render.test.js +0 -1871
- package/dist/src/yaml/steps/xcode-app-product.d.ts +0 -90
- package/dist/src/yaml/steps/xcode-app-product.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-app-product.js +0 -247
- package/dist/src/yaml/steps/xcode-app-product.test.d.ts +0 -2
- package/dist/src/yaml/steps/xcode-app-product.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-app-product.test.js +0 -202
- package/dist/src/yaml/steps/xcode-derived-data.test.d.ts +0 -30
- package/dist/src/yaml/steps/xcode-derived-data.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-derived-data.test.js +0 -279
- package/dist/src/yaml/steps/xcode-destination.d.ts +0 -47
- package/dist/src/yaml/steps/xcode-destination.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-destination.js +0 -202
- package/dist/src/yaml/steps/xcode-destination.test.d.ts +0 -9
- package/dist/src/yaml/steps/xcode-destination.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-destination.test.js +0 -227
- package/dist/src/yaml/steps/xcode-new.test.d.ts +0 -5
- package/dist/src/yaml/steps/xcode-new.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-new.test.js +0 -211
- package/dist/src/yaml/steps/xcode-resolve-retry.test.d.ts +0 -9
- package/dist/src/yaml/steps/xcode-resolve-retry.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-resolve-retry.test.js +0 -146
- package/dist/src/yaml/steps/xcode-simulator-archs.d.ts +0 -53
- package/dist/src/yaml/steps/xcode-simulator-archs.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-simulator-archs.js +0 -98
- package/dist/src/yaml/steps/xcode-simulator-archs.test.d.ts +0 -21
- package/dist/src/yaml/steps/xcode-simulator-archs.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-simulator-archs.test.js +0 -155
- package/dist/src/yaml/steps/xcode.d.ts +0 -230
- package/dist/src/yaml/steps/xcode.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode.js +0 -1350
- package/dist/src/yaml/types.d.ts +0 -76
- package/dist/src/yaml/types.d.ts.map +0 -1
- package/dist/src/yaml/types.js +0 -5
- package/dist/src/yaml/validation-types.d.ts +0 -102
- package/dist/src/yaml/validation-types.d.ts.map +0 -1
- package/dist/src/yaml/validation-types.js +0 -8
- package/dist/src/yaml/yaml-updater.d.ts +0 -24
- package/dist/src/yaml/yaml-updater.d.ts.map +0 -1
- package/dist/src/yaml/yaml-updater.js +0 -128
package/package.json
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@invarn/cibuild",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.7",
|
|
4
4
|
"description": "CI Build CLI — local pipeline orchestration and validation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cli.cjs",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./dist/cli.cjs",
|
|
9
9
|
"./lib": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"require": "./dist/src/lib.js"
|
|
10
|
+
"import": "./dist/lib.mjs",
|
|
11
|
+
"default": "./dist/lib.mjs"
|
|
13
12
|
},
|
|
14
13
|
"./commands": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"require": "./dist/src/commands/index.js"
|
|
14
|
+
"import": "./dist/commands.mjs",
|
|
15
|
+
"default": "./dist/commands.mjs"
|
|
18
16
|
}
|
|
19
17
|
},
|
|
20
18
|
"bin": {
|
|
@@ -23,9 +21,7 @@
|
|
|
23
21
|
},
|
|
24
22
|
"files": [
|
|
25
23
|
"dist/cli.cjs",
|
|
26
|
-
"dist
|
|
27
|
-
"dist/src/**/*.d.ts",
|
|
28
|
-
"dist/src/**/*.d.ts.map"
|
|
24
|
+
"dist/*.mjs"
|
|
29
25
|
],
|
|
30
26
|
"scripts": {
|
|
31
27
|
"build": "./build.sh",
|
package/dist/src/cli.d.ts
DELETED
package/dist/src/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AASA,OAAO,uBAAuB,CAAC"}
|
package/dist/src/cli.js
DELETED
|
@@ -1,399 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { resolve, extname } from "node:path";
|
|
3
|
-
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4
|
-
// Static — see the note in `yaml/steps/android.ts`. `pkg` cannot evaluate a
|
|
5
|
-
// dynamic `import()` of a builtin.
|
|
6
|
-
import { createInterface } from "node:readline";
|
|
7
|
-
import prompts from "prompts";
|
|
8
|
-
import { SecretsManager } from "./yaml/secrets-manager.js";
|
|
9
|
-
import "./yaml/steps/index.js"; // Initialize step registry
|
|
10
|
-
import { handleBuildCommand } from "./commands/build.js";
|
|
11
|
-
import { handleEditCommand } from "./commands/edit.js";
|
|
12
|
-
import { handleSecretsUploadCommand } from "./commands/secrets-upload.js";
|
|
13
|
-
import { handleSecretsSyncWorkflowCommand } from "./commands/secrets-sync-workflow.js";
|
|
14
|
-
import { handleResetCommand } from "./commands/reset.js";
|
|
15
|
-
import { handleInitCommand } from "./commands/init.js";
|
|
16
|
-
import { handleValidateCommand } from "./commands/validate.js";
|
|
17
|
-
import { handleRunCommand } from "./commands/run.js";
|
|
18
|
-
import { handleDetectProjectCommand } from "./commands/detect-project.js";
|
|
19
|
-
import { handleDetectPlatformCommand } from "./commands/detect-platform.js";
|
|
20
|
-
import { detectMobileProjectRoot } from "./shared/detect-project.js";
|
|
21
|
-
async function main() {
|
|
22
|
-
const args = process.argv.slice(2);
|
|
23
|
-
if (args[0] === "--version" || args[0] === "-v") {
|
|
24
|
-
console.log(CIBUILD_VERSION);
|
|
25
|
-
process.exit(0);
|
|
26
|
-
}
|
|
27
|
-
if (args.length === 0 || args[0] === "--help" || args[0] === "-h") {
|
|
28
|
-
console.log(`
|
|
29
|
-
CI Build - Lightweight CI/CD Pipeline Runner
|
|
30
|
-
|
|
31
|
-
Usage:
|
|
32
|
-
ci init Check dependencies + set up pipeline (interactive)
|
|
33
|
-
ci init --create Check dependencies + create pipeline (non-interactive)
|
|
34
|
-
ci init --import <path> Check dependencies + import YAML pipeline (non-interactive)
|
|
35
|
-
ci build Generate a standard pipeline for the current project
|
|
36
|
-
ci run <path> [-w <name>] Run locally (development mode)
|
|
37
|
-
ci run <path> [-w <name>] --production Run on remote runner (production)
|
|
38
|
-
ci run <path> [-w <name>] --validate-only Validate only, don't execute
|
|
39
|
-
ci run <path> [-w <name>] --skip-validation Skip validation, run with interactive prompts
|
|
40
|
-
ci validate <path> [-w <name>] Validate pipeline (alias for --validate-only)
|
|
41
|
-
ci detect-platform <path> [-w <name>] Detect platform from YAML pipeline
|
|
42
|
-
ci detect-project Detect project type (android, ios, kmm)
|
|
43
|
-
ci reset [--force] Remove all cibuild files and folders
|
|
44
|
-
ci edit <path> [-w <name>] View pipeline and edit step inputs
|
|
45
|
-
ci secrets add <var_name> <path> [-w <name>] Add a secret (prompted interactively)
|
|
46
|
-
ci secrets add <var_name> <path> --file <file> [-w <name>] Add a secret from a file
|
|
47
|
-
ci secrets upload [--env <name>] [--repo <owner/repo>] [--dry-run] Upload secrets to GitHub environment
|
|
48
|
-
ci --version Show version
|
|
49
|
-
ci --help Show this help
|
|
50
|
-
|
|
51
|
-
Options:
|
|
52
|
-
--workflow, -w <name> Workflow name (YAML only, defaults to first workflow)
|
|
53
|
-
--production Execute on remote runner after validation (vs local)
|
|
54
|
-
--validate-only Run validation only, don't execute pipeline
|
|
55
|
-
--skip-validation Skip pre-execution validation (for development)
|
|
56
|
-
--help, -h Show this help message
|
|
57
|
-
|
|
58
|
-
Supported Formats:
|
|
59
|
-
.ts TypeScript pipeline files
|
|
60
|
-
.yml, .yaml YAML pipeline files
|
|
61
|
-
|
|
62
|
-
Examples:
|
|
63
|
-
ci init # Interactive setup
|
|
64
|
-
ci init --create # Non-interactive: create pipeline
|
|
65
|
-
ci init --import pipeline.yml # Non-interactive: import YAML
|
|
66
|
-
ci build # Generate standard pipeline
|
|
67
|
-
ci run examples/android-build.yml -w pull-request-java-17
|
|
68
|
-
ci run build.pipeline.ts
|
|
69
|
-
ci run ios-build.yml
|
|
70
|
-
ci run android.yml --workflow qa
|
|
71
|
-
ci run multi-platform.yaml -w ios-build
|
|
72
|
-
ci run android.yml --production # Run on remote runner
|
|
73
|
-
ci validate ios-build.yml # Validate only
|
|
74
|
-
ci detect-platform ios-build.yml
|
|
75
|
-
ci secrets add SLACK_CHANNEL bitrise.yml # Add secret (prompted)
|
|
76
|
-
ci secrets add GOOGLE_SERVICES_JSON bitrise.yml --file app/google-services.json
|
|
77
|
-
ci detect-platform multi-platform.yaml -w android
|
|
78
|
-
ci edit android-build.yml # View + edit step inputs
|
|
79
|
-
ci edit android-build.yml -w debug # Edit specific workflow
|
|
80
|
-
`);
|
|
81
|
-
process.exit(0);
|
|
82
|
-
}
|
|
83
|
-
// Handle fidelity-trim — the internal trim/align helper spawned by the
|
|
84
|
-
// generated UI-fidelity render scripts (kept flag-free and fast: it must
|
|
85
|
-
// behave identically whether invoked as `ci`, the pkg binary re-exec, or
|
|
86
|
-
// `node dist/cli.cjs`).
|
|
87
|
-
if (args[0] === "fidelity-trim") {
|
|
88
|
-
const { handleFidelityTrimCommand } = await import("./commands/fidelity-trim.js");
|
|
89
|
-
process.exit(handleFidelityTrimCommand(args.slice(1)));
|
|
90
|
-
}
|
|
91
|
-
// Handle envman subcommand — delegates to envman CLI
|
|
92
|
-
if (args[0] === "envman") {
|
|
93
|
-
// Re-write process.argv so envman sees its own args
|
|
94
|
-
process.argv = [process.argv[0], "envman", ...args.slice(1)];
|
|
95
|
-
await import("./envman/cli.js");
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
// Handle detect-project command
|
|
99
|
-
if (args[0] === "detect-project") {
|
|
100
|
-
await handleDetectProjectCommand();
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
// Handle init command
|
|
104
|
-
if (args[0] === "init") {
|
|
105
|
-
const importIdx = args.indexOf("--import");
|
|
106
|
-
const importPath = importIdx !== -1 ? args[importIdx + 1] : undefined;
|
|
107
|
-
const createFlag = args.includes("--create");
|
|
108
|
-
await handleInitCommand({ importPath, create: createFlag });
|
|
109
|
-
process.exit(0);
|
|
110
|
-
}
|
|
111
|
-
// Handle reset command
|
|
112
|
-
if (args[0] === "reset") {
|
|
113
|
-
const force = args.includes("--force") || args.includes("-f");
|
|
114
|
-
await handleResetCommand({ force });
|
|
115
|
-
process.exit(0);
|
|
116
|
-
}
|
|
117
|
-
// Handle build command
|
|
118
|
-
if (args[0] === "build") {
|
|
119
|
-
await handleBuildCommand(detectMobileProjectRoot);
|
|
120
|
-
process.exit(0);
|
|
121
|
-
}
|
|
122
|
-
// Handle secrets command
|
|
123
|
-
if (args[0] === "secrets") {
|
|
124
|
-
const subCommand = args[1];
|
|
125
|
-
if (subCommand === "upload") {
|
|
126
|
-
const envFlagIdx = args.findIndex((a) => a === '--env' || a === '-e');
|
|
127
|
-
const envName = envFlagIdx !== -1 ? args[envFlagIdx + 1] : 'cibuild';
|
|
128
|
-
const repoFlagIdx = args.findIndex((a) => a === '--repo' || a === '-r');
|
|
129
|
-
const repo = repoFlagIdx !== -1 ? args[repoFlagIdx + 1] : undefined;
|
|
130
|
-
const dryRun = args.includes('--dry-run');
|
|
131
|
-
await handleSecretsUploadCommand({ envName, repo, dryRun });
|
|
132
|
-
process.exit(0);
|
|
133
|
-
}
|
|
134
|
-
if (subCommand === "sync-workflow") {
|
|
135
|
-
const pathFlagIdx = args.findIndex((a) => a === '--path' || a === '-p');
|
|
136
|
-
let workflowPath = pathFlagIdx !== -1 ? args[pathFlagIdx + 1] : undefined;
|
|
137
|
-
if (!workflowPath) {
|
|
138
|
-
// Auto-discover workflow files
|
|
139
|
-
const ghWorkflowDir = resolve(process.cwd(), '.github', 'workflows');
|
|
140
|
-
const discoveredFiles = [];
|
|
141
|
-
if (existsSync(ghWorkflowDir)) {
|
|
142
|
-
try {
|
|
143
|
-
const entries = readdirSync(ghWorkflowDir);
|
|
144
|
-
for (const entry of entries) {
|
|
145
|
-
if (entry.endsWith('.yml') || entry.endsWith('.yaml')) {
|
|
146
|
-
discoveredFiles.push(`.github/workflows/${entry}`);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
catch { /* ignore read errors */ }
|
|
151
|
-
}
|
|
152
|
-
const choices = discoveredFiles.map((f) => ({
|
|
153
|
-
title: f,
|
|
154
|
-
value: f,
|
|
155
|
-
}));
|
|
156
|
-
choices.push({ title: 'Enter path manually…', value: '__manual__' });
|
|
157
|
-
if (choices.length === 1) {
|
|
158
|
-
// Only the manual option — no files found
|
|
159
|
-
console.log('No workflow files found in .github/workflows/\n');
|
|
160
|
-
}
|
|
161
|
-
const { selected } = await prompts({
|
|
162
|
-
type: 'select',
|
|
163
|
-
name: 'selected',
|
|
164
|
-
message: 'Select a workflow file to sync secrets into:',
|
|
165
|
-
choices,
|
|
166
|
-
});
|
|
167
|
-
if (!selected) {
|
|
168
|
-
process.exit(0);
|
|
169
|
-
}
|
|
170
|
-
if (selected === '__manual__') {
|
|
171
|
-
const { manualPath } = await prompts({
|
|
172
|
-
type: 'text',
|
|
173
|
-
name: 'manualPath',
|
|
174
|
-
message: 'Enter the path to the workflow YAML file:',
|
|
175
|
-
validate: (v) => v.trim() ? true : 'Path is required',
|
|
176
|
-
});
|
|
177
|
-
if (!manualPath) {
|
|
178
|
-
process.exit(0);
|
|
179
|
-
}
|
|
180
|
-
workflowPath = manualPath;
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
workflowPath = selected;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
const dryRun = args.includes('--dry-run');
|
|
187
|
-
await handleSecretsSyncWorkflowCommand({ workflowPath: resolve(process.cwd(), workflowPath), dryRun });
|
|
188
|
-
process.exit(0);
|
|
189
|
-
}
|
|
190
|
-
if (subCommand !== "add") {
|
|
191
|
-
console.error("Error: Unknown secrets subcommand. Available: add, upload, sync-workflow");
|
|
192
|
-
console.error("Usage: ci secrets add <var_name> <pipeline_path> [--file <file>] [--workflow <name>]");
|
|
193
|
-
console.error(" ci secrets upload [--env <name>] [--repo <owner/repo>] [--dry-run]");
|
|
194
|
-
console.error(" ci secrets sync-workflow --path <workflow.yml> [--dry-run]");
|
|
195
|
-
process.exit(1);
|
|
196
|
-
}
|
|
197
|
-
// ci secrets add <var_name> <pipeline_path> [--file <file>] [--workflow <name>]
|
|
198
|
-
const varName = args[2];
|
|
199
|
-
const pipelinePath = args[3];
|
|
200
|
-
if (!varName || !pipelinePath) {
|
|
201
|
-
console.error("Error: Variable name and pipeline path are required");
|
|
202
|
-
console.error("Usage: ci secrets add <var_name> <pipeline_path> [--file <file>] [-w <workflow>]");
|
|
203
|
-
console.error("\nExamples:");
|
|
204
|
-
console.error(" ci secrets add SLACK_CHANNEL bitrise.yml # prompted interactively");
|
|
205
|
-
console.error(" ci secrets add GOOGLE_SERVICES_JSON bitrise.yml --file google-services.json # read from file");
|
|
206
|
-
process.exit(1);
|
|
207
|
-
}
|
|
208
|
-
const resolvedPath = resolve(process.cwd(), pipelinePath);
|
|
209
|
-
if (!existsSync(resolvedPath)) {
|
|
210
|
-
console.error(`Error: Pipeline file not found: ${resolvedPath}`);
|
|
211
|
-
process.exit(1);
|
|
212
|
-
}
|
|
213
|
-
// Only works with YAML files
|
|
214
|
-
const fileExt = extname(resolvedPath).toLowerCase();
|
|
215
|
-
const isYAML = fileExt === '.yml' || fileExt === '.yaml';
|
|
216
|
-
if (!isYAML) {
|
|
217
|
-
console.error("Error: secrets command only works with YAML pipeline files (.yml, .yaml)");
|
|
218
|
-
process.exit(1);
|
|
219
|
-
}
|
|
220
|
-
// Parse --file / -f flag
|
|
221
|
-
const fileFlagIdx = args.findIndex((a) => a === '--file' || a === '-f');
|
|
222
|
-
const secretFilePath = fileFlagIdx !== -1 ? args[fileFlagIdx + 1] : undefined;
|
|
223
|
-
// Parse -w / --workflow flag
|
|
224
|
-
const workflowFlagIdx = args.findIndex((a) => a === '-w' || a === '--workflow');
|
|
225
|
-
const workflowArg = workflowFlagIdx !== -1 ? args[workflowFlagIdx + 1] : undefined;
|
|
226
|
-
try {
|
|
227
|
-
const secretsManager = new SecretsManager();
|
|
228
|
-
console.log('\n╔═══════════════════════════════════════════════════════════════════╗');
|
|
229
|
-
console.log('║ ADD SECRET ║');
|
|
230
|
-
console.log('╚═══════════════════════════════════════════════════════════════════╝\n');
|
|
231
|
-
console.log(`Variable: ${varName}`);
|
|
232
|
-
console.log(`Location: ${secretsManager.getSecretsFilePath()}`);
|
|
233
|
-
// Check if this variable already exists
|
|
234
|
-
const existingSecretId = secretsManager.getSecretIdByName(varName);
|
|
235
|
-
if (existingSecretId) {
|
|
236
|
-
console.log(`\nℹ️ This variable already exists in your secrets file.`);
|
|
237
|
-
const confirmResponse = await prompts({
|
|
238
|
-
type: 'confirm',
|
|
239
|
-
name: 'value',
|
|
240
|
-
message: 'Update existing value?',
|
|
241
|
-
initial: true,
|
|
242
|
-
});
|
|
243
|
-
if (!confirmResponse.value) {
|
|
244
|
-
console.log('\n❌ Cancelled');
|
|
245
|
-
process.exit(0);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
let secretValue;
|
|
249
|
-
if (secretFilePath) {
|
|
250
|
-
// Read value from file
|
|
251
|
-
const resolvedFilePath = resolve(process.cwd(), secretFilePath);
|
|
252
|
-
if (!existsSync(resolvedFilePath)) {
|
|
253
|
-
console.error(`\nError: File not found: ${resolvedFilePath}`);
|
|
254
|
-
process.exit(1);
|
|
255
|
-
}
|
|
256
|
-
secretValue = readFileSync(resolvedFilePath, 'utf-8');
|
|
257
|
-
console.log(`\nReading value from: ${secretFilePath}`);
|
|
258
|
-
}
|
|
259
|
-
else {
|
|
260
|
-
// Collect value interactively via readline (handles multiline paste cleanly)
|
|
261
|
-
console.log(`\n Enter value for ${varName}`);
|
|
262
|
-
console.log(' Paste content, then type . on its own line and press Enter:\n');
|
|
263
|
-
if (process.stdin.isTTY) {
|
|
264
|
-
try {
|
|
265
|
-
process.stdin.setRawMode(false);
|
|
266
|
-
}
|
|
267
|
-
catch { /* ignore */ }
|
|
268
|
-
}
|
|
269
|
-
process.stdin.resume();
|
|
270
|
-
secretValue = await new Promise((res) => {
|
|
271
|
-
const rl = createInterface({ input: process.stdin, terminal: false });
|
|
272
|
-
const lines = [];
|
|
273
|
-
rl.on('line', (line) => {
|
|
274
|
-
if (line.trim() === '.') {
|
|
275
|
-
rl.close();
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
|
-
lines.push(line);
|
|
279
|
-
});
|
|
280
|
-
rl.once('close', () => { process.stdin.pause(); res(lines.join('\n')); });
|
|
281
|
-
rl.on('SIGINT', () => { rl.close(); res(''); });
|
|
282
|
-
});
|
|
283
|
-
if (!secretValue.trim()) {
|
|
284
|
-
console.log('\n❌ Cancelled');
|
|
285
|
-
process.exit(0);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
secretsManager.storeSecret(varName, secretValue, workflowArg);
|
|
289
|
-
console.log(`\n✅ Secret stored: ${varName}${workflowArg ? ` (workflow: ${workflowArg})` : ' (global)'}`);
|
|
290
|
-
console.log(` Location: ${secretsManager.getSecretsFilePath()}`);
|
|
291
|
-
console.log(`\n💡 This value will be loaded automatically when you run the pipeline.\n`);
|
|
292
|
-
process.exit(0);
|
|
293
|
-
}
|
|
294
|
-
catch (error) {
|
|
295
|
-
console.error("\n✗ Failed to add secret:");
|
|
296
|
-
console.error(error instanceof Error ? error.message : String(error));
|
|
297
|
-
process.exit(1);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
// Handle edit command
|
|
301
|
-
if (args[0] === "edit") {
|
|
302
|
-
const pipelineIndex = args.findIndex((arg) => arg === "--pipeline" || arg === "-p");
|
|
303
|
-
let pipelinePath;
|
|
304
|
-
if (pipelineIndex !== -1 && args[pipelineIndex + 1]) {
|
|
305
|
-
pipelinePath = resolve(process.cwd(), args[pipelineIndex + 1]);
|
|
306
|
-
}
|
|
307
|
-
else if (args[1] && !args[1].startsWith("-")) {
|
|
308
|
-
pipelinePath = resolve(process.cwd(), args[1]);
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
console.error("Error: Pipeline path is required");
|
|
312
|
-
console.error("Usage: ci edit <path> [-w <name>]");
|
|
313
|
-
process.exit(1);
|
|
314
|
-
}
|
|
315
|
-
const workflowIndex = args.findIndex((arg) => arg === "--workflow" || arg === "-w");
|
|
316
|
-
const workflowName = workflowIndex !== -1 && args[workflowIndex + 1]
|
|
317
|
-
? args[workflowIndex + 1]
|
|
318
|
-
: undefined;
|
|
319
|
-
if (!existsSync(pipelinePath)) {
|
|
320
|
-
console.error(`Error: Pipeline file not found: ${pipelinePath}`);
|
|
321
|
-
process.exit(1);
|
|
322
|
-
}
|
|
323
|
-
const fileExt = extname(pipelinePath).toLowerCase();
|
|
324
|
-
if (fileExt !== ".yml" && fileExt !== ".yaml") {
|
|
325
|
-
console.error("Error: edit only works with YAML pipeline files (.yml, .yaml)");
|
|
326
|
-
process.exit(1);
|
|
327
|
-
}
|
|
328
|
-
try {
|
|
329
|
-
await handleEditCommand(pipelinePath, workflowName);
|
|
330
|
-
process.exit(0);
|
|
331
|
-
}
|
|
332
|
-
catch (error) {
|
|
333
|
-
console.error("\n✗ Edit failed:");
|
|
334
|
-
console.error(error instanceof Error ? error.message : String(error));
|
|
335
|
-
process.exit(1);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
// Resolve --pipeline / -p flag OR a positional path (ci <cmd> <path>).
|
|
339
|
-
const resolvePipelinePath = (usage) => {
|
|
340
|
-
const flagIdx = args.findIndex((a) => a === "--pipeline" || a === "-p");
|
|
341
|
-
if (flagIdx !== -1 && args[flagIdx + 1]) {
|
|
342
|
-
return resolve(process.cwd(), args[flagIdx + 1]);
|
|
343
|
-
}
|
|
344
|
-
if (args[1] && !args[1].startsWith("-")) {
|
|
345
|
-
return resolve(process.cwd(), args[1]);
|
|
346
|
-
}
|
|
347
|
-
console.error("Error: Pipeline path is required");
|
|
348
|
-
for (const line of usage)
|
|
349
|
-
console.error(line);
|
|
350
|
-
process.exit(1);
|
|
351
|
-
};
|
|
352
|
-
const resolveWorkflowFlag = () => {
|
|
353
|
-
const idx = args.findIndex((a) => a === "--workflow" || a === "-w");
|
|
354
|
-
return idx !== -1 && args[idx + 1] ? args[idx + 1] : undefined;
|
|
355
|
-
};
|
|
356
|
-
// Handle validate command (and legacy `ci run <path> --validate-only`).
|
|
357
|
-
const isValidateCommand = args[0] === "validate";
|
|
358
|
-
const hasValidateOnlyFlag = args.includes("--validate-only");
|
|
359
|
-
if (isValidateCommand || (args[0] === "run" && hasValidateOnlyFlag)) {
|
|
360
|
-
const pipelinePath = resolvePipelinePath([
|
|
361
|
-
"Usage: ci validate <path> [--workflow <name>]",
|
|
362
|
-
" or: ci validate --pipeline <path> [--workflow <name>]",
|
|
363
|
-
]);
|
|
364
|
-
await handleValidateCommand({ pipelinePath, workflow: resolveWorkflowFlag() });
|
|
365
|
-
return;
|
|
366
|
-
}
|
|
367
|
-
if (args[0] === "detect-platform") {
|
|
368
|
-
const pipelinePath = resolvePipelinePath([
|
|
369
|
-
"Usage: ci detect-platform <path> [--workflow <name>]",
|
|
370
|
-
" or: ci detect-platform --pipeline <path> [--workflow <name>]",
|
|
371
|
-
]);
|
|
372
|
-
await handleDetectPlatformCommand({ pipelinePath, workflow: resolveWorkflowFlag() });
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
if (args[0] === "run") {
|
|
376
|
-
// Path is optional for `ci run` — handler discovers from .ci/pipelines/.
|
|
377
|
-
const flagIdx = args.findIndex((a) => a === "--pipeline" || a === "-p");
|
|
378
|
-
let pipelinePath;
|
|
379
|
-
if (flagIdx !== -1 && args[flagIdx + 1]) {
|
|
380
|
-
pipelinePath = resolve(process.cwd(), args[flagIdx + 1]);
|
|
381
|
-
}
|
|
382
|
-
else if (args[1] && !args[1].startsWith("-")) {
|
|
383
|
-
pipelinePath = resolve(process.cwd(), args[1]);
|
|
384
|
-
}
|
|
385
|
-
await handleRunCommand({
|
|
386
|
-
pipelinePath,
|
|
387
|
-
workflow: resolveWorkflowFlag(),
|
|
388
|
-
production: args.includes("--production"),
|
|
389
|
-
skipValidation: args.includes("--skip-validation"),
|
|
390
|
-
local: args.includes("--local"),
|
|
391
|
-
});
|
|
392
|
-
return;
|
|
393
|
-
}
|
|
394
|
-
console.error(`Unknown command: ${args[0]}`);
|
|
395
|
-
console.error("Run 'ci --help' for usage information");
|
|
396
|
-
process.exit(1);
|
|
397
|
-
}
|
|
398
|
-
main();
|
|
399
|
-
//# sourceMappingURL=cli.js.map
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A credential's target path and the value chosen for it both have to follow
|
|
3
|
-
* the product flavor the workflow builds.
|
|
4
|
-
*
|
|
5
|
-
* An Android module has one source set per flavor, and each carries its own
|
|
6
|
-
* copies of whatever the build needs — the manifest, the resources, and
|
|
7
|
-
* `google-services.json`. The google-services plugin resolves the file by
|
|
8
|
-
* specificity (variant, then build type, then flavor, then the module root)
|
|
9
|
-
* and takes the first it finds. So a workflow building `ciDynamicDebug` wants
|
|
10
|
-
* `app/src/ciDynamic/google-services.json`, and only falls back to the module
|
|
11
|
-
* root when that is absent.
|
|
12
|
-
*
|
|
13
|
-
* The generator assumed one file at the module root. Writing there on a
|
|
14
|
-
* flavored repository is *silently* wrong rather than loudly wrong: the plugin
|
|
15
|
-
* finds a file, parses it, and fails on a package name. That is what
|
|
16
|
-
* `bld_8e60d90ab4e55f85d2f72459` (2026-09-09) spent 1292 Gradle tasks
|
|
17
|
-
* discovering:
|
|
18
|
-
*
|
|
19
|
-
* Execution failed for task ':app:processCiDynamicDebugGoogleServices'.
|
|
20
|
-
* > No matching client found for package name '….ciDynamic'
|
|
21
|
-
*
|
|
22
|
-
* The chain worked. The file was the wrong one of four, and the error names
|
|
23
|
-
* Firebase rather than the credential we delivered.
|
|
24
|
-
*
|
|
25
|
-
* Two flavors cannot share one secret, and the key is how a value varies. A
|
|
26
|
-
* dispatched build's secrets are a flat key→value map — Invarn's scopes are
|
|
27
|
-
* org, connection and pipeline, with no workflow *column* — but a flat map
|
|
28
|
-
* carries a workflow perfectly well when the workflow is part of the key,
|
|
29
|
-
* which is what `ci secrets upload` has encoded as
|
|
30
|
-
* `CIBUILD_SW__<WORKFLOW>__<VAR>` all along. So the differing keys are
|
|
31
|
-
* per-workflow ones, not per-flavor ones: the flavor is a property of the
|
|
32
|
-
* variant the workflow builds, so keying by workflow is one indirection less,
|
|
33
|
-
* and it is the convention already implemented end to end. A per-flavor
|
|
34
|
-
* suffix (`GOOGLE_SERVICES_JSON_CIDYNAMIC`) was briefly shipped here as a
|
|
35
|
-
* second answer to the same question and was reverted (Alex, 2026-09-09).
|
|
36
|
-
*/
|
|
37
|
-
export {};
|
|
38
|
-
//# sourceMappingURL=a-credential-target-follows-the-flavor-source-set.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"a-credential-target-follows-the-flavor-source-set.test.d.ts","sourceRoot":"","sources":["../../../src/commands/a-credential-target-follows-the-flavor-source-set.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG"}
|