@h-rig/repos-plugin 0.0.6-alpha.157 → 0.0.6-alpha.158
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
|
@@ -23,7 +23,7 @@ function listManagedRepoEntries() {
|
|
|
23
23
|
// packages/repos-plugin/src/layout.ts
|
|
24
24
|
import { existsSync } from "fs";
|
|
25
25
|
import { basename, dirname, join, resolve } from "path";
|
|
26
|
-
import { resolveMonorepoRoot } from "@rig/
|
|
26
|
+
import { resolveMonorepoRoot } from "@rig/core/layout";
|
|
27
27
|
function resolveRepoStateDir(projectRoot) {
|
|
28
28
|
const normalizedProjectRoot = resolve(projectRoot);
|
|
29
29
|
const projectParent = dirname(normalizedProjectRoot);
|
|
@@ -64,7 +64,7 @@ function resolveManagedRepoLayout(projectRoot, repoId) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
// packages/repos-plugin/src/mirror/state.ts
|
|
67
|
-
import { readAuthorityProjectStateJson, writeAuthorityProjectStateJson } from "@rig/
|
|
67
|
+
import { readAuthorityProjectStateJson, writeAuthorityProjectStateJson } from "@rig/core/json-files";
|
|
68
68
|
var STATE_VERSION = 1;
|
|
69
69
|
function defaultMirrorState(projectRoot, repoId) {
|
|
70
70
|
const layout = resolveManagedRepoLayout(projectRoot, repoId);
|
package/dist/src/mirror/state.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// packages/repos-plugin/src/mirror/state.ts
|
|
3
|
-
import { readAuthorityProjectStateJson, writeAuthorityProjectStateJson } from "@rig/
|
|
3
|
+
import { readAuthorityProjectStateJson, writeAuthorityProjectStateJson } from "@rig/core/json-files";
|
|
4
4
|
|
|
5
5
|
// packages/repos-plugin/src/layout.ts
|
|
6
6
|
import { existsSync } from "fs";
|
|
7
7
|
import { basename, dirname, join, resolve } from "path";
|
|
8
|
-
import { resolveMonorepoRoot } from "@rig/
|
|
8
|
+
import { resolveMonorepoRoot } from "@rig/core/layout";
|
|
9
9
|
|
|
10
10
|
// packages/repos-plugin/src/registry.ts
|
|
11
11
|
var MANAGED_REPOS = new Map;
|
package/dist/src/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const REPOS_PLUGIN_NAME = "@rig/repos-plugin";
|
|
2
|
-
export declare const reposPlugin: import("@rig/core").RigPlugin;
|
|
3
|
-
export declare function createReposPlugin(): import("@rig/core").RigPlugin;
|
|
2
|
+
export declare const reposPlugin: import("@rig/core/config").RigPlugin;
|
|
3
|
+
export declare function createReposPlugin(): import("@rig/core/config").RigPlugin;
|
|
4
4
|
export default reposPlugin;
|