putitoutthere 0.3.26 → 0.3.27
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/action.d.ts +2 -6
- package/dist/action.d.ts.map +1 -1
- package/dist/action.js +17 -23
- package/dist/action.js.map +1 -1
- package/dist/advance-floating-major.d.ts +3 -15
- package/dist/advance-floating-major.d.ts.map +1 -1
- package/dist/advance-floating-major.js +3 -15
- package/dist/advance-floating-major.js.map +1 -1
- package/dist/advance-v0.d.ts +3 -11
- package/dist/advance-v0.d.ts.map +1 -1
- package/dist/advance-v0.js +3 -11
- package/dist/advance-v0.js.map +1 -1
- package/dist/build-requires-declares.d.ts.map +1 -1
- package/dist/build-requires-declares.js +3 -16
- package/dist/build-requires-declares.js.map +1 -1
- package/dist/cargo-dep-entries.d.ts +4 -12
- package/dist/cargo-dep-entries.d.ts.map +1 -1
- package/dist/cargo-dep-entries.js +4 -12
- package/dist/cargo-dep-entries.js.map +1 -1
- package/dist/cascade.d.ts +4 -22
- package/dist/cascade.d.ts.map +1 -1
- package/dist/cascade.js +4 -22
- package/dist/cascade.js.map +1 -1
- package/dist/check-crate-size.d.ts +4 -14
- package/dist/check-crate-size.d.ts.map +1 -1
- package/dist/check-crate-size.js +4 -14
- package/dist/check-crate-size.js.map +1 -1
- package/dist/check.d.ts +4 -23
- package/dist/check.d.ts.map +1 -1
- package/dist/check.js +4 -23
- package/dist/check.js.map +1 -1
- package/dist/cli.d.ts +3 -41
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +14 -41
- package/dist/cli.js.map +1 -1
- package/dist/completeness.d.ts +4 -13
- package/dist/completeness.d.ts.map +1 -1
- package/dist/completeness.js +4 -13
- package/dist/completeness.js.map +1 -1
- package/dist/config.d.ts +4 -12
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -12
- package/dist/config.js.map +1 -1
- package/dist/emit-plan-outputs.d.ts +4 -18
- package/dist/emit-plan-outputs.d.ts.map +1 -1
- package/dist/emit-plan-outputs.js +4 -18
- package/dist/emit-plan-outputs.js.map +1 -1
- package/dist/emit-release-outputs.d.ts +4 -17
- package/dist/emit-release-outputs.d.ts.map +1 -1
- package/dist/emit-release-outputs.js +4 -17
- package/dist/emit-release-outputs.js.map +1 -1
- package/dist/ensure-tag.d.ts +4 -10
- package/dist/ensure-tag.d.ts.map +1 -1
- package/dist/ensure-tag.js +4 -10
- package/dist/ensure-tag.js.map +1 -1
- package/dist/env.d.ts +8 -23
- package/dist/env.d.ts.map +1 -1
- package/dist/env.js +11 -40
- package/dist/env.js.map +1 -1
- package/dist/error-codes.d.ts +8 -27
- package/dist/error-codes.d.ts.map +1 -1
- package/dist/error-codes.js +8 -27
- package/dist/error-codes.js.map +1 -1
- package/dist/fold-action-bundle.d.ts +4 -20
- package/dist/fold-action-bundle.d.ts.map +1 -1
- package/dist/fold-action-bundle.js +4 -20
- package/dist/fold-action-bundle.js.map +1 -1
- package/dist/force-move-tag.d.ts +4 -13
- package/dist/force-move-tag.d.ts.map +1 -1
- package/dist/force-move-tag.js +4 -13
- package/dist/force-move-tag.js.map +1 -1
- package/dist/git.d.ts +7 -16
- package/dist/git.d.ts.map +1 -1
- package/dist/git.js +7 -16
- package/dist/git.js.map +1 -1
- package/dist/glob.d.ts +3 -10
- package/dist/glob.d.ts.map +1 -1
- package/dist/glob.js +3 -10
- package/dist/glob.js.map +1 -1
- package/dist/handlers/classify-npm-view-failure.d.ts +4 -30
- package/dist/handlers/classify-npm-view-failure.d.ts.map +1 -1
- package/dist/handlers/classify-npm-view-failure.js +7 -38
- package/dist/handlers/classify-npm-view-failure.js.map +1 -1
- package/dist/handlers/crates.d.ts +4 -35
- package/dist/handlers/crates.d.ts.map +1 -1
- package/dist/handlers/crates.js +8 -47
- package/dist/handlers/crates.js.map +1 -1
- package/dist/handlers/first-file-under.d.ts +3 -11
- package/dist/handlers/first-file-under.d.ts.map +1 -1
- package/dist/handlers/first-file-under.js +3 -11
- package/dist/handlers/first-file-under.js.map +1 -1
- package/dist/handlers/match-first-publish-tp-rejection.d.ts +4 -16
- package/dist/handlers/match-first-publish-tp-rejection.d.ts.map +1 -1
- package/dist/handlers/match-first-publish-tp-rejection.js +4 -16
- package/dist/handlers/match-first-publish-tp-rejection.js.map +1 -1
- package/dist/handlers/match-npm-name-too-similar.d.ts +4 -25
- package/dist/handlers/match-npm-name-too-similar.d.ts.map +1 -1
- package/dist/handlers/match-npm-name-too-similar.js +4 -25
- package/dist/handlers/match-npm-name-too-similar.js.map +1 -1
- package/dist/handlers/match-tlog-duplicate.d.ts +4 -13
- package/dist/handlers/match-tlog-duplicate.d.ts.map +1 -1
- package/dist/handlers/match-tlog-duplicate.js +4 -13
- package/dist/handlers/match-tlog-duplicate.js.map +1 -1
- package/dist/handlers/npm-platform.d.ts +11 -46
- package/dist/handlers/npm-platform.d.ts.map +1 -1
- package/dist/handlers/npm-platform.js +11 -46
- package/dist/handlers/npm-platform.js.map +1 -1
- package/dist/handlers/npm.d.ts +3 -7
- package/dist/handlers/npm.d.ts.map +1 -1
- package/dist/handlers/npm.js +11 -45
- package/dist/handlers/npm.js.map +1 -1
- package/dist/handlers/pypi.d.ts +5 -37
- package/dist/handlers/pypi.d.ts.map +1 -1
- package/dist/handlers/pypi.js +5 -37
- package/dist/handlers/pypi.js.map +1 -1
- package/dist/handlers/scan-dirty-outside-manifest.d.ts +4 -11
- package/dist/handlers/scan-dirty-outside-manifest.d.ts.map +1 -1
- package/dist/handlers/scan-dirty-outside-manifest.js +4 -11
- package/dist/handlers/scan-dirty-outside-manifest.js.map +1 -1
- package/dist/is-within-dir.d.ts +3 -5
- package/dist/is-within-dir.d.ts.map +1 -1
- package/dist/is-within-dir.js +3 -5
- package/dist/is-within-dir.js.map +1 -1
- package/dist/log.d.ts +6 -33
- package/dist/log.d.ts.map +1 -1
- package/dist/log.js +10 -57
- package/dist/log.js.map +1 -1
- package/dist/manylinux-for-triple.d.ts +4 -6
- package/dist/manylinux-for-triple.d.ts.map +1 -1
- package/dist/manylinux-for-triple.js +4 -6
- package/dist/manylinux-for-triple.js.map +1 -1
- package/dist/must-get.d.ts +3 -14
- package/dist/must-get.d.ts.map +1 -1
- package/dist/must-get.js +3 -14
- package/dist/must-get.js.map +1 -1
- package/dist/normalize-artifacts.d.ts +4 -19
- package/dist/normalize-artifacts.d.ts.map +1 -1
- package/dist/normalize-artifacts.js +4 -19
- package/dist/normalize-artifacts.js.map +1 -1
- package/dist/normalize-dist-name.d.ts +4 -13
- package/dist/normalize-dist-name.d.ts.map +1 -1
- package/dist/normalize-dist-name.js +4 -13
- package/dist/normalize-dist-name.js.map +1 -1
- package/dist/packages-by-name.d.ts +4 -12
- package/dist/packages-by-name.d.ts.map +1 -1
- package/dist/packages-by-name.js +4 -12
- package/dist/packages-by-name.js.map +1 -1
- package/dist/parse-reconcile-expect.d.ts +2 -5
- package/dist/parse-reconcile-expect.d.ts.map +1 -1
- package/dist/parse-reconcile-expect.js +2 -5
- package/dist/parse-reconcile-expect.js.map +1 -1
- package/dist/plan-skew.d.ts +4 -8
- package/dist/plan-skew.d.ts.map +1 -1
- package/dist/plan-skew.js +4 -8
- package/dist/plan-skew.js.map +1 -1
- package/dist/plan-status-types.d.ts +3 -6
- package/dist/plan-status-types.d.ts.map +1 -1
- package/dist/plan-status-types.js +3 -6
- package/dist/plan-status-types.js.map +1 -1
- package/dist/plan-status.d.ts +5 -18
- package/dist/plan-status.d.ts.map +1 -1
- package/dist/plan-status.js +5 -18
- package/dist/plan-status.js.map +1 -1
- package/dist/plan.d.ts +4 -8
- package/dist/plan.d.ts.map +1 -1
- package/dist/plan.js +8 -22
- package/dist/plan.js.map +1 -1
- package/dist/preflight.d.ts +16 -62
- package/dist/preflight.d.ts.map +1 -1
- package/dist/preflight.js +16 -62
- package/dist/preflight.js.map +1 -1
- package/dist/publish-progress.d.ts +4 -17
- package/dist/publish-progress.d.ts.map +1 -1
- package/dist/publish-progress.js +4 -17
- package/dist/publish-progress.js.map +1 -1
- package/dist/publish.d.ts +4 -18
- package/dist/publish.d.ts.map +1 -1
- package/dist/publish.js +4 -18
- package/dist/publish.js.map +1 -1
- package/dist/pypi-version-source.d.ts +3 -31
- package/dist/pypi-version-source.d.ts.map +1 -1
- package/dist/pypi-version-source.js +3 -31
- package/dist/pypi-version-source.js.map +1 -1
- package/dist/python-versions.d.ts +4 -13
- package/dist/python-versions.d.ts.map +1 -1
- package/dist/python-versions.js +4 -13
- package/dist/python-versions.js.map +1 -1
- package/dist/reconcile-expect.d.ts +4 -20
- package/dist/reconcile-expect.d.ts.map +1 -1
- package/dist/reconcile-expect.js +4 -20
- package/dist/reconcile-expect.js.map +1 -1
- package/dist/reconcile-skip-warnings.d.ts +21 -0
- package/dist/reconcile-skip-warnings.d.ts.map +1 -0
- package/dist/reconcile-skip-warnings.js +24 -0
- package/dist/reconcile-skip-warnings.js.map +1 -0
- package/dist/reconcile-types.d.ts +30 -3
- package/dist/reconcile-types.d.ts.map +1 -1
- package/dist/reconcile-types.js +3 -3
- package/dist/reconcile.d.ts +11 -2
- package/dist/reconcile.d.ts.map +1 -1
- package/dist/reconcile.js +31 -8
- package/dist/reconcile.js.map +1 -1
- package/dist/release-github/gh-release-create.d.ts +4 -7
- package/dist/release-github/gh-release-create.d.ts.map +1 -1
- package/dist/release-github/gh-release-create.js +4 -7
- package/dist/release-github/gh-release-create.js.map +1 -1
- package/dist/release-github/gh-release-exists.d.ts +4 -8
- package/dist/release-github/gh-release-exists.d.ts.map +1 -1
- package/dist/release-github/gh-release-exists.js +4 -8
- package/dist/release-github/gh-release-exists.js.map +1 -1
- package/dist/release-github/index.d.ts +4 -29
- package/dist/release-github/index.d.ts.map +1 -1
- package/dist/release-github/index.js +4 -29
- package/dist/release-github/index.js.map +1 -1
- package/dist/release-packages.d.ts +4 -16
- package/dist/release-packages.d.ts.map +1 -1
- package/dist/release-packages.js +4 -16
- package/dist/release-packages.js.map +1 -1
- package/dist/replace-cargo-version.d.ts +3 -30
- package/dist/replace-cargo-version.d.ts.map +1 -1
- package/dist/replace-cargo-version.js +3 -30
- package/dist/replace-cargo-version.js.map +1 -1
- package/dist/replace-dep-version-req.d.ts +8 -32
- package/dist/replace-dep-version-req.d.ts.map +1 -1
- package/dist/replace-dep-version-req.js +8 -32
- package/dist/replace-dep-version-req.js.map +1 -1
- package/dist/repo-relative-paths.d.ts +3 -14
- package/dist/repo-relative-paths.d.ts.map +1 -1
- package/dist/repo-relative-paths.js +3 -14
- package/dist/repo-relative-paths.js.map +1 -1
- package/dist/resolve/run-resolve.d.ts +4 -9
- package/dist/resolve/run-resolve.d.ts.map +1 -1
- package/dist/resolve/run-resolve.js +4 -9
- package/dist/resolve/run-resolve.js.map +1 -1
- package/dist/resolve-dep-dirs.d.ts +4 -14
- package/dist/resolve-dep-dirs.d.ts.map +1 -1
- package/dist/resolve-dep-dirs.js +4 -14
- package/dist/resolve-dep-dirs.js.map +1 -1
- package/dist/resolve-tag-commit.d.ts +4 -12
- package/dist/resolve-tag-commit.d.ts.map +1 -1
- package/dist/resolve-tag-commit.js +4 -12
- package/dist/resolve-tag-commit.js.map +1 -1
- package/dist/retry.d.ts +4 -16
- package/dist/retry.d.ts.map +1 -1
- package/dist/retry.js +4 -16
- package/dist/retry.js.map +1 -1
- package/dist/status-classify.d.ts +3 -6
- package/dist/status-classify.d.ts.map +1 -1
- package/dist/status-classify.js +3 -6
- package/dist/status-classify.js.map +1 -1
- package/dist/status.d.ts +4 -18
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +4 -18
- package/dist/status.js.map +1 -1
- package/dist/tag-template.d.ts +4 -14
- package/dist/tag-template.d.ts.map +1 -1
- package/dist/tag-template.js +4 -14
- package/dist/tag-template.js.map +1 -1
- package/dist/to-error.d.ts +4 -13
- package/dist/to-error.d.ts.map +1 -1
- package/dist/to-error.js +4 -13
- package/dist/to-error.js.map +1 -1
- package/dist/trailer.d.ts +4 -17
- package/dist/trailer.d.ts.map +1 -1
- package/dist/trailer.js +4 -17
- package/dist/trailer.js.map +1 -1
- package/dist/types.d.ts +11 -32
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +3 -6
- package/dist/types.js.map +1 -1
- package/dist/unpublished-kinds.d.ts +4 -15
- package/dist/unpublished-kinds.d.ts.map +1 -1
- package/dist/unpublished-kinds.js +4 -15
- package/dist/unpublished-kinds.js.map +1 -1
- package/dist/utils/bound-capture.d.ts +4 -8
- package/dist/utils/bound-capture.d.ts.map +1 -1
- package/dist/utils/bound-capture.js +4 -8
- package/dist/utils/bound-capture.js.map +1 -1
- package/dist/utils/elide-middle.d.ts +4 -19
- package/dist/utils/elide-middle.d.ts.map +1 -1
- package/dist/utils/elide-middle.js +4 -19
- package/dist/utils/elide-middle.js.map +1 -1
- package/dist/utils/find-exec-error.d.ts.map +1 -1
- package/dist/utils/find-exec-error.js +4 -12
- package/dist/utils/find-exec-error.js.map +1 -1
- package/dist/utils/flush-stdio.d.ts +4 -11
- package/dist/utils/flush-stdio.d.ts.map +1 -1
- package/dist/utils/flush-stdio.js +4 -11
- package/dist/utils/flush-stdio.js.map +1 -1
- package/dist/utils/list-files-recursive.d.ts +3 -7
- package/dist/utils/list-files-recursive.d.ts.map +1 -1
- package/dist/utils/list-files-recursive.js +3 -7
- package/dist/utils/list-files-recursive.js.map +1 -1
- package/dist/utils/to-posix-path.d.ts +4 -7
- package/dist/utils/to-posix-path.d.ts.map +1 -1
- package/dist/utils/to-posix-path.js +4 -7
- package/dist/utils/to-posix-path.js.map +1 -1
- package/dist/verbose.d.ts +4 -10
- package/dist/verbose.d.ts.map +1 -1
- package/dist/verbose.js +4 -10
- package/dist/verbose.js.map +1 -1
- package/dist/verify/bundle-cli/compute-stage-suffix.d.ts +4 -11
- package/dist/verify/bundle-cli/compute-stage-suffix.d.ts.map +1 -1
- package/dist/verify/bundle-cli/compute-stage-suffix.js +4 -11
- package/dist/verify/bundle-cli/compute-stage-suffix.js.map +1 -1
- package/dist/verify/bundle-cli/index.d.ts +4 -20
- package/dist/verify/bundle-cli/index.d.ts.map +1 -1
- package/dist/verify/bundle-cli/index.js +4 -20
- package/dist/verify/bundle-cli/index.js.map +1 -1
- package/dist/verify/bundle-cli/read-python-source.d.ts +4 -12
- package/dist/verify/bundle-cli/read-python-source.d.ts.map +1 -1
- package/dist/verify/bundle-cli/read-python-source.js +4 -12
- package/dist/verify/bundle-cli/read-python-source.js.map +1 -1
- package/dist/verify/crate/find-crate-file.d.ts +2 -6
- package/dist/verify/crate/find-crate-file.d.ts.map +1 -1
- package/dist/verify/crate/find-crate-file.js +2 -6
- package/dist/verify/crate/find-crate-file.js.map +1 -1
- package/dist/verify/crate/has-crate-source.d.ts +3 -5
- package/dist/verify/crate/has-crate-source.d.ts.map +1 -1
- package/dist/verify/crate/has-crate-source.js +3 -5
- package/dist/verify/crate/has-crate-source.js.map +1 -1
- package/dist/verify/crate/index.d.ts +4 -16
- package/dist/verify/crate/index.d.ts.map +1 -1
- package/dist/verify/crate/index.js +4 -16
- package/dist/verify/crate/index.js.map +1 -1
- package/dist/verify/npm-tarball/download.d.ts +3 -9
- package/dist/verify/npm-tarball/download.d.ts.map +1 -1
- package/dist/verify/npm-tarball/download.js +3 -9
- package/dist/verify/npm-tarball/download.js.map +1 -1
- package/dist/verify/npm-tarball/index.d.ts +4 -13
- package/dist/verify/npm-tarball/index.d.ts.map +1 -1
- package/dist/verify/npm-tarball/index.js +4 -13
- package/dist/verify/npm-tarball/index.js.map +1 -1
- package/dist/verify/npm-tarball/local-dir-state.d.ts +4 -8
- package/dist/verify/npm-tarball/local-dir-state.d.ts.map +1 -1
- package/dist/verify/npm-tarball/local-dir-state.js +4 -8
- package/dist/verify/npm-tarball/local-dir-state.js.map +1 -1
- package/dist/verify/npm-tarball/main.d.ts +4 -14
- package/dist/verify/npm-tarball/main.d.ts.map +1 -1
- package/dist/verify/npm-tarball/main.js +4 -14
- package/dist/verify/npm-tarball/main.js.map +1 -1
- package/dist/verify/npm-tarball/resolve-url.d.ts +4 -11
- package/dist/verify/npm-tarball/resolve-url.d.ts.map +1 -1
- package/dist/verify/npm-tarball/resolve-url.js +4 -11
- package/dist/verify/npm-tarball/resolve-url.js.map +1 -1
- package/dist/verify/npm-tarball/triple.d.ts +4 -26
- package/dist/verify/npm-tarball/triple.d.ts.map +1 -1
- package/dist/verify/npm-tarball/triple.js +4 -26
- package/dist/verify/npm-tarball/triple.js.map +1 -1
- package/dist/verify/posture.d.ts +4 -13
- package/dist/verify/posture.d.ts.map +1 -1
- package/dist/verify/posture.js +4 -13
- package/dist/verify/posture.js.map +1 -1
- package/dist/verify/wheel/index.d.ts +4 -17
- package/dist/verify/wheel/index.d.ts.map +1 -1
- package/dist/verify/wheel/index.js +4 -17
- package/dist/verify/wheel/index.js.map +1 -1
- package/dist/verify/wheel/manylinux-tag-patterns.d.ts +4 -6
- package/dist/verify/wheel/manylinux-tag-patterns.d.ts.map +1 -1
- package/dist/verify/wheel/manylinux-tag-patterns.js +4 -6
- package/dist/verify/wheel/manylinux-tag-patterns.js.map +1 -1
- package/dist/verify/wheel/read-wheel-version.d.ts +4 -8
- package/dist/verify/wheel/read-wheel-version.d.ts.map +1 -1
- package/dist/verify/wheel/read-wheel-version.js +4 -8
- package/dist/verify/wheel/read-wheel-version.js.map +1 -1
- package/dist/verify/wheel/read-zip-entry.d.ts +3 -8
- package/dist/verify/wheel/read-zip-entry.d.ts.map +1 -1
- package/dist/verify/wheel/read-zip-entry.js +3 -8
- package/dist/verify/wheel/read-zip-entry.js.map +1 -1
- package/dist/version.d.ts +4 -12
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +4 -12
- package/dist/version.js.map +1 -1
- package/dist/wheel-abi.d.ts +5 -28
- package/dist/wheel-abi.d.ts.map +1 -1
- package/dist/wheel-abi.js +5 -28
- package/dist/wheel-abi.js.map +1 -1
- package/dist/write-crate-version.d.ts +4 -17
- package/dist/write-crate-version.d.ts.map +1 -1
- package/dist/write-crate-version.js +4 -17
- package/dist/write-crate-version.js.map +1 -1
- package/dist/write-dependent-version-reqs.d.ts +8 -43
- package/dist/write-dependent-version-reqs.d.ts.map +1 -1
- package/dist/write-dependent-version-reqs.js +8 -43
- package/dist/write-dependent-version-reqs.js.map +1 -1
- package/dist/write-embedded-crate-versions.d.ts +9 -40
- package/dist/write-embedded-crate-versions.d.ts.map +1 -1
- package/dist/write-embedded-crate-versions.js +9 -40
- package/dist/write-embedded-crate-versions.js.map +1 -1
- package/dist/write-launcher.d.ts +7 -23
- package/dist/write-launcher.d.ts.map +1 -1
- package/dist/write-launcher.js +11 -37
- package/dist/write-launcher.js.map +1 -1
- package/dist/write-resolved-cargo-version.d.ts +4 -12
- package/dist/write-resolved-cargo-version.d.ts.map +1 -1
- package/dist/write-resolved-cargo-version.js +4 -12
- package/dist/write-resolved-cargo-version.js.map +1 -1
- package/dist/write-version.d.ts +8 -29
- package/dist/write-version.d.ts.map +1 -1
- package/dist/write-version.js +8 -29
- package/dist/write-version.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gh-release-create.js","sourceRoot":"","sources":["../../src/release-github/gh-release-create.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"gh-release-create.js","sourceRoot":"","sources":["../../src/release-github/gh-release-create.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAIvD,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,GAAW,EAAE,OAAkB,EAAE;IACrE,MAAM,WAAW,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,kBAAkB,CAAC,EAAE;QACtF,GAAG,EAAE,IAAI,CAAC,GAAG;KACd,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Whether a GitHub Release already exists for `tag` (#444).
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* finds the Release present and skips creation instead of erroring. stdout
|
|
7
|
-
* and stderr are discarded (the bash step redirected them to `/dev/null`),
|
|
8
|
-
* and any error — including a genuinely missing Release — resolves to
|
|
9
|
-
* `false`, matching the bash `gh release view … >/dev/null 2>&1` condition.
|
|
2
|
+
* Whether a GitHub Release already exists for `tag` (#444). Wraps `gh release
|
|
3
|
+
* view`, whose non-zero exit on an absent Release is the idempotency guard: a
|
|
4
|
+
* re-run skips creation instead of erroring. Any error — including a genuinely
|
|
5
|
+
* missing Release — resolves to `false`.
|
|
10
6
|
*/
|
|
11
7
|
import type { GhOptions } from './types.js';
|
|
12
8
|
export declare function ghReleaseExists(tag: string, opts?: GhOptions): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gh-release-exists.d.ts","sourceRoot":"","sources":["../../src/release-github/gh-release-exists.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"gh-release-exists.d.ts","sourceRoot":"","sources":["../../src/release-github/gh-release-exists.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,SAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAOzF"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Whether a GitHub Release already exists for `tag` (#444).
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* finds the Release present and skips creation instead of erroring. stdout
|
|
7
|
-
* and stderr are discarded (the bash step redirected them to `/dev/null`),
|
|
8
|
-
* and any error — including a genuinely missing Release — resolves to
|
|
9
|
-
* `false`, matching the bash `gh release view … >/dev/null 2>&1` condition.
|
|
2
|
+
* Whether a GitHub Release already exists for `tag` (#444). Wraps `gh release
|
|
3
|
+
* view`, whose non-zero exit on an absent Release is the idempotency guard: a
|
|
4
|
+
* re-run skips creation instead of erroring. Any error — including a genuinely
|
|
5
|
+
* missing Release — resolves to `false`.
|
|
10
6
|
*/
|
|
11
7
|
import { execCapture } from '../utils/exec-capture.js';
|
|
12
8
|
export async function ghReleaseExists(tag, opts = {}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gh-release-exists.js","sourceRoot":"","sources":["../../src/release-github/gh-release-exists.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"gh-release-exists.js","sourceRoot":"","sources":["../../src/release-github/gh-release-exists.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAIvD,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,GAAW,EAAE,OAAkB,EAAE;IACrE,IAAI,CAAC;QACH,MAAM,WAAW,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -1,33 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `putitoutthere release-github` — cut a GitHub Release for each new tag on
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* step in `.github/workflows/release.yml`. The engine creates annotated
|
|
7
|
-
* git tags and publishes to PyPI / npm / crates.io but does NOT cut GitHub
|
|
8
|
-
* Releases; this backfills them so the project's /releases page tracks the
|
|
9
|
-
* tag history.
|
|
10
|
-
*
|
|
11
|
-
* The contract — previously pinned only by a YAML-text test (#437), now
|
|
12
|
-
* ordinary tested code:
|
|
13
|
-
*
|
|
14
|
-
* - **no-fetch** — never `git fetch`. Local tag state is already complete:
|
|
15
|
-
* checkout (`fetch-depth: 0`) fetched every remote tag, and the tags
|
|
16
|
-
* iterated here were created locally by the engine in this same job. A
|
|
17
|
-
* blanket `git fetch --tags` would reject any tag that moved since
|
|
18
|
-
* checkout — a consumer's floating major tag, force-moved mid-run by
|
|
19
|
-
* their promotion automation — failing the job after a fully successful
|
|
20
|
-
* publish (#436).
|
|
21
|
-
* - **ref-scoped-push** — `git push origin refs/tags/<tag>` per tag,
|
|
22
|
-
* idempotent and invisible to every other tag, completing the engine's
|
|
23
|
-
* warn-only tag push (#407) in the same run so `gh release create`
|
|
24
|
-
* always sees its tag on the remote.
|
|
25
|
-
* - **idempotent-create** — the `gh release view` guard skips a Release
|
|
26
|
-
* that already exists instead of erroring on a re-run.
|
|
27
|
-
*
|
|
28
|
-
* Returns the process exit code (always 0 on the happy path; a git/gh
|
|
29
|
-
* failure throws out of the loop and the CLI's top-level catch surfaces it
|
|
30
|
-
* as exit 1, matching the bash `set -euo pipefail`).
|
|
2
|
+
* `putitoutthere release-github` — cut a GitHub Release for each new tag on HEAD
|
|
3
|
+
* (#444, #437). Never `git fetch`: a blanket `git fetch --tags` would reject a
|
|
4
|
+
* tag moved since checkout and fail the job after a fully successful publish
|
|
5
|
+
* (#436). Pushes are ref-scoped per tag (#407); creation is idempotent.
|
|
31
6
|
*/
|
|
32
7
|
import type { ReleaseGithubOptions } from './types.js';
|
|
33
8
|
export declare function releaseGithub(opts: ReleaseGithubOptions): Promise<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/release-github/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/release-github/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,wBAAsB,aAAa,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAiB/E"}
|
|
@@ -1,33 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `putitoutthere release-github` — cut a GitHub Release for each new tag on
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* step in `.github/workflows/release.yml`. The engine creates annotated
|
|
7
|
-
* git tags and publishes to PyPI / npm / crates.io but does NOT cut GitHub
|
|
8
|
-
* Releases; this backfills them so the project's /releases page tracks the
|
|
9
|
-
* tag history.
|
|
10
|
-
*
|
|
11
|
-
* The contract — previously pinned only by a YAML-text test (#437), now
|
|
12
|
-
* ordinary tested code:
|
|
13
|
-
*
|
|
14
|
-
* - **no-fetch** — never `git fetch`. Local tag state is already complete:
|
|
15
|
-
* checkout (`fetch-depth: 0`) fetched every remote tag, and the tags
|
|
16
|
-
* iterated here were created locally by the engine in this same job. A
|
|
17
|
-
* blanket `git fetch --tags` would reject any tag that moved since
|
|
18
|
-
* checkout — a consumer's floating major tag, force-moved mid-run by
|
|
19
|
-
* their promotion automation — failing the job after a fully successful
|
|
20
|
-
* publish (#436).
|
|
21
|
-
* - **ref-scoped-push** — `git push origin refs/tags/<tag>` per tag,
|
|
22
|
-
* idempotent and invisible to every other tag, completing the engine's
|
|
23
|
-
* warn-only tag push (#407) in the same run so `gh release create`
|
|
24
|
-
* always sees its tag on the remote.
|
|
25
|
-
* - **idempotent-create** — the `gh release view` guard skips a Release
|
|
26
|
-
* that already exists instead of erroring on a re-run.
|
|
27
|
-
*
|
|
28
|
-
* Returns the process exit code (always 0 on the happy path; a git/gh
|
|
29
|
-
* failure throws out of the loop and the CLI's top-level catch surfaces it
|
|
30
|
-
* as exit 1, matching the bash `set -euo pipefail`).
|
|
2
|
+
* `putitoutthere release-github` — cut a GitHub Release for each new tag on HEAD
|
|
3
|
+
* (#444, #437). Never `git fetch`: a blanket `git fetch --tags` would reject a
|
|
4
|
+
* tag moved since checkout and fail the job after a fully successful publish
|
|
5
|
+
* (#436). Pushes are ref-scoped per tag (#407); creation is idempotent.
|
|
31
6
|
*/
|
|
32
7
|
import { pushTagRef, tagsPointingAtHead } from '../git.js';
|
|
33
8
|
import { ghReleaseCreate } from './gh-release-create.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/release-github/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/release-github/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAA0B;IAC5D,MAAM,OAAO,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;IAClC,MAAM,IAAI,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC/C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,kDAAkD,CAAC,CAAC;QACzE,OAAO,CAAC,CAAC;IACX,CAAC;IACD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAC/B,IAAI,MAAM,eAAe,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC;YACxC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,GAAG,8BAA8B,CAAC,CAAC;YAC1E,SAAS;QACX,CAAC;QACD,MAAM,eAAe,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACpC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,GAAG,IAAI,CAAC,CAAC;IAC9D,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `release_packages` manual-release spec parser
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* packages without any new code — the motivating case being a
|
|
7
|
-
* re-release after a putitoutthere bug fix, where the consumer's repo
|
|
8
|
-
* has no new commits but the packages still need to ship again.
|
|
9
|
-
*
|
|
10
|
-
* Grammar:
|
|
11
|
-
* spec = entry *( "," entry )
|
|
12
|
-
* entry = package-name [ "@" version-spec ]
|
|
13
|
-
* version-spec = "patch" | "minor" | "major" | semver
|
|
14
|
-
*
|
|
15
|
-
* A bare package name defaults to a `patch` bump. `semver` is strict
|
|
16
|
-
* `X.Y.Z` (see `version.ts`). Whitespace around entries and the comma
|
|
17
|
-
* separator is tolerated.
|
|
2
|
+
* `release_packages` manual-release spec parser — the reusable workflow's
|
|
3
|
+
* `release_packages` input, which re-releases explicitly named packages when
|
|
4
|
+
* the consumer's repo has no new commits. Grammar: comma-separated
|
|
5
|
+
* `name[@patch|minor|major|X.Y.Z]`; a bare name defaults to a `patch` bump.
|
|
18
6
|
*/
|
|
19
7
|
import type { Bump } from './types.js';
|
|
20
8
|
export interface ReleasePackagesEntry {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-packages.d.ts","sourceRoot":"","sources":["../src/release-packages.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"release-packages.d.ts","sourceRoot":"","sources":["../src/release-packages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAMD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,GAAG,SAAS,GACvB,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,GAAG,IAAI,CAiD1C"}
|
package/dist/release-packages.js
CHANGED
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `release_packages` manual-release spec parser
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* packages without any new code — the motivating case being a
|
|
7
|
-
* re-release after a putitoutthere bug fix, where the consumer's repo
|
|
8
|
-
* has no new commits but the packages still need to ship again.
|
|
9
|
-
*
|
|
10
|
-
* Grammar:
|
|
11
|
-
* spec = entry *( "," entry )
|
|
12
|
-
* entry = package-name [ "@" version-spec ]
|
|
13
|
-
* version-spec = "patch" | "minor" | "major" | semver
|
|
14
|
-
*
|
|
15
|
-
* A bare package name defaults to a `patch` bump. `semver` is strict
|
|
16
|
-
* `X.Y.Z` (see `version.ts`). Whitespace around entries and the comma
|
|
17
|
-
* separator is tolerated.
|
|
2
|
+
* `release_packages` manual-release spec parser — the reusable workflow's
|
|
3
|
+
* `release_packages` input, which re-releases explicitly named packages when
|
|
4
|
+
* the consumer's repo has no new commits. Grammar: comma-separated
|
|
5
|
+
* `name[@patch|minor|major|X.Y.Z]`; a bare name defaults to a `patch` bump.
|
|
18
6
|
*/
|
|
19
7
|
import { parseSemver } from './version.js';
|
|
20
8
|
// Same identifier shape the trailer parser and config loader accept.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-packages.js","sourceRoot":"","sources":["../src/release-packages.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"release-packages.js","sourceRoot":"","sources":["../src/release-packages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAW3C,qEAAqE;AACrE,MAAM,YAAY,GAAG,8BAA8B,CAAC;AACpD,MAAM,KAAK,GAAG,IAAI,GAAG,CAAO,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAEzD;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAClC,IAAwB;IAExB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QAAA,OAAO,IAAI,CAAC;IAAA,CAAC;IACtC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,IAAI,OAAO,KAAK,EAAE,EAAE,CAAC;QAAA,OAAO,IAAI,CAAC;IAAA,CAAC;IAElC,MAAM,GAAG,GAAG,IAAI,GAAG,EAAgC,CAAC;IACpD,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACxB,IAAI,IAAI,KAAK,EAAE,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CACb,qCAAqC,IAAI,4BAA4B,CACtE,CAAC;QACJ,CAAC;QACD,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC7B,MAAM,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAClD,MAAM,WAAW,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QAEtE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,2CAA2C,IAAI,GAAG,CAAC,CAAC;QACtE,CAAC;QACD,IAAI,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,wCAAwC,IAAI,GAAG,CAAC,CAAC;QACnE,CAAC;QAED,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;YACvC,SAAS;QACX,CAAC;QACD,IAAI,WAAW,KAAK,EAAE,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CACb,sBAAsB,IAAI,iCAAiC;gBACzD,yEAAyE,CAC5E,CAAC;QACJ,CAAC;QACD,IAAI,KAAK,CAAC,GAAG,CAAC,WAAmB,CAAC,EAAE,CAAC;YACnC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,WAAmB,EAAE,CAAC,CAAC;YACnD,SAAS;QACX,CAAC;QACD,IAAI,CAAC;YACH,WAAW,CAAC,WAAW,CAAC,CAAC;QAC3B,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,KAAK,CACb,sBAAsB,IAAI,IAAI,WAAW,2BAA2B;gBAClE,iDAAiD,CACpD,CAAC;QACJ,CAAC;QACD,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1,35 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Rewrite the `version = "..."` assignment inside a manifest's `[package]`
|
|
3
|
-
* table
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* `replaceWorkspacePackageVersion` and `replaceDepVersionReq`: re-emitting
|
|
7
|
-
* parsed TOML discards the comments and formatting of a file the consumer
|
|
8
|
-
* owns.
|
|
9
|
-
*
|
|
10
|
-
* Lives in its own module rather than inside `handlers/crates.ts` so both
|
|
11
|
-
* the crates publish path and `writeResolvedCargoVersion` can reach it
|
|
12
|
-
* without an import cycle between the handler and the resolver it now
|
|
13
|
-
* delegates to. #639.
|
|
14
|
-
*
|
|
15
|
-
* **The match is bounded to the `[package]` table.** The original expression
|
|
16
|
-
*
|
|
17
|
-
* /(\[package\][\s\S]*?)(^\s*version\s*=\s*")([^"]*)(")/m
|
|
18
|
-
*
|
|
19
|
-
* was lazy and anchored only on the `[package]` *header*, so on a manifest
|
|
20
|
-
* with no literal `[package].version` — one that inherits via
|
|
21
|
-
* `version.workspace = true` — it walked past the table boundary and matched
|
|
22
|
-
* the next `version = "..."` in the file, typically a dependency's
|
|
23
|
-
* requirement in a section table. It then rewrote that requirement to the
|
|
24
|
-
* release version, naming a release of someone else's crate that does not
|
|
25
|
-
* exist, and reported success.
|
|
26
|
-
*
|
|
27
|
-
* Callers that need to handle inheritance go through
|
|
28
|
-
* `writeResolvedCargoVersion`, which detects it first and rewrites
|
|
29
|
-
* `[workspace.package].version` at the workspace root instead. This function
|
|
30
|
-
* stays literal-only on purpose; bounding the table means it now fails loud
|
|
31
|
-
* on a manifest it cannot legitimately rewrite instead of corrupting a
|
|
32
|
-
* neighbouring field.
|
|
3
|
+
* table byte-preservingly (string surgery: re-emitting parsed TOML discards
|
|
4
|
+
* the consumer's comments). **Bounded to the `[package]` table** — an earlier
|
|
5
|
+
* lazy regex walked past it and silently rewrote a dependency's req (#639).
|
|
33
6
|
*/
|
|
34
7
|
export declare function replaceCargoVersion(source: string, version: string): string;
|
|
35
8
|
//# sourceMappingURL=replace-cargo-version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-cargo-version.d.ts","sourceRoot":"","sources":["../src/replace-cargo-version.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"replace-cargo-version.d.ts","sourceRoot":"","sources":["../src/replace-cargo-version.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAuBH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAgB3E"}
|
|
@@ -1,35 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Rewrite the `version = "..."` assignment inside a manifest's `[package]`
|
|
3
|
-
* table
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* `replaceWorkspacePackageVersion` and `replaceDepVersionReq`: re-emitting
|
|
7
|
-
* parsed TOML discards the comments and formatting of a file the consumer
|
|
8
|
-
* owns.
|
|
9
|
-
*
|
|
10
|
-
* Lives in its own module rather than inside `handlers/crates.ts` so both
|
|
11
|
-
* the crates publish path and `writeResolvedCargoVersion` can reach it
|
|
12
|
-
* without an import cycle between the handler and the resolver it now
|
|
13
|
-
* delegates to. #639.
|
|
14
|
-
*
|
|
15
|
-
* **The match is bounded to the `[package]` table.** The original expression
|
|
16
|
-
*
|
|
17
|
-
* /(\[package\][\s\S]*?)(^\s*version\s*=\s*")([^"]*)(")/m
|
|
18
|
-
*
|
|
19
|
-
* was lazy and anchored only on the `[package]` *header*, so on a manifest
|
|
20
|
-
* with no literal `[package].version` — one that inherits via
|
|
21
|
-
* `version.workspace = true` — it walked past the table boundary and matched
|
|
22
|
-
* the next `version = "..."` in the file, typically a dependency's
|
|
23
|
-
* requirement in a section table. It then rewrote that requirement to the
|
|
24
|
-
* release version, naming a release of someone else's crate that does not
|
|
25
|
-
* exist, and reported success.
|
|
26
|
-
*
|
|
27
|
-
* Callers that need to handle inheritance go through
|
|
28
|
-
* `writeResolvedCargoVersion`, which detects it first and rewrites
|
|
29
|
-
* `[workspace.package].version` at the workspace root instead. This function
|
|
30
|
-
* stays literal-only on purpose; bounding the table means it now fails loud
|
|
31
|
-
* on a manifest it cannot legitimately rewrite instead of corrupting a
|
|
32
|
-
* neighbouring field.
|
|
3
|
+
* table byte-preservingly (string surgery: re-emitting parsed TOML discards
|
|
4
|
+
* the consumer's comments). **Bounded to the `[package]` table** — an earlier
|
|
5
|
+
* lazy regex walked past it and silently rewrote a dependency's req (#639).
|
|
33
6
|
*/
|
|
34
7
|
/**
|
|
35
8
|
* The `[package]` table's body: its header line, then every following line
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-cargo-version.js","sourceRoot":"","sources":["../src/replace-cargo-version.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"replace-cargo-version.js","sourceRoot":"","sources":["../src/replace-cargo-version.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;GASG;AACH,MAAM,aAAa,GAAG,kDAAkD,CAAC;AAEzE;;;;GAIG;AACH,MAAM,YAAY,GAAG,uCAAuC,CAAC;AAE7D,MAAM,UAAU,GAAG,8CAA8C,CAAC;AAElE,MAAM,UAAU,mBAAmB,CAAC,MAAc,EAAE,OAAe;IACjE,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAAA,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC;IAAA,CAAC;IAClD,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAW,CAAC;IAEhC,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAAA,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC;IAAA,CAAC;IACjD,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAW,CAAC;IAE9B,2EAA2E;IAC3E,2EAA2E;IAC3E,wEAAwE;IACxE,2EAA2E;IAC3E,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC9D,MAAM,UAAU,GAAG,SAAS,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;IAC5E,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,GAAG,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;AACvF,CAAC"}
|
|
@@ -1,39 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Rewrite the `version = "…"` requirement on a **path** dependency,
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* error: failed to select a version for the requirement `demo-core = "^0.2"`
|
|
9
|
-
* candidate versions found which didn't match: 0.4.2
|
|
10
|
-
*
|
|
11
|
-
* That is a hard failure (exit 101) before anything compiles, and a
|
|
12
|
-
* `version` key alongside `path` is *mandatory* for any crate that also
|
|
13
|
-
* publishes to crates.io — so the shape that needs this is exactly the
|
|
14
|
-
* shape polyglot repos have.
|
|
15
|
-
*
|
|
16
|
-
* String surgery rather than a TOML round-trip, matching
|
|
17
|
-
* `replaceCargoVersion` and `replaceWorkspacePackageVersion`: re-emitting
|
|
18
|
-
* parsed TOML discards comments and formatting from a file the consumer
|
|
19
|
-
* owns.
|
|
20
|
-
*
|
|
21
|
-
* Only entries that also carry a `path` key are touched. A registry
|
|
22
|
-
* dependency that happens to share the key name keeps its requirement —
|
|
23
|
-
* rewriting pyo3's `0.22` to the release version would pin a version that
|
|
24
|
-
* does not exist.
|
|
2
|
+
* Rewrite the `version = "…"` requirement on a **path** dependency, preserving
|
|
3
|
+
* the rest of the manifest byte-for-byte (#621). A stale requirement stops cargo
|
|
4
|
+
* dead at exit 101 — "failed to select a version for the requirement
|
|
5
|
+
* demo-core = ^0.2". Only path-carrying entries are touched: rewriting pyo3's
|
|
6
|
+
* `0.22` would pin a version that does not exist.
|
|
25
7
|
*/
|
|
26
8
|
/**
|
|
27
9
|
* Rewrite every `version` requirement declared for `depKey` **that also
|
|
28
|
-
* declares a `path`**, in either
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* - section table — `[dependencies.demo-core]` / `path` / `version`
|
|
32
|
-
*
|
|
33
|
-
* Both forms are scanned across the whole manifest, so a dependency
|
|
34
|
-
* declared in several tables (normal plus dev, plus a `cfg`-gated one)
|
|
35
|
-
* has every occurrence rewritten. Returns the source unchanged when the
|
|
36
|
-
* key declares no path-plus-version entry.
|
|
10
|
+
* declares a `path`**, in either syntax — inline table
|
|
11
|
+
* (`demo-core = { path = "../core", version = "0.2" }`) or section table
|
|
12
|
+
* (`[dependencies.demo-core]`) — across every table in the manifest.
|
|
37
13
|
*/
|
|
38
14
|
export declare function replaceDepVersionReq(source: string, depKey: string, version: string): string;
|
|
39
15
|
//# sourceMappingURL=replace-dep-version-req.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-dep-version-req.d.ts","sourceRoot":"","sources":["../src/replace-dep-version-req.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"replace-dep-version-req.d.ts","sourceRoot":"","sources":["../src/replace-dep-version-req.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAG5F"}
|
|
@@ -1,27 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Rewrite the `version = "…"` requirement on a **path** dependency,
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* error: failed to select a version for the requirement `demo-core = "^0.2"`
|
|
9
|
-
* candidate versions found which didn't match: 0.4.2
|
|
10
|
-
*
|
|
11
|
-
* That is a hard failure (exit 101) before anything compiles, and a
|
|
12
|
-
* `version` key alongside `path` is *mandatory* for any crate that also
|
|
13
|
-
* publishes to crates.io — so the shape that needs this is exactly the
|
|
14
|
-
* shape polyglot repos have.
|
|
15
|
-
*
|
|
16
|
-
* String surgery rather than a TOML round-trip, matching
|
|
17
|
-
* `replaceCargoVersion` and `replaceWorkspacePackageVersion`: re-emitting
|
|
18
|
-
* parsed TOML discards comments and formatting from a file the consumer
|
|
19
|
-
* owns.
|
|
20
|
-
*
|
|
21
|
-
* Only entries that also carry a `path` key are touched. A registry
|
|
22
|
-
* dependency that happens to share the key name keeps its requirement —
|
|
23
|
-
* rewriting pyo3's `0.22` to the release version would pin a version that
|
|
24
|
-
* does not exist.
|
|
2
|
+
* Rewrite the `version = "…"` requirement on a **path** dependency, preserving
|
|
3
|
+
* the rest of the manifest byte-for-byte (#621). A stale requirement stops cargo
|
|
4
|
+
* dead at exit 101 — "failed to select a version for the requirement
|
|
5
|
+
* demo-core = ^0.2". Only path-carrying entries are touched: rewriting pyo3's
|
|
6
|
+
* `0.22` would pin a version that does not exist.
|
|
25
7
|
*/
|
|
26
8
|
/** Escape a dependency key for literal use inside a RegExp. */
|
|
27
9
|
function escapeRe(s) {
|
|
@@ -29,15 +11,9 @@ function escapeRe(s) {
|
|
|
29
11
|
}
|
|
30
12
|
/**
|
|
31
13
|
* Rewrite every `version` requirement declared for `depKey` **that also
|
|
32
|
-
* declares a `path`**, in either
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* - section table — `[dependencies.demo-core]` / `path` / `version`
|
|
36
|
-
*
|
|
37
|
-
* Both forms are scanned across the whole manifest, so a dependency
|
|
38
|
-
* declared in several tables (normal plus dev, plus a `cfg`-gated one)
|
|
39
|
-
* has every occurrence rewritten. Returns the source unchanged when the
|
|
40
|
-
* key declares no path-plus-version entry.
|
|
14
|
+
* declares a `path`**, in either syntax — inline table
|
|
15
|
+
* (`demo-core = { path = "../core", version = "0.2" }`) or section table
|
|
16
|
+
* (`[dependencies.demo-core]`) — across every table in the manifest.
|
|
41
17
|
*/
|
|
42
18
|
export function replaceDepVersionReq(source, depKey, version) {
|
|
43
19
|
const key = escapeRe(depKey);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-dep-version-req.js","sourceRoot":"","sources":["../src/replace-dep-version-req.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"replace-dep-version-req.js","sourceRoot":"","sources":["../src/replace-dep-version-req.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,+DAA+D;AAC/D,SAAS,QAAQ,CAAC,CAAS;IACzB,OAAO,CAAC,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;AAClD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAAc,EAAE,MAAc,EAAE,OAAe;IAClF,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7B,OAAO,sBAAsB,CAAC,uBAAuB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;AAC7F,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,uBAAuB,CAAC,MAAc,EAAE,GAAW,EAAE,OAAe;IAC3E,MAAM,OAAO,GAAG,IAAI,MAAM,CACxB,iCAAiC,GAAG,8CAA8C,EAClF,IAAI,CACL,CAAC;IACF,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAc,EAAE,IAAY,EAAE,EAAE,CACrE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CACrE,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,sBAAsB,CAAC,MAAc,EAAE,GAAW,EAAE,OAAe;IAC1E,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,aAAa,GAAG,8BAA8B,EAAE,IAAI,CAAC,CAAC;IAC/E,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,KAAa,EAAE,EAAE,CAC7C,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAC9D,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,YAAY,CAAC,OAAe,EAAE,OAAe;IACpD,OAAO,OAAO,CAAC,OAAO,CAAC,qCAAqC,EAAE,KAAK,OAAO,IAAI,CAAC,CAAC;AAClF,CAAC"}
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Absolute paths rendered the way `git status --porcelain` renders them:
|
|
3
|
-
* relative to the
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* against porcelain output, and porcelain names every file relative to the
|
|
7
|
-
* repo root with forward slashes on every platform. Comparing an absolute,
|
|
8
|
-
* platform-separated path against that never matches, so the conversion has
|
|
9
|
-
* to happen first — and it happens for three different sets of paths (the
|
|
10
|
-
* manifests `writeVersion` wrote, the sibling package directories, the
|
|
11
|
-
* artifacts root), which is why it lives here rather than inline three times.
|
|
12
|
-
*
|
|
13
|
-
* Paths that do not sit under `cwd` are dropped rather than returned in
|
|
14
|
-
* `../…` form: porcelain can never name a file outside the repository, so
|
|
15
|
-
* such an entry could only ever fail to match, and keeping it would suggest
|
|
16
|
-
* to a reader that it might match something.
|
|
3
|
+
* relative to the repo root, forward-slashed on every platform (#639). Paths
|
|
4
|
+
* outside `cwd` are dropped rather than returned in `../…` form — porcelain
|
|
5
|
+
* can never name a file outside the repo, so they could only fail to match.
|
|
17
6
|
*/
|
|
18
7
|
/** Windows separators to the forward slashes git and this repo speak in. */
|
|
19
8
|
export declare function toPosixPath(p: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-relative-paths.d.ts","sourceRoot":"","sources":["../src/repo-relative-paths.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"repo-relative-paths.d.ts","sourceRoot":"","sources":["../src/repo-relative-paths.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,4EAA4E;AAC5E,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GACnC,MAAM,EAAE,CAQV"}
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Absolute paths rendered the way `git status --porcelain` renders them:
|
|
3
|
-
* relative to the
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* against porcelain output, and porcelain names every file relative to the
|
|
7
|
-
* repo root with forward slashes on every platform. Comparing an absolute,
|
|
8
|
-
* platform-separated path against that never matches, so the conversion has
|
|
9
|
-
* to happen first — and it happens for three different sets of paths (the
|
|
10
|
-
* manifests `writeVersion` wrote, the sibling package directories, the
|
|
11
|
-
* artifacts root), which is why it lives here rather than inline three times.
|
|
12
|
-
*
|
|
13
|
-
* Paths that do not sit under `cwd` are dropped rather than returned in
|
|
14
|
-
* `../…` form: porcelain can never name a file outside the repository, so
|
|
15
|
-
* such an entry could only ever fail to match, and keeping it would suggest
|
|
16
|
-
* to a reader that it might match something.
|
|
3
|
+
* relative to the repo root, forward-slashed on every platform (#639). Paths
|
|
4
|
+
* outside `cwd` are dropped rather than returned in `../…` form — porcelain
|
|
5
|
+
* can never name a file outside the repo, so they could only fail to match.
|
|
17
6
|
*/
|
|
18
7
|
import { relative } from 'node:path';
|
|
19
8
|
/** Windows separators to the forward slashes git and this repo speak in. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-relative-paths.js","sourceRoot":"","sources":["../src/repo-relative-paths.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"repo-relative-paths.js","sourceRoot":"","sources":["../src/repo-relative-paths.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,4EAA4E;AAC5E,MAAM,UAAU,WAAW,CAAC,CAAS;IACnC,OAAO,CAAC,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAC/B,GAAW,EACX,KAAoC;IAEpC,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,KAAK,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE,EAAE,CAAC;QAC5B,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAC7B,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YAAA,SAAS;QAAA,CAAC;QACnD,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `putitoutthere resolve` (#683): willfire's callback map for the e2e
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* fixture
|
|
6
|
-
* `fixture-matrix` core in `@putitoutthere/ci` (#670) — no parallel
|
|
7
|
-
* plan logic here, per design-commitments.md non-goal 7. The core is a
|
|
8
|
-
* private workspace package, so the map is only answerable from a
|
|
9
|
-
* checkout of this repo — which is also the only checkout defining the
|
|
10
|
-
* workflow the key names.
|
|
2
|
+
* `putitoutthere resolve` (#683): willfire's callback map for the e2e plan job.
|
|
3
|
+
* One JSON line on stdout, keyed per the frozen thekevinscott/willfire#153
|
|
4
|
+
* format, one entry per fixture directory. Matrix computation is delegated to
|
|
5
|
+
* `fixture-matrix` in `@putitoutthere/ci` (#670) — no parallel plan logic here.
|
|
11
6
|
*/
|
|
12
7
|
export declare function runResolve(opts: {
|
|
13
8
|
cwd: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-resolve.d.ts","sourceRoot":"","sources":["../../src/resolve/run-resolve.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"run-resolve.d.ts","sourceRoot":"","sources":["../../src/resolve/run-resolve.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,wBAAsB,UAAU,CAAC,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAkCvE"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `putitoutthere resolve` (#683): willfire's callback map for the e2e
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* fixture
|
|
6
|
-
* `fixture-matrix` core in `@putitoutthere/ci` (#670) — no parallel
|
|
7
|
-
* plan logic here, per design-commitments.md non-goal 7. The core is a
|
|
8
|
-
* private workspace package, so the map is only answerable from a
|
|
9
|
-
* checkout of this repo — which is also the only checkout defining the
|
|
10
|
-
* workflow the key names.
|
|
2
|
+
* `putitoutthere resolve` (#683): willfire's callback map for the e2e plan job.
|
|
3
|
+
* One JSON line on stdout, keyed per the frozen thekevinscott/willfire#153
|
|
4
|
+
* format, one entry per fixture directory. Matrix computation is delegated to
|
|
5
|
+
* `fixture-matrix` in `@putitoutthere/ci` (#670) — no parallel plan logic here.
|
|
11
6
|
*/
|
|
12
7
|
import { readdir } from 'node:fs/promises';
|
|
13
8
|
import { join } from 'node:path';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-resolve.js","sourceRoot":"","sources":["../../src/resolve/run-resolve.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"run-resolve.js","sourceRoot":"","sources":["../../src/resolve/run-resolve.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,GAAG,MAAM,oBAAoB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAG3D,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,IAAqB;IACpD,qEAAqE;IACrE,mEAAmE;IACnE,iBAAiB;IACjB,MAAM,aAAa,GAAG,uCAAuC,CAAC;IAC9D,MAAM,MAAM,GAAG,MAAM,CAAC;IACtB,MAAM,YAAY,GAAG,gCAAgC,CAAC;IACtD,MAAM,WAAW,GAAG,CAAC,cAAc,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;IACnF,IAAI,CAAC,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACrE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B,OAAO,CAAC,CAAC;IACX,CAAC;IACD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAChE,IAAI,CAAC,CAAC,MAAM,UAAU,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,KAAK,CAAC,qCAAqC,YAAY,EAAE,CAAC,CAAC;IACvE,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,YAAY,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IACrE,MAAM,QAAQ,GAAG,OAAO;SACrB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;SACtC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;SAC1B,IAAI,EAAE,CAAC;IACV,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,WAAW,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAsB,EAAE,CAAC;IACxC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,WAAW,CAClC,OAAO,CAAC,QAAQ,EAChB,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC,EACpC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAClB,CAAC;QACF,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACxD,CAAC;IACD,MAAM,GAAG,GAAG,GAAG,yBAAyB,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,aAAa,IAAI,MAAM,EAAE,CAAC;IAC1F,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC9E,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Resolve a manifest's dependency entries to the
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* missing either one silently drops a crate from the version rewrite:
|
|
7
|
-
*
|
|
8
|
-
* - a member may defer to the workspace (`demo-core.workspace = true`),
|
|
9
|
-
* which puts both the `path` and the version requirement in the
|
|
10
|
-
* workspace root's `[workspace.dependencies]`, a different file;
|
|
11
|
-
* - `path` is relative to the *declaring manifest's* directory, and for
|
|
12
|
-
* an inherited entry that is the workspace root, not the member.
|
|
13
|
-
*
|
|
14
|
-
* Shared by the discovery walk and the requirement rewrite so the two can
|
|
15
|
-
* never disagree about which crates are in scope.
|
|
2
|
+
* Resolve a manifest's dependency entries to the directories they point at
|
|
3
|
+
* (#621). Two indirections, either silently dropping a crate: `.workspace = true`
|
|
4
|
+
* moves both `path` and the requirement into the root's `[workspace.dependencies]`,
|
|
5
|
+
* and `path` is relative to the *declaring* manifest's dir — the root, if inherited.
|
|
16
6
|
*/
|
|
17
7
|
/** A dependency entry that resolves to a directory on disk. */
|
|
18
8
|
export interface ResolvedDepDir {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-dep-dirs.d.ts","sourceRoot":"","sources":["../src/resolve-dep-dirs.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"resolve-dep-dirs.d.ts","sourceRoot":"","sources":["../src/resolve-dep-dirs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,+DAA+D;AAC/D,MAAM,WAAW,cAAc;IAC7B,qEAAqE;IACrE,GAAG,EAAE,MAAM,CAAC;IACZ,kDAAkD;IAClD,GAAG,EAAE,MAAM,CAAC;IACZ,iEAAiE;IACjE,aAAa,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,OAAO,EACxB,aAAa,EAAE,MAAM,GAAG,IAAI,GAC3B,cAAc,EAAE,CA+BlB"}
|
package/dist/resolve-dep-dirs.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Resolve a manifest's dependency entries to the
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* missing either one silently drops a crate from the version rewrite:
|
|
7
|
-
*
|
|
8
|
-
* - a member may defer to the workspace (`demo-core.workspace = true`),
|
|
9
|
-
* which puts both the `path` and the version requirement in the
|
|
10
|
-
* workspace root's `[workspace.dependencies]`, a different file;
|
|
11
|
-
* - `path` is relative to the *declaring manifest's* directory, and for
|
|
12
|
-
* an inherited entry that is the workspace root, not the member.
|
|
13
|
-
*
|
|
14
|
-
* Shared by the discovery walk and the requirement rewrite so the two can
|
|
15
|
-
* never disagree about which crates are in scope.
|
|
2
|
+
* Resolve a manifest's dependency entries to the directories they point at
|
|
3
|
+
* (#621). Two indirections, either silently dropping a crate: `.workspace = true`
|
|
4
|
+
* moves both `path` and the requirement into the root's `[workspace.dependencies]`,
|
|
5
|
+
* and `path` is relative to the *declaring* manifest's dir — the root, if inherited.
|
|
16
6
|
*/
|
|
17
7
|
import { isAbsolute, resolve } from 'node:path';
|
|
18
8
|
import { cargoDepEntries } from './cargo-dep-entries.js';
|