@h-rig/repos-plugin 0.0.6-alpha.157 → 0.0.6-alpha.159
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/src/index.d.ts +1 -0
- package/dist/src/index.js +507 -81
- package/dist/src/layout.js +1 -1
- package/dist/src/mirror/bootstrap.js +2 -2
- package/dist/src/mirror/refresh.js +2 -2
- package/dist/src/mirror/state.js +2 -2
- package/dist/src/plugin.d.ts +2 -2
- package/dist/src/plugin.js +516 -71
- package/dist/src/registry.js +2 -2
- package/dist/src/repo-operations.d.ts +3 -0
- package/dist/src/repo-operations.js +871 -0
- package/dist/src/service.d.ts +1 -1
- package/dist/src/service.js +4 -4
- package/package.json +3 -4
package/dist/src/service.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* this service shares the same state, matching the pre-extraction behaviour
|
|
8
8
|
* where these functions operated on a single runtime-global map.
|
|
9
9
|
*/
|
|
10
|
-
import type { ManagedRepoService } from "@rig/
|
|
10
|
+
import type { ManagedRepoService } from "@rig/contracts";
|
|
11
11
|
export declare const managedRepoService: ManagedRepoService;
|
|
12
12
|
/** Lazy-import handle for the config-light capability `run()` in plugin.ts. */
|
|
13
13
|
export declare const svc: ManagedRepoService;
|
package/dist/src/service.js
CHANGED
|
@@ -51,15 +51,15 @@ function repoRegistrationToManagedEntry(reg) {
|
|
|
51
51
|
alias: reg.defaultPath ?? reg.id,
|
|
52
52
|
defaultBranch: reg.defaultBranch,
|
|
53
53
|
defaultRemoteUrl: reg.url,
|
|
54
|
-
remoteEnvVar: reg.remoteEnvVar,
|
|
55
|
-
checkoutEnvVar: reg.checkoutEnvVar
|
|
54
|
+
...reg.remoteEnvVar !== undefined ? { remoteEnvVar: reg.remoteEnvVar } : {},
|
|
55
|
+
...reg.checkoutEnvVar !== undefined ? { checkoutEnvVar: reg.checkoutEnvVar } : {}
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// packages/repos-plugin/src/layout.ts
|
|
60
60
|
import { existsSync } from "fs";
|
|
61
61
|
import { basename, dirname, join, resolve } from "path";
|
|
62
|
-
import { resolveMonorepoRoot } from "@rig/
|
|
62
|
+
import { resolveMonorepoRoot } from "@rig/core/layout";
|
|
63
63
|
function resolveRepoStateDir(projectRoot) {
|
|
64
64
|
const normalizedProjectRoot = resolve(projectRoot);
|
|
65
65
|
const projectParent = dirname(normalizedProjectRoot);
|
|
@@ -120,7 +120,7 @@ import { existsSync as existsSync2, mkdirSync, realpathSync } from "fs";
|
|
|
120
120
|
import { resolve as resolve2 } from "path";
|
|
121
121
|
|
|
122
122
|
// packages/repos-plugin/src/mirror/state.ts
|
|
123
|
-
import { readAuthorityProjectStateJson, writeAuthorityProjectStateJson } from "@rig/
|
|
123
|
+
import { readAuthorityProjectStateJson, writeAuthorityProjectStateJson } from "@rig/core/json-files";
|
|
124
124
|
var STATE_VERSION = 1;
|
|
125
125
|
function defaultMirrorState(projectRoot, repoId) {
|
|
126
126
|
const layout = resolveManagedRepoLayout(projectRoot, repoId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-rig/repos-plugin",
|
|
3
|
-
"version": "0.0.6-alpha.
|
|
3
|
+
"version": "0.0.6-alpha.159",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "First-party managed-repo (registry/layout/mirror) capability plugin for Rig.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -29,8 +29,7 @@
|
|
|
29
29
|
"module": "./dist/src/index.js",
|
|
30
30
|
"types": "./dist/src/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.
|
|
33
|
-
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.
|
|
34
|
-
"@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.157"
|
|
32
|
+
"@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.159",
|
|
33
|
+
"@rig/core": "npm:@h-rig/core@0.0.6-alpha.159"
|
|
35
34
|
}
|
|
36
35
|
}
|