putitoutthere 0.2.67 → 0.2.69
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.js +2 -1
- package/dist/action.js.map +1 -1
- package/dist/advance-floating-major.d.ts +1 -2
- package/dist/advance-floating-major.d.ts.map +1 -1
- package/dist/advance-floating-major.js +8 -9
- package/dist/advance-floating-major.js.map +1 -1
- package/dist/advance-v0.d.ts +3 -4
- package/dist/advance-v0.d.ts.map +1 -1
- package/dist/advance-v0.js +5 -6
- package/dist/advance-v0.js.map +1 -1
- package/dist/cascade.d.ts.map +1 -1
- package/dist/cascade.js +2 -1
- package/dist/cascade.js.map +1 -1
- package/dist/check-crate-size.d.ts +1 -1
- package/dist/check-crate-size.d.ts.map +1 -1
- package/dist/check-crate-size.js +22 -13
- package/dist/check-crate-size.js.map +1 -1
- package/dist/check.d.ts +1 -1
- package/dist/check.d.ts.map +1 -1
- package/dist/check.js +69 -61
- package/dist/check.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +15 -15
- package/dist/cli.js.map +1 -1
- package/dist/completeness.d.ts +3 -2
- package/dist/completeness.d.ts.map +1 -1
- package/dist/completeness.js +14 -13
- package/dist/completeness.js.map +1 -1
- package/dist/config.d.ts +4 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +5 -5
- package/dist/config.js.map +1 -1
- package/dist/ensure-tag.d.ts +1 -1
- package/dist/ensure-tag.d.ts.map +1 -1
- package/dist/ensure-tag.js +4 -4
- package/dist/ensure-tag.js.map +1 -1
- package/dist/find-workspace-root.d.ts +1 -1
- package/dist/find-workspace-root.d.ts.map +1 -1
- package/dist/find-workspace-root.js +3 -3
- package/dist/find-workspace-root.js.map +1 -1
- package/dist/fold-action-bundle.d.ts +1 -1
- package/dist/fold-action-bundle.d.ts.map +1 -1
- package/dist/fold-action-bundle.js +5 -5
- package/dist/fold-action-bundle.js.map +1 -1
- package/dist/force-move-tag.d.ts +1 -1
- package/dist/force-move-tag.d.ts.map +1 -1
- package/dist/force-move-tag.js +3 -3
- package/dist/force-move-tag.js.map +1 -1
- package/dist/git.d.ts +19 -21
- package/dist/git.d.ts.map +1 -1
- package/dist/git.js +44 -49
- package/dist/git.js.map +1 -1
- package/dist/glob.d.ts +1 -1
- package/dist/glob.d.ts.map +1 -1
- package/dist/glob.js +17 -7
- package/dist/glob.js.map +1 -1
- package/dist/handlers/crates.d.ts +2 -1
- package/dist/handlers/crates.d.ts.map +1 -1
- package/dist/handlers/crates.js +35 -36
- package/dist/handlers/crates.js.map +1 -1
- package/dist/handlers/npm-platform.d.ts +1 -0
- package/dist/handlers/npm-platform.d.ts.map +1 -1
- package/dist/handlers/npm-platform.js +39 -41
- package/dist/handlers/npm-platform.js.map +1 -1
- package/dist/handlers/npm.d.ts.map +1 -1
- package/dist/handlers/npm.js +30 -23
- package/dist/handlers/npm.js.map +1 -1
- package/dist/handlers/pypi.js +17 -12
- package/dist/handlers/pypi.js.map +1 -1
- package/dist/normalize-artifacts.d.ts +1 -1
- package/dist/normalize-artifacts.d.ts.map +1 -1
- package/dist/normalize-artifacts.js +8 -7
- package/dist/normalize-artifacts.js.map +1 -1
- package/dist/plan-status.js +1 -1
- package/dist/plan-status.js.map +1 -1
- package/dist/plan.d.ts.map +1 -1
- package/dist/plan.js +29 -27
- package/dist/plan.js.map +1 -1
- package/dist/preflight.d.ts +14 -14
- package/dist/preflight.d.ts.map +1 -1
- package/dist/preflight.js +56 -56
- package/dist/preflight.js.map +1 -1
- package/dist/publish.d.ts.map +1 -1
- package/dist/publish.js +25 -17
- package/dist/publish.js.map +1 -1
- package/dist/python-versions.d.ts +1 -1
- package/dist/python-versions.d.ts.map +1 -1
- package/dist/python-versions.js +5 -5
- package/dist/python-versions.js.map +1 -1
- package/dist/reconcile.js +3 -3
- package/dist/reconcile.js.map +1 -1
- package/dist/release-github/gh-release-create.d.ts +1 -1
- package/dist/release-github/gh-release-create.d.ts.map +1 -1
- package/dist/release-github/gh-release-create.js +3 -4
- package/dist/release-github/gh-release-create.js.map +1 -1
- package/dist/release-github/gh-release-exists.d.ts +1 -1
- package/dist/release-github/gh-release-exists.d.ts.map +1 -1
- package/dist/release-github/gh-release-exists.js +3 -3
- package/dist/release-github/gh-release-exists.js.map +1 -1
- package/dist/release-github/index.d.ts +4 -5
- package/dist/release-github/index.d.ts.map +1 -1
- package/dist/release-github/index.js +8 -9
- package/dist/release-github/index.js.map +1 -1
- package/dist/resolve-tag-commit.d.ts +2 -2
- package/dist/resolve-tag-commit.d.ts.map +1 -1
- package/dist/resolve-tag-commit.js +4 -4
- package/dist/resolve-tag-commit.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/status.js.map +1 -1
- package/dist/trailer.d.ts +1 -0
- package/dist/trailer.d.ts.map +1 -1
- package/dist/trailer.js +1 -1
- package/dist/trailer.js.map +1 -1
- package/dist/utils/exec-capture.d.ts +20 -0
- package/dist/utils/exec-capture.d.ts.map +1 -0
- package/dist/utils/exec-capture.js +25 -0
- package/dist/utils/exec-capture.js.map +1 -0
- package/dist/utils/exec-error.d.ts +16 -0
- package/dist/utils/exec-error.d.ts.map +1 -0
- package/dist/utils/exec-error.js +21 -0
- package/dist/utils/exec-error.js.map +1 -0
- package/dist/utils/exec-inherit.d.ts +13 -0
- package/dist/utils/exec-inherit.d.ts.map +1 -0
- package/dist/utils/exec-inherit.js +25 -0
- package/dist/utils/exec-inherit.js.map +1 -0
- package/dist/utils/list-files-recursive.d.ts +2 -2
- package/dist/utils/list-files-recursive.d.ts.map +1 -1
- package/dist/utils/list-files-recursive.js +7 -6
- package/dist/utils/list-files-recursive.js.map +1 -1
- package/dist/utils/path-exists.d.ts +3 -0
- package/dist/utils/path-exists.d.ts.map +1 -0
- package/dist/utils/path-exists.js +12 -0
- package/dist/utils/path-exists.js.map +1 -0
- package/dist/utils/sleep.d.ts +3 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +5 -0
- package/dist/utils/sleep.js.map +1 -0
- package/dist/verbose.d.ts +1 -1
- package/dist/verbose.d.ts.map +1 -1
- package/dist/verbose.js +5 -5
- package/dist/verbose.js.map +1 -1
- package/dist/verify/bundle-cli/index.d.ts +2 -2
- package/dist/verify/bundle-cli/index.d.ts.map +1 -1
- package/dist/verify/bundle-cli/index.js +6 -6
- package/dist/verify/bundle-cli/index.js.map +1 -1
- package/dist/verify/bundle-cli/read-python-source.d.ts +1 -1
- package/dist/verify/bundle-cli/read-python-source.d.ts.map +1 -1
- package/dist/verify/bundle-cli/read-python-source.js +5 -4
- package/dist/verify/bundle-cli/read-python-source.js.map +1 -1
- package/dist/verify/crate/extract-crate.d.ts +1 -1
- package/dist/verify/crate/extract-crate.d.ts.map +1 -1
- package/dist/verify/crate/extract-crate.js +5 -5
- package/dist/verify/crate/extract-crate.js.map +1 -1
- package/dist/verify/crate/find-crate-file.d.ts +1 -1
- package/dist/verify/crate/find-crate-file.d.ts.map +1 -1
- package/dist/verify/crate/find-crate-file.js +4 -4
- package/dist/verify/crate/find-crate-file.js.map +1 -1
- package/dist/verify/crate/has-crate-source.d.ts +1 -1
- package/dist/verify/crate/has-crate-source.d.ts.map +1 -1
- package/dist/verify/crate/has-crate-source.js +2 -2
- package/dist/verify/crate/has-crate-source.js.map +1 -1
- package/dist/verify/crate/index.d.ts +2 -2
- package/dist/verify/crate/index.d.ts.map +1 -1
- package/dist/verify/crate/index.js +8 -8
- package/dist/verify/crate/index.js.map +1 -1
- package/dist/verify/npm-tarball/download.d.ts +2 -2
- package/dist/verify/npm-tarball/download.d.ts.map +1 -1
- package/dist/verify/npm-tarball/download.js +7 -7
- package/dist/verify/npm-tarball/download.js.map +1 -1
- package/dist/verify/npm-tarball/local-dir-state.d.ts +1 -1
- package/dist/verify/npm-tarball/local-dir-state.d.ts.map +1 -1
- package/dist/verify/npm-tarball/local-dir-state.js +5 -4
- package/dist/verify/npm-tarball/local-dir-state.js.map +1 -1
- package/dist/verify/npm-tarball/main.d.ts.map +1 -1
- package/dist/verify/npm-tarball/main.js +8 -7
- package/dist/verify/npm-tarball/main.js.map +1 -1
- package/dist/verify/npm-tarball/resolve-url.js +4 -4
- package/dist/verify/npm-tarball/resolve-url.js.map +1 -1
- package/dist/verify/npm-tarball/triple.js +5 -5
- package/dist/verify/npm-tarball/triple.js.map +1 -1
- package/dist/verify/posture.js +1 -1
- package/dist/verify/posture.js.map +1 -1
- package/dist/verify/wheel/find-dist-file.d.ts +1 -1
- package/dist/verify/wheel/find-dist-file.d.ts.map +1 -1
- package/dist/verify/wheel/find-dist-file.js +6 -5
- package/dist/verify/wheel/find-dist-file.js.map +1 -1
- package/dist/verify/wheel/index.d.ts +2 -2
- package/dist/verify/wheel/index.d.ts.map +1 -1
- package/dist/verify/wheel/index.js +8 -7
- package/dist/verify/wheel/index.js.map +1 -1
- package/dist/verify/wheel/read-wheel-version.d.ts +1 -1
- package/dist/verify/wheel/read-wheel-version.d.ts.map +1 -1
- package/dist/verify/wheel/read-wheel-version.js +3 -3
- package/dist/verify/wheel/read-wheel-version.js.map +1 -1
- package/dist/wheel-abi.d.ts +2 -2
- package/dist/wheel-abi.d.ts.map +1 -1
- package/dist/wheel-abi.js +9 -7
- package/dist/wheel-abi.js.map +1 -1
- package/dist/write-crate-version.d.ts +1 -1
- package/dist/write-crate-version.d.ts.map +1 -1
- package/dist/write-crate-version.js +4 -4
- package/dist/write-crate-version.js.map +1 -1
- package/dist/write-launcher.d.ts +2 -2
- package/dist/write-launcher.d.ts.map +1 -1
- package/dist/write-launcher.js +9 -9
- package/dist/write-launcher.js.map +1 -1
- package/dist/write-resolved-cargo-version.d.ts +1 -1
- package/dist/write-resolved-cargo-version.d.ts.map +1 -1
- package/dist/write-resolved-cargo-version.js +6 -6
- package/dist/write-resolved-cargo-version.js.map +1 -1
- package/dist/write-version.d.ts +1 -1
- package/dist/write-version.d.ts.map +1 -1
- package/dist/write-version.js +7 -5
- package/dist/write-version.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import { dirname, join } from 'node:path';
|
|
3
3
|
import { parse as parseToml } from 'smol-toml';
|
|
4
4
|
/**
|
|
@@ -12,12 +12,12 @@ import { parse as parseToml } from 'smol-toml';
|
|
|
12
12
|
* version-write path. A malformed ancestor Cargo.toml is not treated as
|
|
13
13
|
* the workspace root; the walk continues past it.
|
|
14
14
|
*/
|
|
15
|
-
export function findWorkspaceRoot(startDir) {
|
|
15
|
+
export async function findWorkspaceRoot(startDir) {
|
|
16
16
|
let dir = startDir;
|
|
17
17
|
for (;;) {
|
|
18
18
|
let source = '';
|
|
19
19
|
try {
|
|
20
|
-
source =
|
|
20
|
+
source = await readFile(join(dir, 'Cargo.toml'), 'utf8');
|
|
21
21
|
}
|
|
22
22
|
catch (err) {
|
|
23
23
|
if (err.code !== 'ENOENT') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-workspace-root.js","sourceRoot":"","sources":["../src/find-workspace-root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"find-workspace-root.js","sourceRoot":"","sources":["../src/find-workspace-root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC;AAE/C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,QAAgB;IACtD,IAAI,GAAG,GAAG,QAAQ,CAAC;IACnB,SAAS,CAAC;QACR,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC;YACH,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC;QAC3D,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAK,GAA6B,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACrD,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC;QACD,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,MAAe,CAAC;YACpB,IAAI,CAAC;gBACH,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;YAC7B,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,GAAG,SAAS,CAAC;YACrB,CAAC;YACD,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,WAAW,IAAI,MAAM,EAAE,CAAC;gBAClE,OAAO,GAAG,CAAC;YACb,CAAC;QACH,CAAC;QACD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,MAAM,KAAK,GAAG,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,GAAG,GAAG,MAAM,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fold-action-bundle.d.ts","sourceRoot":"","sources":["../src/fold-action-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,
|
|
1
|
+
{"version":3,"file":"fold-action-bundle.d.ts","sourceRoot":"","sources":["../src/fold-action-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAW9F"}
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
* `git diff --cached --quiet` guard).
|
|
22
22
|
*/
|
|
23
23
|
import { addForce, commitBody, commitWithBody, hasStagedChanges } from './git.js';
|
|
24
|
-
export function foldActionBundle(opts) {
|
|
24
|
+
export async function foldActionBundle(opts) {
|
|
25
25
|
const gitOpts = { cwd: opts.cwd };
|
|
26
|
-
addForce('dist-action/', gitOpts);
|
|
27
|
-
if (!hasStagedChanges(gitOpts)) {
|
|
26
|
+
await addForce('dist-action/', gitOpts);
|
|
27
|
+
if (!(await hasStagedChanges(gitOpts))) {
|
|
28
28
|
throw new Error('No bundle changes to commit (unexpected — build:action should have produced output).');
|
|
29
29
|
}
|
|
30
|
-
const parentBody = commitBody('HEAD', gitOpts);
|
|
31
|
-
commitWithBody(opts.subject, parentBody, gitOpts);
|
|
30
|
+
const parentBody = await commitBody('HEAD', gitOpts);
|
|
31
|
+
await commitWithBody(opts.subject, parentBody, gitOpts);
|
|
32
32
|
return 0;
|
|
33
33
|
}
|
|
34
34
|
//# sourceMappingURL=fold-action-bundle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fold-action-bundle.js","sourceRoot":"","sources":["../src/fold-action-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElF,MAAM,UAAU,gBAAgB,CAAC,IAAsC;
|
|
1
|
+
{"version":3,"file":"fold-action-bundle.js","sourceRoot":"","sources":["../src/fold-action-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElF,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,IAAsC;IAC3E,MAAM,OAAO,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC;IAClC,MAAM,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACxC,IAAI,CAAC,CAAC,MAAM,gBAAgB,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,KAAK,CACb,sFAAsF,CACvF,CAAC;IACJ,CAAC;IACD,MAAM,UAAU,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrD,MAAM,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACxD,OAAO,CAAC,CAAC;AACX,CAAC"}
|
package/dist/force-move-tag.d.ts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* remote update is a non-fast-forward the push must be allowed to make.
|
|
15
15
|
*/
|
|
16
16
|
import { type GitOptions } from './git.js';
|
|
17
|
-
export declare function forceMoveTag(name: string, target: string, opts?: GitOptions): void
|
|
17
|
+
export declare function forceMoveTag(name: string, target: string, opts?: GitOptions): Promise<void>;
|
|
18
18
|
//# sourceMappingURL=force-move-tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"force-move-tag.d.ts","sourceRoot":"","sources":["../src/force-move-tag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAY,KAAK,UAAU,EAAmB,MAAM,UAAU,CAAC;AAEtE,
|
|
1
|
+
{"version":3,"file":"force-move-tag.d.ts","sourceRoot":"","sources":["../src/force-move-tag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAY,KAAK,UAAU,EAAmB,MAAM,UAAU,CAAC;AAEtE,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAGrG"}
|
package/dist/force-move-tag.js
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* remote update is a non-fast-forward the push must be allowed to make.
|
|
15
15
|
*/
|
|
16
16
|
import { forceTag, pushTagRefForce } from './git.js';
|
|
17
|
-
export function forceMoveTag(name, target, opts = {}) {
|
|
18
|
-
forceTag(name, target, opts);
|
|
19
|
-
pushTagRefForce(name, opts);
|
|
17
|
+
export async function forceMoveTag(name, target, opts = {}) {
|
|
18
|
+
await forceTag(name, target, opts);
|
|
19
|
+
await pushTagRefForce(name, opts);
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=force-move-tag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"force-move-tag.js","sourceRoot":"","sources":["../src/force-move-tag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAmB,eAAe,EAAE,MAAM,UAAU,CAAC;AAEtE,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,MAAc,EAAE,OAAmB,EAAE;
|
|
1
|
+
{"version":3,"file":"force-move-tag.js","sourceRoot":"","sources":["../src/force-move-tag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAmB,eAAe,EAAE,MAAM,UAAU,CAAC;AAEtE,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,IAAY,EAAE,MAAc,EAAE,OAAmB,EAAE;IACpF,MAAM,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACnC,MAAM,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACpC,CAAC"}
|
package/dist/git.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Thin wrapper around the `git` CLI for the ops putitoutthere needs.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* and surfaced in thrown errors so failures are diagnosable without
|
|
7
|
-
* re-running with --verbose.
|
|
4
|
+
* Stderr is captured and surfaced in thrown errors so failures are
|
|
5
|
+
* diagnosable without re-running with --verbose.
|
|
8
6
|
*
|
|
9
7
|
* Issue #9. Plan: §13.6 (no-push tag model), §14.2 (last-tag resolver).
|
|
10
8
|
*/
|
|
@@ -14,13 +12,13 @@ export interface GitOptions {
|
|
|
14
12
|
interface TagOptions extends GitOptions {
|
|
15
13
|
message?: string;
|
|
16
14
|
}
|
|
17
|
-
export declare function headCommit(opts?: GitOptions): string
|
|
18
|
-
export declare function commitBody(sha: string, opts?: GitOptions): string
|
|
19
|
-
export declare function commitParents(sha: string, opts?: GitOptions): string[]
|
|
20
|
-
export declare function diffNames(from: string, to: string, opts?: GitOptions): string[]
|
|
21
|
-
export declare function tagList(glob: string, opts?: GitOptions): string[]
|
|
22
|
-
export declare function createTag(name: string, sha: string, opts?: TagOptions): void
|
|
23
|
-
export declare function pushTag(name: string, opts?: GitOptions): void
|
|
15
|
+
export declare function headCommit(opts?: GitOptions): Promise<string>;
|
|
16
|
+
export declare function commitBody(sha: string, opts?: GitOptions): Promise<string>;
|
|
17
|
+
export declare function commitParents(sha: string, opts?: GitOptions): Promise<string[]>;
|
|
18
|
+
export declare function diffNames(from: string, to: string, opts?: GitOptions): Promise<string[]>;
|
|
19
|
+
export declare function tagList(glob: string, opts?: GitOptions): Promise<string[]>;
|
|
20
|
+
export declare function createTag(name: string, sha: string, opts?: TagOptions): Promise<void>;
|
|
21
|
+
export declare function pushTag(name: string, opts?: GitOptions): Promise<void>;
|
|
24
22
|
/**
|
|
25
23
|
* `git fetch --tags --force origin` — refresh every remote tag, forcing
|
|
26
24
|
* updates for tags that moved on the remote. The `--force` is load-bearing
|
|
@@ -28,26 +26,26 @@ export declare function pushTag(name: string, opts?: GitOptions): void;
|
|
|
28
26
|
* rejected as a non-fast-forward, failing the fetch. Used before the
|
|
29
27
|
* floating-major-tag move re-derives "latest release" from local tags.
|
|
30
28
|
*/
|
|
31
|
-
export declare function fetchTagsForce(opts?: GitOptions): void
|
|
29
|
+
export declare function fetchTagsForce(opts?: GitOptions): Promise<void>;
|
|
32
30
|
/**
|
|
33
31
|
* `git tag -f <name> <target>` — create or move a lightweight tag to
|
|
34
32
|
* `target`, overwriting an existing tag of the same name. The local half of
|
|
35
33
|
* a floating-tag move; pair with `pushTagRefForce` to publish it.
|
|
36
34
|
*/
|
|
37
|
-
export declare function forceTag(name: string, target: string, opts?: GitOptions): void
|
|
35
|
+
export declare function forceTag(name: string, target: string, opts?: GitOptions): Promise<void>;
|
|
38
36
|
/**
|
|
39
37
|
* `git push --force origin refs/tags/<name>` — force-publish a single moved
|
|
40
38
|
* tag, ref-scoped so it is invisible to every other tag. The remote half of
|
|
41
39
|
* a floating-tag move: unlike `pushTagRef` (which fails on a non-fast-
|
|
42
40
|
* forward), this overwrites the remote tag, which floating tags require.
|
|
43
41
|
*/
|
|
44
|
-
export declare function pushTagRefForce(name: string, opts?: GitOptions): void
|
|
42
|
+
export declare function pushTagRefForce(name: string, opts?: GitOptions): Promise<void>;
|
|
45
43
|
/**
|
|
46
44
|
* The tags whose commit is HEAD — `git tag --points-at HEAD`. Lists exactly
|
|
47
45
|
* the tags the engine just created on this commit, with no fetch and no
|
|
48
46
|
* remote dependency (#444). Empty array when HEAD carries no tag.
|
|
49
47
|
*/
|
|
50
|
-
export declare function tagsPointingAtHead(opts?: GitOptions): string[]
|
|
48
|
+
export declare function tagsPointingAtHead(opts?: GitOptions): Promise<string[]>;
|
|
51
49
|
/**
|
|
52
50
|
* Push a single tag ref-scoped: `git push origin refs/tags/<name>`. Scoped
|
|
53
51
|
* to the one ref so it is invisible to every other tag — a consumer's
|
|
@@ -57,20 +55,20 @@ export declare function tagsPointingAtHead(opts?: GitOptions): string[];
|
|
|
57
55
|
* remote) still fails loudly, which the release concurrency group exists to
|
|
58
56
|
* prevent. Distinct from `pushTag`, which pushes by bare name (#444).
|
|
59
57
|
*/
|
|
60
|
-
export declare function pushTagRef(name: string, opts?: GitOptions): void
|
|
58
|
+
export declare function pushTagRef(name: string, opts?: GitOptions): Promise<void>;
|
|
61
59
|
/**
|
|
62
60
|
* `git add -f <pathspec>` — stage `pathspec`, overriding `.gitignore`. The
|
|
63
61
|
* action bundle (`dist-action/`) is gitignored on main and exists only on
|
|
64
62
|
* tag commits, so folding it in requires the force flag.
|
|
65
63
|
*/
|
|
66
|
-
export declare function addForce(pathspec: string, opts?: GitOptions): void
|
|
64
|
+
export declare function addForce(pathspec: string, opts?: GitOptions): Promise<void>;
|
|
67
65
|
/**
|
|
68
66
|
* Whether the index holds staged changes — `git diff --cached --quiet`
|
|
69
67
|
* exits non-zero when there are. Returns `true` when something is staged,
|
|
70
68
|
* `false` on a clean index. Used to guard the fold against committing
|
|
71
69
|
* nothing when `build:action` produced no bundle output.
|
|
72
70
|
*/
|
|
73
|
-
export declare function hasStagedChanges(opts?: GitOptions): boolean
|
|
71
|
+
export declare function hasStagedChanges(opts?: GitOptions): Promise<boolean>;
|
|
74
72
|
/**
|
|
75
73
|
* `git commit -m <subject> -m <body>` — commit the staged index with a
|
|
76
74
|
* two-paragraph message. git joins the two `-m` values with a blank line,
|
|
@@ -79,12 +77,12 @@ export declare function hasStagedChanges(opts?: GitOptions): boolean;
|
|
|
79
77
|
* the fold relies on so a `release:` trailer survives — see
|
|
80
78
|
* notes/handoff/2026-04-24-dist-action.md).
|
|
81
79
|
*/
|
|
82
|
-
export declare function commitWithBody(subject: string, body: string, opts?: GitOptions): void
|
|
80
|
+
export declare function commitWithBody(subject: string, body: string, opts?: GitOptions): Promise<void>;
|
|
83
81
|
/**
|
|
84
82
|
* The commit a tag points at. `rev-list -n 1` dereferences an annotated
|
|
85
83
|
* tag down to the commit it ultimately references.
|
|
86
84
|
*/
|
|
87
|
-
export declare function tagCommit(name: string, opts?: GitOptions): string
|
|
85
|
+
export declare function tagCommit(name: string, opts?: GitOptions): Promise<string>;
|
|
88
86
|
/**
|
|
89
87
|
* Find the highest-semver tag for a given package.
|
|
90
88
|
*
|
|
@@ -96,6 +94,6 @@ export declare function tagCommit(name: string, opts?: GitOptions): string;
|
|
|
96
94
|
*
|
|
97
95
|
* Returns null when no tag for this package exists.
|
|
98
96
|
*/
|
|
99
|
-
export declare function lastTag(packageName: string, tagFormat: string, opts?: GitOptions): string | null
|
|
97
|
+
export declare function lastTag(packageName: string, tagFormat: string, opts?: GitOptions): Promise<string | null>;
|
|
100
98
|
export {};
|
|
101
99
|
//# sourceMappingURL=git.d.ts.map
|
package/dist/git.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,UAAU,UAAW,SAAQ,UAAU;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AA2CD,wBAAsB,UAAU,CAAC,IAAI,GAAE,UAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAEvE;AAED,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,UAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAGpF;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,UAAe,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAMzF;AAED,wBAAsB,SAAS,CAC7B,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,UAAe,GACpB,OAAO,CAAC,MAAM,EAAE,CAAC,CAInB;AAID,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,UAAe,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAIpF;AAED,wBAAsB,SAAS,CAC7B,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,UAAe,GACpB,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,UA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OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAoBxB"}
|
package/dist/git.js
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Thin wrapper around the `git` CLI for the ops putitoutthere needs.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* and surfaced in thrown errors so failures are diagnosable without
|
|
7
|
-
* re-running with --verbose.
|
|
4
|
+
* Stderr is captured and surfaced in thrown errors so failures are
|
|
5
|
+
* diagnosable without re-running with --verbose.
|
|
8
6
|
*
|
|
9
7
|
* Issue #9. Plan: §13.6 (no-push tag model), §14.2 (last-tag resolver).
|
|
10
8
|
*/
|
|
11
|
-
import {
|
|
9
|
+
import { execCapture } from './utils/exec-capture.js';
|
|
10
|
+
import { ExecError } from './utils/exec-error.js';
|
|
12
11
|
import { parseTagVersion, tagGlob } from './tag-template.js';
|
|
13
12
|
import { parseSemver } from './version.js';
|
|
14
13
|
/* ------------------------------ core ------------------------------ */
|
|
15
|
-
function run(args, opts = {}) {
|
|
14
|
+
async function run(args, opts = {}) {
|
|
16
15
|
try {
|
|
17
|
-
return
|
|
18
|
-
cwd: opts.cwd,
|
|
19
|
-
encoding: 'utf8',
|
|
20
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
21
|
-
}).trimEnd();
|
|
16
|
+
return (await execCapture('git', args, { cwd: opts.cwd })).stdout.trimEnd();
|
|
22
17
|
}
|
|
23
18
|
catch (err) {
|
|
24
|
-
//
|
|
25
|
-
// error output. Fold it into the thrown
|
|
26
|
-
// see the root cause without separate plumbing.
|
|
27
|
-
|
|
28
|
-
const stderr = err.stderr?.toString('utf8').trim();
|
|
19
|
+
// execCapture rejects with an ExecError whose `stderr` field carries
|
|
20
|
+
// git's error output (already a string). Fold it into the thrown
|
|
21
|
+
// message so tests + logs see the root cause without separate plumbing.
|
|
22
|
+
const stderr = err instanceof ExecError ? err.stderr.trim() : undefined;
|
|
29
23
|
const base = err instanceof Error ? err.message : String(err);
|
|
30
24
|
// `git tag -a` on a runner with no user.name/email surfaces as
|
|
31
25
|
// "Please tell me who you are" / "unable to auto-detect email
|
|
@@ -35,6 +29,7 @@ function run(args, opts = {}) {
|
|
|
35
29
|
/unable to auto-detect email address|Please tell me who you are/.test(stderr);
|
|
36
30
|
if (needsIdentity) {
|
|
37
31
|
throw new Error([
|
|
32
|
+
/* v8 ignore next -- args[0] is always defined: every git wrapper passes a non-empty argv, so the `?? ''` fallback is unreachable via the public API */
|
|
38
33
|
`git ${args[0] ?? ''}: no committer identity configured.`,
|
|
39
34
|
'piot cuts annotated tags which require `user.name` + `user.email`.',
|
|
40
35
|
'Configure them in the publish job before invoking piot:',
|
|
@@ -47,47 +42,46 @@ function run(args, opts = {}) {
|
|
|
47
42
|
].join('\n'), { cause: err });
|
|
48
43
|
}
|
|
49
44
|
throw new Error(stderr ? `${base}\n${stderr}` : base, { cause: err });
|
|
50
|
-
/* v8 ignore stop */
|
|
51
45
|
}
|
|
52
46
|
}
|
|
53
47
|
/* ---------------------------- observers ---------------------------- */
|
|
54
|
-
export function headCommit(opts = {}) {
|
|
48
|
+
export async function headCommit(opts = {}) {
|
|
55
49
|
return run(['rev-parse', 'HEAD'], opts);
|
|
56
50
|
}
|
|
57
|
-
export function commitBody(sha, opts = {}) {
|
|
51
|
+
export async function commitBody(sha, opts = {}) {
|
|
58
52
|
// %B = raw body (subject + body, no trailer folding).
|
|
59
53
|
return run(['log', '-1', '--format=%B', sha], opts);
|
|
60
54
|
}
|
|
61
|
-
export function commitParents(sha, opts = {}) {
|
|
55
|
+
export async function commitParents(sha, opts = {}) {
|
|
62
56
|
// %P = parent SHAs, space-separated. Merge commits have ≥2;
|
|
63
57
|
// plain commits have 1; root commits have 0.
|
|
64
|
-
const out = run(['log', '-1', '--format=%P', sha], opts);
|
|
58
|
+
const out = await run(['log', '-1', '--format=%P', sha], opts);
|
|
65
59
|
if (out === '') {
|
|
66
60
|
return [];
|
|
67
61
|
}
|
|
68
62
|
return out.split(' ').filter((s) => s.length > 0);
|
|
69
63
|
}
|
|
70
|
-
export function diffNames(from, to, opts = {}) {
|
|
71
|
-
const out = run(['diff', '--name-only', `${from}..${to}`], opts);
|
|
64
|
+
export async function diffNames(from, to, opts = {}) {
|
|
65
|
+
const out = await run(['diff', '--name-only', `${from}..${to}`], opts);
|
|
72
66
|
if (out === '') {
|
|
73
67
|
return [];
|
|
74
68
|
}
|
|
75
69
|
return out.split('\n').filter((l) => l.length > 0);
|
|
76
70
|
}
|
|
77
71
|
/* ------------------------------ tags ------------------------------ */
|
|
78
|
-
export function tagList(glob, opts = {}) {
|
|
79
|
-
const out = run(['tag', '-l', glob], opts);
|
|
72
|
+
export async function tagList(glob, opts = {}) {
|
|
73
|
+
const out = await run(['tag', '-l', glob], opts);
|
|
80
74
|
if (out === '') {
|
|
81
75
|
return [];
|
|
82
76
|
}
|
|
83
77
|
return out.split('\n').filter((l) => l.length > 0);
|
|
84
78
|
}
|
|
85
|
-
export function createTag(name, sha, opts = {}) {
|
|
79
|
+
export async function createTag(name, sha, opts = {}) {
|
|
86
80
|
const message = opts.message ?? name;
|
|
87
|
-
run(['tag', '-a', '-m', message, name, sha], opts);
|
|
81
|
+
await run(['tag', '-a', '-m', message, name, sha], opts);
|
|
88
82
|
}
|
|
89
|
-
export function pushTag(name, opts = {}) {
|
|
90
|
-
run(['push', 'origin', name], opts);
|
|
83
|
+
export async function pushTag(name, opts = {}) {
|
|
84
|
+
await run(['push', 'origin', name], opts);
|
|
91
85
|
}
|
|
92
86
|
/**
|
|
93
87
|
* `git fetch --tags --force origin` — refresh every remote tag, forcing
|
|
@@ -96,16 +90,16 @@ export function pushTag(name, opts = {}) {
|
|
|
96
90
|
* rejected as a non-fast-forward, failing the fetch. Used before the
|
|
97
91
|
* floating-major-tag move re-derives "latest release" from local tags.
|
|
98
92
|
*/
|
|
99
|
-
export function fetchTagsForce(opts = {}) {
|
|
100
|
-
run(['fetch', '--tags', '--force', 'origin'], opts);
|
|
93
|
+
export async function fetchTagsForce(opts = {}) {
|
|
94
|
+
await run(['fetch', '--tags', '--force', 'origin'], opts);
|
|
101
95
|
}
|
|
102
96
|
/**
|
|
103
97
|
* `git tag -f <name> <target>` — create or move a lightweight tag to
|
|
104
98
|
* `target`, overwriting an existing tag of the same name. The local half of
|
|
105
99
|
* a floating-tag move; pair with `pushTagRefForce` to publish it.
|
|
106
100
|
*/
|
|
107
|
-
export function forceTag(name, target, opts = {}) {
|
|
108
|
-
run(['tag', '-f', name, target], opts);
|
|
101
|
+
export async function forceTag(name, target, opts = {}) {
|
|
102
|
+
await run(['tag', '-f', name, target], opts);
|
|
109
103
|
}
|
|
110
104
|
/**
|
|
111
105
|
* `git push --force origin refs/tags/<name>` — force-publish a single moved
|
|
@@ -113,16 +107,16 @@ export function forceTag(name, target, opts = {}) {
|
|
|
113
107
|
* a floating-tag move: unlike `pushTagRef` (which fails on a non-fast-
|
|
114
108
|
* forward), this overwrites the remote tag, which floating tags require.
|
|
115
109
|
*/
|
|
116
|
-
export function pushTagRefForce(name, opts = {}) {
|
|
117
|
-
run(['push', '--force', 'origin', `refs/tags/${name}`], opts);
|
|
110
|
+
export async function pushTagRefForce(name, opts = {}) {
|
|
111
|
+
await run(['push', '--force', 'origin', `refs/tags/${name}`], opts);
|
|
118
112
|
}
|
|
119
113
|
/**
|
|
120
114
|
* The tags whose commit is HEAD — `git tag --points-at HEAD`. Lists exactly
|
|
121
115
|
* the tags the engine just created on this commit, with no fetch and no
|
|
122
116
|
* remote dependency (#444). Empty array when HEAD carries no tag.
|
|
123
117
|
*/
|
|
124
|
-
export function tagsPointingAtHead(opts = {}) {
|
|
125
|
-
const out = run(['tag', '--points-at', 'HEAD'], opts);
|
|
118
|
+
export async function tagsPointingAtHead(opts = {}) {
|
|
119
|
+
const out = await run(['tag', '--points-at', 'HEAD'], opts);
|
|
126
120
|
if (out === '') {
|
|
127
121
|
return [];
|
|
128
122
|
}
|
|
@@ -137,8 +131,8 @@ export function tagsPointingAtHead(opts = {}) {
|
|
|
137
131
|
* remote) still fails loudly, which the release concurrency group exists to
|
|
138
132
|
* prevent. Distinct from `pushTag`, which pushes by bare name (#444).
|
|
139
133
|
*/
|
|
140
|
-
export function pushTagRef(name, opts = {}) {
|
|
141
|
-
run(['push', 'origin', `refs/tags/${name}`], opts);
|
|
134
|
+
export async function pushTagRef(name, opts = {}) {
|
|
135
|
+
await run(['push', 'origin', `refs/tags/${name}`], opts);
|
|
142
136
|
}
|
|
143
137
|
/* ---------------------------- staging ---------------------------- */
|
|
144
138
|
/**
|
|
@@ -146,8 +140,8 @@ export function pushTagRef(name, opts = {}) {
|
|
|
146
140
|
* action bundle (`dist-action/`) is gitignored on main and exists only on
|
|
147
141
|
* tag commits, so folding it in requires the force flag.
|
|
148
142
|
*/
|
|
149
|
-
export function addForce(pathspec, opts = {}) {
|
|
150
|
-
run(['add', '-f', pathspec], opts);
|
|
143
|
+
export async function addForce(pathspec, opts = {}) {
|
|
144
|
+
await run(['add', '-f', pathspec], opts);
|
|
151
145
|
}
|
|
152
146
|
/**
|
|
153
147
|
* Whether the index holds staged changes — `git diff --cached --quiet`
|
|
@@ -155,9 +149,9 @@ export function addForce(pathspec, opts = {}) {
|
|
|
155
149
|
* `false` on a clean index. Used to guard the fold against committing
|
|
156
150
|
* nothing when `build:action` produced no bundle output.
|
|
157
151
|
*/
|
|
158
|
-
export function hasStagedChanges(opts = {}) {
|
|
152
|
+
export async function hasStagedChanges(opts = {}) {
|
|
159
153
|
try {
|
|
160
|
-
run(['diff', '--cached', '--quiet'], opts);
|
|
154
|
+
await run(['diff', '--cached', '--quiet'], opts);
|
|
161
155
|
return false;
|
|
162
156
|
}
|
|
163
157
|
catch {
|
|
@@ -172,15 +166,15 @@ export function hasStagedChanges(opts = {}) {
|
|
|
172
166
|
* the fold relies on so a `release:` trailer survives — see
|
|
173
167
|
* notes/handoff/2026-04-24-dist-action.md).
|
|
174
168
|
*/
|
|
175
|
-
export function commitWithBody(subject, body, opts = {}) {
|
|
176
|
-
run(['commit', '-m', subject, '-m', body], opts);
|
|
169
|
+
export async function commitWithBody(subject, body, opts = {}) {
|
|
170
|
+
await run(['commit', '-m', subject, '-m', body], opts);
|
|
177
171
|
}
|
|
178
172
|
/* ------------------------------ tags ------------------------------ */
|
|
179
173
|
/**
|
|
180
174
|
* The commit a tag points at. `rev-list -n 1` dereferences an annotated
|
|
181
175
|
* tag down to the commit it ultimately references.
|
|
182
176
|
*/
|
|
183
|
-
export function tagCommit(name, opts = {}) {
|
|
177
|
+
export async function tagCommit(name, opts = {}) {
|
|
184
178
|
return run(['rev-list', '-n', '1', name], opts);
|
|
185
179
|
}
|
|
186
180
|
/* -------------------------- last-tag resolver -------------------------- */
|
|
@@ -195,8 +189,8 @@ export function tagCommit(name, opts = {}) {
|
|
|
195
189
|
*
|
|
196
190
|
* Returns null when no tag for this package exists.
|
|
197
191
|
*/
|
|
198
|
-
export function lastTag(packageName, tagFormat, opts = {}) {
|
|
199
|
-
const candidates = tagList(tagGlob(tagFormat, packageName), opts);
|
|
192
|
+
export async function lastTag(packageName, tagFormat, opts = {}) {
|
|
193
|
+
const candidates = await tagList(tagGlob(tagFormat, packageName), opts);
|
|
200
194
|
let best = null;
|
|
201
195
|
for (const tag of candidates) {
|
|
202
196
|
const versionPart = parseTagVersion(tagFormat, packageName, tag);
|
|
@@ -206,11 +200,12 @@ export function lastTag(packageName, tagFormat, opts = {}) {
|
|
|
206
200
|
let parsed;
|
|
207
201
|
try {
|
|
208
202
|
parsed = parseSemver(versionPart);
|
|
209
|
-
/* v8 ignore
|
|
203
|
+
/* v8 ignore start -- parseTagVersion already validated semver; the re-parse can't throw */
|
|
210
204
|
}
|
|
211
205
|
catch {
|
|
212
206
|
continue;
|
|
213
207
|
}
|
|
208
|
+
/* v8 ignore stop */
|
|
214
209
|
if (!best || greater(parsed, best.version)) {
|
|
215
210
|
best = { tag, version: parsed };
|
|
216
211
|
}
|
package/dist/git.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAe,MAAM,cAAc,CAAC;AAUxD,wEAAwE;AAExE,KAAK,UAAU,GAAG,CAAC,IAAc,EAAE,OAAmB,EAAE;IACtD,IAAI,CAAC;QACH,OAAO,CAAC,MAAM,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;IAC9E,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,qEAAqE;QACrE,iEAAiE;QACjE,wEAAwE;QACxE,MAAM,MAAM,GAAG,GAAG,YAAY,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;QACxE,MAAM,IAAI,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC9D,+DAA+D;QAC/D,8DAA8D;QAC9D,+DAA+D;QAC/D,yBAAyB;QACzB,MAAM,aAAa,GACjB,MAAM,KAAK,SAAS;YACpB,gEAAgE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChF,IAAI,aAAa,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CACb;gBACE,uJAAuJ;gBACvJ,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,EAA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ACzD,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC,SAAS,EAAE,WAAW,EAAE,GAAG,CAAC,CAAC;QACjE,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;YAAA,SAAS;QAAA,CAAC;QACrC,IAAI,MAAc,CAAC;QACnB,IAAI,CAAC;YACH,MAAM,GAAG,WAAW,CAAC,WAAW,CAAC,CAAC;YACpC,2FAA2F;QAC3F,CAAC;QAAC,MAAM,CAAC;YACP,SAAS;QACX,CAAC;QACD,oBAAoB;QACpB,IAAI,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3C,IAAI,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAClC,CAAC;IACH,CAAC;IACD,OAAO,IAAI,EAAE,GAAG,IAAI,IAAI,CAAC;AAC3B,CAAC;AAED,SAAS,OAAO,CAAC,CAAS,EAAE,CAAS;IACnC,sFAAsF;IACtF,IAAI,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;QAAA,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IAAA,CAAC;IACpD,IAAI,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;QAAA,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IAAA,CAAC;IACpD,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;AAC3B,CAAC"}
|
package/dist/glob.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ export declare function matchesAny(patterns: readonly string[], path: string): b
|
|
|
20
20
|
* directory — while a glob entry is matched one path segment at a time
|
|
21
21
|
* against the real directory tree, so only existing directories come back.
|
|
22
22
|
*/
|
|
23
|
-
export declare function expandDirGlob(baseDir: string, pattern: string): string[]
|
|
23
|
+
export declare function expandDirGlob(baseDir: string, pattern: string): Promise<string[]>;
|
|
24
24
|
//# sourceMappingURL=glob.d.ts.map
|
package/dist/glob.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAeH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAElE;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAK7E;AAID;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAsBvF"}
|
package/dist/glob.js
CHANGED
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Issue #10.
|
|
12
12
|
*/
|
|
13
|
-
import {
|
|
13
|
+
import { readdir } from 'node:fs/promises';
|
|
14
14
|
import { join } from 'node:path';
|
|
15
|
+
import { pathExists } from './utils/path-exists.js';
|
|
15
16
|
import { minimatch } from 'minimatch';
|
|
16
17
|
const OPTS = {
|
|
17
18
|
dot: true,
|
|
@@ -38,7 +39,7 @@ const GLOB_META = /[*?[\]{}]/;
|
|
|
38
39
|
* directory — while a glob entry is matched one path segment at a time
|
|
39
40
|
* against the real directory tree, so only existing directories come back.
|
|
40
41
|
*/
|
|
41
|
-
export function expandDirGlob(baseDir, pattern) {
|
|
42
|
+
export async function expandDirGlob(baseDir, pattern) {
|
|
42
43
|
const segments = pattern.split('/').filter((s) => s.length > 0);
|
|
43
44
|
let dirs = [baseDir];
|
|
44
45
|
for (const segment of segments) {
|
|
@@ -46,11 +47,20 @@ export function expandDirGlob(baseDir, pattern) {
|
|
|
46
47
|
dirs = dirs.map((d) => join(d, segment));
|
|
47
48
|
continue;
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
// Sequential expansion (no Promise.all): matches the prior flatMap
|
|
51
|
+
// order — readdir order within each dir, dirs in their existing order.
|
|
52
|
+
const next = [];
|
|
53
|
+
for (const d of dirs) {
|
|
54
|
+
if (!(await pathExists(d))) {
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
for (const e of await readdir(d, { withFileTypes: true })) {
|
|
58
|
+
if (e.isDirectory() && matchesGlob(segment, e.name)) {
|
|
59
|
+
next.push(join(d, e.name));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
dirs = next;
|
|
54
64
|
}
|
|
55
65
|
return dirs;
|
|
56
66
|
}
|
package/dist/glob.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glob.js","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"glob.js","sourceRoot":"","sources":["../src/glob.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,IAAI,GAAG;IACX,GAAG,EAAE,IAAI;IACT,SAAS,EAAE,KAAK;IAChB,SAAS,EAAE,IAAI,EAAE,oDAAoD;CAC7D,CAAC;AAEX,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,IAAY;IAC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AAC,WAAW,EAAE,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;oBACpD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;gBAC7B,CAAC;YACH,CAAC;QACH,CAAC;QACD,IAAI,GAAG,IAAI,CAAC;IACd,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -55,6 +55,7 @@ export declare function replaceCargoVersion(source: string, version: string): st
|
|
|
55
55
|
* a git work tree, git command missing, etc) — callers treat null as
|
|
56
56
|
* "can't verify, fall through to cargo's own --allow-dirty behavior."
|
|
57
57
|
*/
|
|
58
|
-
export declare function scanDirtyOutsideManifest(cwd: string, pkgPath: string, artifactsRoot?: string, siblingPackagePaths?: readonly string[]): string[] | null
|
|
58
|
+
export declare function scanDirtyOutsideManifest(cwd: string, pkgPath: string, artifactsRoot?: string, siblingPackagePaths?: readonly string[]): Promise<string[] | null>;
|
|
59
|
+
export declare function relativeOrSelf(base: string, target: string): string;
|
|
59
60
|
export declare const crates: Handler;
|
|
60
61
|
//# sourceMappingURL=crates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crates.d.ts","sourceRoot":"","sources":["../../src/handlers/crates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;
|
|
1
|
+
{"version":3,"file":"crates.d.ts","sourceRoot":"","sources":["../../src/handlers/crates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAKH,OAAO,KAAK,EAAO,OAAO,EAA+B,MAAM,aAAa,CAAC;AAwO7E;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAOpF;AAUD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAa3E;AAED;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,aAAa,CAAC,EAAE,MAAM,EACtB,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,GACtC,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAqF1B;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAOnE;AA6CD,eAAO,MAAM,MAAM,EAAE,OAOpB,CAAC"}
|