@skuba-lib/api 2.2.0 → 2.3.0-debug-20260630011803
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/lib/git/index.cjs +1 -1
- package/lib/git/index.d.cts +1 -1
- package/lib/git/index.d.mts +1 -1
- package/lib/git/index.mjs +1 -1
- package/lib/{git-D98vomnD.cjs → git-BRIEV0SC.cjs} +71 -8
- package/lib/{git-CmP3a9Z9.mjs → git-Bjs0WQcc.mjs} +71 -8
- package/lib/github/index.cjs +2 -2
- package/lib/github/index.d.cts +1 -1
- package/lib/github/index.d.mts +1 -1
- package/lib/github/index.mjs +2 -2
- package/lib/{github-BUEZ_y2Y.mjs → github-C4q0zf6K.mjs} +1 -1
- package/lib/{github-D12IboDc.cjs → github-CMoF4jl9.cjs} +1 -1
- package/lib/{index-C9WMO_Y9.d.mts → index-CyA0bI1V.d.cts} +25 -4
- package/lib/{index-C9WMO_Y9.d.cts → index-CyA0bI1V.d.mts} +25 -4
- package/lib/{index-DbjgHTTm.d.mts → index-Disq-dHD.d.cts} +1 -1
- package/lib/{index-D4JUiy2k.d.cts → index-Dsnw8lVr.d.mts} +1 -1
- package/lib/index.cjs +2 -2
- package/lib/index.d.cts +2 -2
- package/lib/index.d.mts +2 -2
- package/lib/index.mjs +2 -2
- package/package.json +1 -1
package/lib/git/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_git = require("../git-
|
|
2
|
+
const require_git = require("../git-BRIEV0SC.cjs");
|
|
3
3
|
exports.commit = require_git.commit;
|
|
4
4
|
exports.commitAllChanges = require_git.commitAllChanges;
|
|
5
5
|
exports.currentBranch = require_git.currentBranch;
|
package/lib/git/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as push, c as getHeadCommitMessage, d as commitAllChanges, f as ChangedFile, i as fastForwardBranch, l as findRoot, m as commit, n as isFileGitIgnored, o as getOwnerAndRepo, p as getChangedFiles, r as reset, s as getHeadCommitId, u as currentBranch } from "../index-
|
|
1
|
+
import { a as push, c as getHeadCommitMessage, d as commitAllChanges, f as ChangedFile, i as fastForwardBranch, l as findRoot, m as commit, n as isFileGitIgnored, o as getOwnerAndRepo, p as getChangedFiles, r as reset, s as getHeadCommitId, u as currentBranch } from "../index-CyA0bI1V.cjs";
|
|
2
2
|
export { type ChangedFile, commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
|
package/lib/git/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as push, c as getHeadCommitMessage, d as commitAllChanges, f as ChangedFile, i as fastForwardBranch, l as findRoot, m as commit, n as isFileGitIgnored, o as getOwnerAndRepo, p as getChangedFiles, r as reset, s as getHeadCommitId, u as currentBranch } from "../index-
|
|
1
|
+
import { a as push, c as getHeadCommitMessage, d as commitAllChanges, f as ChangedFile, i as fastForwardBranch, l as findRoot, m as commit, n as isFileGitIgnored, o as getOwnerAndRepo, p as getChangedFiles, r as reset, s as getHeadCommitId, u as currentBranch } from "../index-CyA0bI1V.mjs";
|
|
2
2
|
export { type ChangedFile, commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
|
package/lib/git/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as push, d as getHeadCommitMessage, f as currentBranch, g as commit, h as findRoot, i as fastForwardBranch, l as getOwnerAndRepo, m as getChangedFiles, n as isFileGitIgnored, p as commitAllChanges, r as reset, u as getHeadCommitId } from "../git-
|
|
1
|
+
import { a as push, d as getHeadCommitMessage, f as currentBranch, g as commit, h as findRoot, i as fastForwardBranch, l as getOwnerAndRepo, m as getChangedFiles, n as isFileGitIgnored, p as commitAllChanges, r as reset, u as getHeadCommitId } from "../git-Bjs0WQcc.mjs";
|
|
2
2
|
export { commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
|
|
@@ -57,22 +57,85 @@ const mapState = (row) => {
|
|
|
57
57
|
return "deleted";
|
|
58
58
|
};
|
|
59
59
|
/**
|
|
60
|
-
* Returns all the files which have been added, modified or deleted
|
|
61
|
-
*
|
|
60
|
+
* Returns all the files which have been added, modified or deleted.
|
|
61
|
+
*
|
|
62
|
+
* Defaults to file changes in the working directory of the local Git repository
|
|
63
|
+
* since the last commit, but can also look at a specific `dst` reference, or
|
|
64
|
+
* the changes between `src` and `dst` references.
|
|
62
65
|
*/
|
|
63
|
-
const getChangedFiles = async ({ dir, ignore: ignore$1 = [] }) => {
|
|
66
|
+
const getChangedFiles = async ({ dir, src, dst, ignore: ignore$1 = [] }) => {
|
|
64
67
|
const gitRoot = await (0, isomorphic_git.findRoot)({
|
|
65
68
|
fs: fs_extra.default,
|
|
66
69
|
filepath: dir
|
|
67
70
|
});
|
|
68
|
-
const
|
|
71
|
+
const repoDir = gitRoot ?? dir;
|
|
72
|
+
const [allFiles, isLfs] = await Promise.all([dst ? getChangedFilesFromRefs({
|
|
73
|
+
dir: repoDir,
|
|
74
|
+
src,
|
|
75
|
+
dst
|
|
76
|
+
}) : getChangedFilesInWorkingDirectory(repoDir), createIsLfsFilter(gitRoot)]);
|
|
77
|
+
return allFiles.filter((changedFile) => !ignore$1.some((i) => i.path === changedFile.path && i.state === changedFile.state) && !isLfs(changedFile.path));
|
|
78
|
+
};
|
|
79
|
+
const getChangedFilesInWorkingDirectory = async (dir) => {
|
|
80
|
+
return (await isomorphic_git.default.statusMatrix({
|
|
69
81
|
fs: fs_extra.default,
|
|
70
|
-
dir
|
|
71
|
-
})
|
|
72
|
-
return allFiles.filter((row) => row[1] !== 1 || row[2] !== 1 || row[3] !== 1).map((row) => ({
|
|
82
|
+
dir
|
|
83
|
+
})).filter((row) => row[1] !== 1 || row[2] !== 1 || row[3] !== 1).map((row) => ({
|
|
73
84
|
path: row[0],
|
|
74
85
|
state: mapState(row)
|
|
75
|
-
}))
|
|
86
|
+
}));
|
|
87
|
+
};
|
|
88
|
+
const getChangedFilesFromRefs = async ({ dir, src, dst }) => {
|
|
89
|
+
const dstOid = await isomorphic_git.default.resolveRef({
|
|
90
|
+
fs: fs_extra.default,
|
|
91
|
+
dir,
|
|
92
|
+
ref: dst
|
|
93
|
+
});
|
|
94
|
+
let ref = src;
|
|
95
|
+
if (!ref) {
|
|
96
|
+
const { commit } = await isomorphic_git.default.readCommit({
|
|
97
|
+
fs: fs_extra.default,
|
|
98
|
+
dir,
|
|
99
|
+
oid: dstOid
|
|
100
|
+
});
|
|
101
|
+
if (!commit.parent[0]) throw new Error(`Failed to determine changed files in Git: src parameter was omitted but dst (${dst} -> ${dstOid}) has no parent`);
|
|
102
|
+
ref = `${commit.parent[0]}`;
|
|
103
|
+
}
|
|
104
|
+
const srcOid = await isomorphic_git.default.resolveRef({
|
|
105
|
+
fs: fs_extra.default,
|
|
106
|
+
dir,
|
|
107
|
+
ref
|
|
108
|
+
});
|
|
109
|
+
const files = [];
|
|
110
|
+
await isomorphic_git.default.walk({
|
|
111
|
+
fs: fs_extra.default,
|
|
112
|
+
dir,
|
|
113
|
+
trees: [isomorphic_git.default.TREE({ ref: srcOid }), isomorphic_git.default.TREE({ ref: dstOid })],
|
|
114
|
+
map: async (filepath, entries) => {
|
|
115
|
+
if (filepath === ".") return;
|
|
116
|
+
const [srcEntry, dstEntry] = entries;
|
|
117
|
+
const srcTypePromise = srcEntry?.type?.();
|
|
118
|
+
const dstTypePromise = dstEntry?.type?.();
|
|
119
|
+
const [srcType, dstType] = await Promise.all([srcTypePromise, dstTypePromise]);
|
|
120
|
+
if (srcType === "tree" || dstType === "tree") return;
|
|
121
|
+
const srcOidPromise = srcEntry?.oid?.();
|
|
122
|
+
const dstOidPromise = dstEntry?.oid?.();
|
|
123
|
+
const [srcEntryOid, dstEntryOid] = await Promise.all([srcOidPromise, dstOidPromise]);
|
|
124
|
+
if (!srcEntryOid && dstEntryOid) return files.push({
|
|
125
|
+
path: filepath,
|
|
126
|
+
state: "added"
|
|
127
|
+
});
|
|
128
|
+
if (srcEntryOid && !dstEntryOid) return files.push({
|
|
129
|
+
path: filepath,
|
|
130
|
+
state: "deleted"
|
|
131
|
+
});
|
|
132
|
+
if (srcEntryOid !== dstEntryOid) return files.push({
|
|
133
|
+
path: filepath,
|
|
134
|
+
state: "modified"
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
return files;
|
|
76
139
|
};
|
|
77
140
|
const createIsLfsFilter = async (gitRoot) => {
|
|
78
141
|
if (!gitRoot) return () => false;
|
|
@@ -52,22 +52,85 @@ const mapState = (row) => {
|
|
|
52
52
|
return "deleted";
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
|
-
* Returns all the files which have been added, modified or deleted
|
|
56
|
-
*
|
|
55
|
+
* Returns all the files which have been added, modified or deleted.
|
|
56
|
+
*
|
|
57
|
+
* Defaults to file changes in the working directory of the local Git repository
|
|
58
|
+
* since the last commit, but can also look at a specific `dst` reference, or
|
|
59
|
+
* the changes between `src` and `dst` references.
|
|
57
60
|
*/
|
|
58
|
-
const getChangedFiles = async ({ dir, ignore = [] }) => {
|
|
61
|
+
const getChangedFiles = async ({ dir, src, dst, ignore = [] }) => {
|
|
59
62
|
const gitRoot = await findRoot({
|
|
60
63
|
fs,
|
|
61
64
|
filepath: dir
|
|
62
65
|
});
|
|
63
|
-
const
|
|
66
|
+
const repoDir = gitRoot ?? dir;
|
|
67
|
+
const [allFiles, isLfs] = await Promise.all([dst ? getChangedFilesFromRefs({
|
|
68
|
+
dir: repoDir,
|
|
69
|
+
src,
|
|
70
|
+
dst
|
|
71
|
+
}) : getChangedFilesInWorkingDirectory(repoDir), createIsLfsFilter(gitRoot)]);
|
|
72
|
+
return allFiles.filter((changedFile) => !ignore.some((i) => i.path === changedFile.path && i.state === changedFile.state) && !isLfs(changedFile.path));
|
|
73
|
+
};
|
|
74
|
+
const getChangedFilesInWorkingDirectory = async (dir) => {
|
|
75
|
+
return (await git.statusMatrix({
|
|
64
76
|
fs,
|
|
65
|
-
dir
|
|
66
|
-
})
|
|
67
|
-
return allFiles.filter((row) => row[1] !== 1 || row[2] !== 1 || row[3] !== 1).map((row) => ({
|
|
77
|
+
dir
|
|
78
|
+
})).filter((row) => row[1] !== 1 || row[2] !== 1 || row[3] !== 1).map((row) => ({
|
|
68
79
|
path: row[0],
|
|
69
80
|
state: mapState(row)
|
|
70
|
-
}))
|
|
81
|
+
}));
|
|
82
|
+
};
|
|
83
|
+
const getChangedFilesFromRefs = async ({ dir, src, dst }) => {
|
|
84
|
+
const dstOid = await git.resolveRef({
|
|
85
|
+
fs,
|
|
86
|
+
dir,
|
|
87
|
+
ref: dst
|
|
88
|
+
});
|
|
89
|
+
let ref = src;
|
|
90
|
+
if (!ref) {
|
|
91
|
+
const { commit } = await git.readCommit({
|
|
92
|
+
fs,
|
|
93
|
+
dir,
|
|
94
|
+
oid: dstOid
|
|
95
|
+
});
|
|
96
|
+
if (!commit.parent[0]) throw new Error(`Failed to determine changed files in Git: src parameter was omitted but dst (${dst} -> ${dstOid}) has no parent`);
|
|
97
|
+
ref = `${commit.parent[0]}`;
|
|
98
|
+
}
|
|
99
|
+
const srcOid = await git.resolveRef({
|
|
100
|
+
fs,
|
|
101
|
+
dir,
|
|
102
|
+
ref
|
|
103
|
+
});
|
|
104
|
+
const files = [];
|
|
105
|
+
await git.walk({
|
|
106
|
+
fs,
|
|
107
|
+
dir,
|
|
108
|
+
trees: [git.TREE({ ref: srcOid }), git.TREE({ ref: dstOid })],
|
|
109
|
+
map: async (filepath, entries) => {
|
|
110
|
+
if (filepath === ".") return;
|
|
111
|
+
const [srcEntry, dstEntry] = entries;
|
|
112
|
+
const srcTypePromise = srcEntry?.type?.();
|
|
113
|
+
const dstTypePromise = dstEntry?.type?.();
|
|
114
|
+
const [srcType, dstType] = await Promise.all([srcTypePromise, dstTypePromise]);
|
|
115
|
+
if (srcType === "tree" || dstType === "tree") return;
|
|
116
|
+
const srcOidPromise = srcEntry?.oid?.();
|
|
117
|
+
const dstOidPromise = dstEntry?.oid?.();
|
|
118
|
+
const [srcEntryOid, dstEntryOid] = await Promise.all([srcOidPromise, dstOidPromise]);
|
|
119
|
+
if (!srcEntryOid && dstEntryOid) return files.push({
|
|
120
|
+
path: filepath,
|
|
121
|
+
state: "added"
|
|
122
|
+
});
|
|
123
|
+
if (srcEntryOid && !dstEntryOid) return files.push({
|
|
124
|
+
path: filepath,
|
|
125
|
+
state: "deleted"
|
|
126
|
+
});
|
|
127
|
+
if (srcEntryOid !== dstEntryOid) return files.push({
|
|
128
|
+
path: filepath,
|
|
129
|
+
state: "modified"
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
return files;
|
|
71
134
|
};
|
|
72
135
|
const createIsLfsFilter = async (gitRoot) => {
|
|
73
136
|
if (!gitRoot) return () => false;
|
package/lib/github/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_git = require("../git-
|
|
3
|
-
const require_github = require("../github-
|
|
2
|
+
const require_git = require("../git-BRIEV0SC.cjs");
|
|
3
|
+
const require_github = require("../github-CMoF4jl9.cjs");
|
|
4
4
|
exports.apiTokenFromEnvironment = require_git.apiTokenFromEnvironment;
|
|
5
5
|
exports.buildNameFromEnvironment = require_git.buildNameFromEnvironment;
|
|
6
6
|
exports.createCheckRun = require_github.createCheckRun;
|
package/lib/github/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index-
|
|
1
|
+
import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index-Disq-dHD.cjs";
|
|
2
2
|
export { type Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
|
package/lib/github/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index-
|
|
1
|
+
import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index-Dsnw8lVr.mjs";
|
|
2
2
|
export { type Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
|
package/lib/github/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as enabledFromEnvironment, o as apiTokenFromEnvironment, s as buildNameFromEnvironment } from "../git-
|
|
2
|
-
import { a as putIssueComment, i as uploadFileChanges, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as createCheckRun } from "../github-
|
|
1
|
+
import { c as enabledFromEnvironment, o as apiTokenFromEnvironment, s as buildNameFromEnvironment } from "../git-Bjs0WQcc.mjs";
|
|
2
|
+
import { a as putIssueComment, i as uploadFileChanges, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as createCheckRun } from "../github-C4q0zf6K.mjs";
|
|
3
3
|
export { apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { r as pluralise } from "./error-BYLsj5YU.mjs";
|
|
3
|
-
import { c as enabledFromEnvironment, h as findRoot, i as fastForwardBranch, l as getOwnerAndRepo, m as getChangedFiles, o as apiTokenFromEnvironment, s as buildNameFromEnvironment, u as getHeadCommitId } from "./git-
|
|
3
|
+
import { c as enabledFromEnvironment, h as findRoot, i as fastForwardBranch, l as getOwnerAndRepo, m as getChangedFiles, o as apiTokenFromEnvironment, s as buildNameFromEnvironment, u as getHeadCommitId } from "./git-Bjs0WQcc.mjs";
|
|
4
4
|
import fs from "fs-extra";
|
|
5
5
|
import path from "path";
|
|
6
6
|
//#region src/github/octokit.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
2
2
|
const require_error = require("./error-BnrwrJEG.cjs");
|
|
3
|
-
const require_git = require("./git-
|
|
3
|
+
const require_git = require("./git-BRIEV0SC.cjs");
|
|
4
4
|
let fs_extra = require("fs-extra");
|
|
5
5
|
fs_extra = require_rolldown_runtime.__toESM(fs_extra, 1);
|
|
6
6
|
let path = require("path");
|
|
@@ -25,7 +25,7 @@ interface ChangedFile {
|
|
|
25
25
|
path: string;
|
|
26
26
|
state: ChangedFileState;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
type ChangedFilesParameters = {
|
|
29
29
|
dir: string;
|
|
30
30
|
/**
|
|
31
31
|
* File changes to exclude from the result.
|
|
@@ -33,13 +33,34 @@ interface ChangedFilesParameters {
|
|
|
33
33
|
* Defaults to `[]` (no exclusions).
|
|
34
34
|
*/
|
|
35
35
|
ignore?: ChangedFile[];
|
|
36
|
-
}
|
|
36
|
+
} & ({
|
|
37
|
+
/**
|
|
38
|
+
* Compare files changed starting from this Git reference.
|
|
39
|
+
*
|
|
40
|
+
* If omitted, defaults to the parent of `dst`.
|
|
41
|
+
*/
|
|
42
|
+
src?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Compare files changed up to this Git reference.
|
|
45
|
+
*
|
|
46
|
+
* If omitted, defaults to the working directory.
|
|
47
|
+
*/
|
|
48
|
+
dst: string;
|
|
49
|
+
} | {
|
|
50
|
+
src?: never;
|
|
51
|
+
dst?: never;
|
|
52
|
+
});
|
|
37
53
|
/**
|
|
38
|
-
* Returns all the files which have been added, modified or deleted
|
|
39
|
-
*
|
|
54
|
+
* Returns all the files which have been added, modified or deleted.
|
|
55
|
+
*
|
|
56
|
+
* Defaults to file changes in the working directory of the local Git repository
|
|
57
|
+
* since the last commit, but can also look at a specific `dst` reference, or
|
|
58
|
+
* the changes between `src` and `dst` references.
|
|
40
59
|
*/
|
|
41
60
|
declare const getChangedFiles: ({
|
|
42
61
|
dir,
|
|
62
|
+
src,
|
|
63
|
+
dst,
|
|
43
64
|
ignore
|
|
44
65
|
}: ChangedFilesParameters) => Promise<ChangedFile[]>;
|
|
45
66
|
//#endregion
|
|
@@ -25,7 +25,7 @@ interface ChangedFile {
|
|
|
25
25
|
path: string;
|
|
26
26
|
state: ChangedFileState;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
type ChangedFilesParameters = {
|
|
29
29
|
dir: string;
|
|
30
30
|
/**
|
|
31
31
|
* File changes to exclude from the result.
|
|
@@ -33,13 +33,34 @@ interface ChangedFilesParameters {
|
|
|
33
33
|
* Defaults to `[]` (no exclusions).
|
|
34
34
|
*/
|
|
35
35
|
ignore?: ChangedFile[];
|
|
36
|
-
}
|
|
36
|
+
} & ({
|
|
37
|
+
/**
|
|
38
|
+
* Compare files changed starting from this Git reference.
|
|
39
|
+
*
|
|
40
|
+
* If omitted, defaults to the parent of `dst`.
|
|
41
|
+
*/
|
|
42
|
+
src?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Compare files changed up to this Git reference.
|
|
45
|
+
*
|
|
46
|
+
* If omitted, defaults to the working directory.
|
|
47
|
+
*/
|
|
48
|
+
dst: string;
|
|
49
|
+
} | {
|
|
50
|
+
src?: never;
|
|
51
|
+
dst?: never;
|
|
52
|
+
});
|
|
37
53
|
/**
|
|
38
|
-
* Returns all the files which have been added, modified or deleted
|
|
39
|
-
*
|
|
54
|
+
* Returns all the files which have been added, modified or deleted.
|
|
55
|
+
*
|
|
56
|
+
* Defaults to file changes in the working directory of the local Git repository
|
|
57
|
+
* since the last commit, but can also look at a specific `dst` reference, or
|
|
58
|
+
* the changes between `src` and `dst` references.
|
|
40
59
|
*/
|
|
41
60
|
declare const getChangedFiles: ({
|
|
42
61
|
dir,
|
|
62
|
+
src,
|
|
63
|
+
dst,
|
|
43
64
|
ignore
|
|
44
65
|
}: ChangedFilesParameters) => Promise<ChangedFile[]>;
|
|
45
66
|
//#endregion
|
package/lib/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_buildkite = require("./buildkite-_FU8d_a-.cjs");
|
|
3
3
|
const require_cdk_index = require("./cdk/index.cjs");
|
|
4
|
-
const require_git = require("./git-
|
|
5
|
-
const require_github = require("./github-
|
|
4
|
+
const require_git = require("./git-BRIEV0SC.cjs");
|
|
5
|
+
const require_github = require("./github-CMoF4jl9.cjs");
|
|
6
6
|
const require_net = require("./net-4Ly1AB2r.cjs");
|
|
7
7
|
Object.defineProperty(exports, "Buildkite", {
|
|
8
8
|
enumerable: true,
|
package/lib/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as index_d_exports } from "./index-CNxgBJm_.cjs";
|
|
2
2
|
import { t as index_d_exports$1 } from "./cdk/index.cjs";
|
|
3
|
-
import { t as index_d_exports$2 } from "./index-
|
|
4
|
-
import { t as index_d_exports$3 } from "./index-
|
|
3
|
+
import { t as index_d_exports$2 } from "./index-CyA0bI1V.cjs";
|
|
4
|
+
import { t as index_d_exports$3 } from "./index-Disq-dHD.cjs";
|
|
5
5
|
import { t as index_d_exports$4 } from "./index-Kyp8ZCwF.cjs";
|
|
6
6
|
export { index_d_exports as Buildkite, index_d_exports$1 as Cdk, index_d_exports$2 as Git, index_d_exports$3 as GitHub, index_d_exports$4 as Net };
|
package/lib/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as index_d_exports } from "./index-CNxgBJm_.mjs";
|
|
2
2
|
import { t as index_d_exports$1 } from "./cdk/index.mjs";
|
|
3
|
-
import { t as index_d_exports$2 } from "./index-
|
|
4
|
-
import { t as index_d_exports$3 } from "./index-
|
|
3
|
+
import { t as index_d_exports$2 } from "./index-CyA0bI1V.mjs";
|
|
4
|
+
import { t as index_d_exports$3 } from "./index-Dsnw8lVr.mjs";
|
|
5
5
|
import { t as index_d_exports$4 } from "./index-Kyp8ZCwF.mjs";
|
|
6
6
|
export { index_d_exports as Buildkite, index_d_exports$1 as Cdk, index_d_exports$2 as Git, index_d_exports$3 as GitHub, index_d_exports$4 as Net };
|
package/lib/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as buildkite_exports } from "./buildkite-DdGh6ljO.mjs";
|
|
2
2
|
import { t as cdk_exports } from "./cdk/index.mjs";
|
|
3
|
-
import { t as git_exports } from "./git-
|
|
4
|
-
import { t as github_exports } from "./github-
|
|
3
|
+
import { t as git_exports } from "./git-Bjs0WQcc.mjs";
|
|
4
|
+
import { t as github_exports } from "./github-C4q0zf6K.mjs";
|
|
5
5
|
import { t as net_exports } from "./net-Bi0PXcTy.mjs";
|
|
6
6
|
export { buildkite_exports as Buildkite, cdk_exports as Cdk, git_exports as Git, github_exports as GitHub, net_exports as Net };
|