@monoweave/git 1.2.5 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/gitCommands.d.ts +21 -21
- package/lib/parseRepositoryProperty.d.ts +1 -1
- package/package.json +13 -13
package/lib/gitCommands.d.ts
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import { type YarnContext } from '@monoweave/types';
|
|
2
2
|
export declare const gitUpstreamBranch: ({ cwd, context, remote, }: {
|
|
3
3
|
cwd: string;
|
|
4
|
-
context?: YarnContext
|
|
4
|
+
context?: YarnContext;
|
|
5
5
|
remote: string;
|
|
6
6
|
}) => Promise<string>;
|
|
7
7
|
export declare const gitCheckout: ({ files }: {
|
|
8
8
|
files: string[];
|
|
9
9
|
}, { cwd, context, remote }: {
|
|
10
10
|
cwd: string;
|
|
11
|
-
context?: YarnContext
|
|
11
|
+
context?: YarnContext;
|
|
12
12
|
remote: string;
|
|
13
13
|
}) => Promise<void>;
|
|
14
14
|
export declare const gitResolveSha: (ref: string, { cwd, context }: {
|
|
15
15
|
cwd: string;
|
|
16
|
-
context?: YarnContext
|
|
16
|
+
context?: YarnContext;
|
|
17
17
|
}) => Promise<string>;
|
|
18
18
|
export declare const gitDiffTree: (ref: string, { cwd, context, onlyIncludeDeletedFiles, paths, fetch, }: {
|
|
19
19
|
cwd: string;
|
|
20
|
-
context?: YarnContext
|
|
21
|
-
onlyIncludeDeletedFiles?: boolean
|
|
22
|
-
paths?: string[]
|
|
23
|
-
fetch?: boolean
|
|
20
|
+
context?: YarnContext;
|
|
21
|
+
onlyIncludeDeletedFiles?: boolean;
|
|
22
|
+
paths?: string[];
|
|
23
|
+
fetch?: boolean;
|
|
24
24
|
}) => Promise<string>;
|
|
25
25
|
export declare const gitLog: (from: string, to: string, { cwd, DELIMITER, context }: {
|
|
26
26
|
cwd: string;
|
|
27
27
|
DELIMITER: string;
|
|
28
|
-
context?: YarnContext
|
|
28
|
+
context?: YarnContext;
|
|
29
29
|
}) => Promise<string>;
|
|
30
30
|
export declare const gitTag: (tag: string, { cwd, context }: {
|
|
31
31
|
cwd: string;
|
|
32
|
-
context?: YarnContext
|
|
32
|
+
context?: YarnContext;
|
|
33
33
|
}) => Promise<void>;
|
|
34
34
|
export declare const gitPushTags: ({ cwd, remote, context, dryRun, }: {
|
|
35
35
|
cwd: string;
|
|
36
36
|
remote: string;
|
|
37
|
-
context?: YarnContext
|
|
38
|
-
dryRun?: boolean
|
|
37
|
+
context?: YarnContext;
|
|
38
|
+
dryRun?: boolean;
|
|
39
39
|
}) => Promise<void>;
|
|
40
40
|
export declare const gitPull: ({ cwd, remote, context, autostash, strategyOption, }: {
|
|
41
41
|
cwd: string;
|
|
42
42
|
remote: string;
|
|
43
|
-
context?: YarnContext
|
|
44
|
-
autostash?: boolean
|
|
45
|
-
strategyOption?:
|
|
43
|
+
context?: YarnContext;
|
|
44
|
+
autostash?: boolean;
|
|
45
|
+
strategyOption?: 'theirs';
|
|
46
46
|
}) => Promise<void>;
|
|
47
47
|
export declare const gitPush: ({ cwd, remote, context, dryRun, }: {
|
|
48
48
|
cwd: string;
|
|
49
49
|
remote: string;
|
|
50
|
-
context?: YarnContext
|
|
51
|
-
dryRun?: boolean
|
|
50
|
+
context?: YarnContext;
|
|
51
|
+
dryRun?: boolean;
|
|
52
52
|
}) => Promise<void>;
|
|
53
53
|
export declare const gitLastTaggedCommit: ({ cwd, context, prerelease, }: {
|
|
54
54
|
cwd: string;
|
|
55
|
-
context?: YarnContext
|
|
56
|
-
prerelease?: boolean
|
|
55
|
+
context?: YarnContext;
|
|
56
|
+
prerelease?: boolean;
|
|
57
57
|
}) => Promise<{
|
|
58
58
|
sha: string;
|
|
59
59
|
tag: string | null;
|
|
60
60
|
}>;
|
|
61
61
|
export declare const gitGlob: (globs: string[], { cwd, context }: {
|
|
62
62
|
cwd: string;
|
|
63
|
-
context?: YarnContext
|
|
63
|
+
context?: YarnContext;
|
|
64
64
|
}) => Promise<string[]>;
|
|
65
65
|
export declare const gitAdd: (paths: string[], { cwd, context }: {
|
|
66
66
|
cwd: string;
|
|
67
|
-
context?: YarnContext
|
|
67
|
+
context?: YarnContext;
|
|
68
68
|
}) => Promise<void>;
|
|
69
69
|
export declare const gitCommit: (message: string, { cwd, context }: {
|
|
70
70
|
cwd: string;
|
|
71
|
-
context?: YarnContext
|
|
71
|
+
context?: YarnContext;
|
|
72
72
|
}) => Promise<void>;
|
|
@@ -6,5 +6,5 @@ export interface RepositoryInfo {
|
|
|
6
6
|
repoUrl: string | null;
|
|
7
7
|
}
|
|
8
8
|
export declare const parseRepositoryProperty: (workspace: Workspace, { fallbackToTopLevel }?: {
|
|
9
|
-
fallbackToTopLevel?: boolean
|
|
9
|
+
fallbackToTopLevel?: boolean;
|
|
10
10
|
}) => Promise<RepositoryInfo>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monoweave/git",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/monoweave/monoweave.git",
|
|
@@ -30,25 +30,25 @@
|
|
|
30
30
|
"prepack": "run workspace:build \"$(pwd)\""
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@monoweave/io": "1.
|
|
34
|
-
"@monoweave/logging": "1.
|
|
33
|
+
"@monoweave/io": "1.4.1",
|
|
34
|
+
"@monoweave/logging": "1.4.1",
|
|
35
35
|
"@monoweave/test-utils": "link:../../testUtils",
|
|
36
|
-
"@monoweave/types": "1.1
|
|
36
|
+
"@monoweave/types": "1.4.1",
|
|
37
37
|
"@types/jest": "^29.5.12",
|
|
38
|
-
"@types/micromatch": "^4.0.
|
|
39
|
-
"@types/node": "^20.12.
|
|
40
|
-
"@yarnpkg/core": "^4.0.
|
|
41
|
-
"@yarnpkg/fslib": "^3.0
|
|
38
|
+
"@types/micromatch": "^4.0.7",
|
|
39
|
+
"@types/node": "^20.12.11",
|
|
40
|
+
"@yarnpkg/core": "^4.0.5",
|
|
41
|
+
"@yarnpkg/fslib": "^3.1.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"micromatch": "^4.0.5"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@monoweave/io": "^1.
|
|
48
|
-
"@monoweave/logging": "^1.
|
|
49
|
-
"@monoweave/types": "^1.
|
|
50
|
-
"@yarnpkg/core": "^4.0.
|
|
51
|
-
"@yarnpkg/fslib": "^3.0
|
|
47
|
+
"@monoweave/io": "^1.4.0",
|
|
48
|
+
"@monoweave/logging": "^1.4.0",
|
|
49
|
+
"@monoweave/types": "^1.4.0",
|
|
50
|
+
"@yarnpkg/core": "^4.0.5",
|
|
51
|
+
"@yarnpkg/fslib": "^3.1.0"
|
|
52
52
|
},
|
|
53
53
|
"types": "./lib/index.d.ts"
|
|
54
54
|
}
|