@mp-lb/forum-cli 0.1.2 → 0.1.6

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/index.d.ts CHANGED
@@ -1,5 +1,20 @@
1
1
  #!/usr/bin/env node
2
- type CheckoutConflictType = "ambiguous-local-move" | "content-both-changed" | "local-change-remote-delete" | "local-delete-remote-change" | "local-move-remote-change" | "delete-move" | "move-destination-exists" | "move-move-different-destinations" | "out-of-scope-path" | "reference-local-file" | "read-only-local-change" | "remote-move-local-change" | "reserved-metadata-path" | "unsupported-local-entry";
2
+ type SyncRule = {
3
+ id: string;
4
+ includeHidden?: boolean;
5
+ path: string;
6
+ readonly: boolean;
7
+ store: string;
8
+ storeOwner: string;
9
+ storeSlug: string;
10
+ target: string;
11
+ };
12
+
13
+ type CheckoutIgnoreMatcher = {
14
+ ignores: (candidate: string) => boolean;
15
+ };
16
+
17
+ type CheckoutConflictType = "ambiguous-local-move" | "shared-ignore-conflict" | "content-both-changed" | "local-change-remote-delete" | "local-delete-remote-change" | "local-move-remote-change" | "delete-move" | "move-destination-exists" | "move-move-different-destinations" | "out-of-scope-path" | "reference-local-file" | "read-only-local-change" | "remote-move-local-change" | "reserved-metadata-path" | "unsupported-local-entry";
3
18
  type CheckoutConflict = {
4
19
  message: string;
5
20
  relatedPaths?: string[];
@@ -18,17 +33,6 @@ type CheckoutConflictIssue = {
18
33
  };
19
34
  type CheckoutIssue = CheckoutConflictIssue;
20
35
 
21
- type SyncRule = {
22
- id: string;
23
- includeHidden?: boolean;
24
- path: string;
25
- readonly: boolean;
26
- store: string;
27
- storeOwner: string;
28
- storeSlug: string;
29
- target: string;
30
- };
31
-
32
36
  type CheckoutResult = {
33
37
  deleted: number;
34
38
  details: CheckoutFileResult[];
@@ -59,7 +63,9 @@ type CheckoutFileResult = {
59
63
  };
60
64
  type ReferenceSource = "reference";
61
65
  declare const resolveCheckoutConfig: (startDir?: string) => Promise<{
66
+ ignoreMatchersByRule: Record<string, CheckoutIgnoreMatcher>;
62
67
  ignore: string[];
68
+ ignorePatternsByStore: Record<string, string[]>;
63
69
  configRootDir: string;
64
70
  rootDir: string;
65
71
  defaultStore?: string;