react-native-platform-override 0.4.7 → 0.81.0-preview.10

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.
Files changed (73) hide show
  1. package/bin.js +1 -2
  2. package/lib-commonjs/Api.d.ts +57 -56
  3. package/lib-commonjs/Api.js +187 -167
  4. package/lib-commonjs/Api.js.map +1 -1
  5. package/lib-commonjs/BatchingQueue.d.ts +15 -15
  6. package/lib-commonjs/BatchingQueue.js +57 -57
  7. package/lib-commonjs/BatchingQueue.js.map +1 -1
  8. package/lib-commonjs/Cli.d.ts +7 -7
  9. package/lib-commonjs/Cli.js +323 -291
  10. package/lib-commonjs/Cli.js.map +1 -1
  11. package/lib-commonjs/CrossProcessLock.d.ts +44 -44
  12. package/lib-commonjs/CrossProcessLock.js +147 -144
  13. package/lib-commonjs/CrossProcessLock.js.map +1 -1
  14. package/lib-commonjs/DiffStrategy.d.ts +24 -24
  15. package/lib-commonjs/DiffStrategy.js +34 -34
  16. package/lib-commonjs/DiffStrategy.js.map +1 -1
  17. package/lib-commonjs/FileRepository.d.ts +63 -62
  18. package/lib-commonjs/FileRepository.js +21 -21
  19. package/lib-commonjs/FileRepository.js.map +1 -1
  20. package/lib-commonjs/FileSearch.d.ts +21 -21
  21. package/lib-commonjs/FileSearch.js +77 -91
  22. package/lib-commonjs/FileSearch.js.map +1 -1
  23. package/lib-commonjs/FileSystemRepository.d.ts +21 -20
  24. package/lib-commonjs/FileSystemRepository.js +62 -59
  25. package/lib-commonjs/FileSystemRepository.js.map +1 -1
  26. package/lib-commonjs/GitReactFileRepository.d.ts +57 -58
  27. package/lib-commonjs/GitReactFileRepository.js +202 -208
  28. package/lib-commonjs/GitReactFileRepository.js.map +1 -1
  29. package/lib-commonjs/Hash.d.ts +34 -33
  30. package/lib-commonjs/Hash.js +81 -81
  31. package/lib-commonjs/Hash.js.map +1 -1
  32. package/lib-commonjs/Manifest.d.ts +80 -80
  33. package/lib-commonjs/Manifest.js +157 -154
  34. package/lib-commonjs/Manifest.js.map +1 -1
  35. package/lib-commonjs/Override.d.ts +182 -182
  36. package/lib-commonjs/Override.js +248 -245
  37. package/lib-commonjs/Override.js.map +1 -1
  38. package/lib-commonjs/OverrideFactory.d.ts +33 -33
  39. package/lib-commonjs/OverrideFactory.js +85 -70
  40. package/lib-commonjs/OverrideFactory.js.map +1 -1
  41. package/lib-commonjs/OverridePrompt.d.ts +30 -30
  42. package/lib-commonjs/OverridePrompt.js +130 -104
  43. package/lib-commonjs/OverridePrompt.js.map +1 -1
  44. package/lib-commonjs/PackageUtils.d.ts +15 -15
  45. package/lib-commonjs/PackageUtils.js +40 -38
  46. package/lib-commonjs/PackageUtils.js.map +1 -1
  47. package/lib-commonjs/PathUtils.d.ts +14 -14
  48. package/lib-commonjs/PathUtils.js +31 -28
  49. package/lib-commonjs/PathUtils.js.map +1 -1
  50. package/lib-commonjs/Serialized.d.ts +158 -158
  51. package/lib-commonjs/Serialized.js +145 -119
  52. package/lib-commonjs/Serialized.js.map +1 -1
  53. package/lib-commonjs/UpgradeStrategy.d.ts +39 -39
  54. package/lib-commonjs/UpgradeStrategy.js +102 -99
  55. package/lib-commonjs/UpgradeStrategy.js.map +1 -1
  56. package/lib-commonjs/ValidationStrategy.d.ts +57 -57
  57. package/lib-commonjs/ValidationStrategy.js +124 -124
  58. package/lib-commonjs/ValidationStrategy.js.map +1 -1
  59. package/lib-commonjs/refFromVersion.d.ts +10 -0
  60. package/lib-commonjs/refFromVersion.js +99 -0
  61. package/lib-commonjs/refFromVersion.js.map +1 -0
  62. package/lib-commonjs/scripts/generateManifest.d.ts +7 -7
  63. package/lib-commonjs/scripts/generateManifest.js +196 -170
  64. package/lib-commonjs/scripts/generateManifest.js.map +1 -1
  65. package/lib-commonjs/scripts/hashFile.d.ts +7 -7
  66. package/lib-commonjs/scripts/hashFile.js +17 -14
  67. package/lib-commonjs/scripts/hashFile.js.map +1 -1
  68. package/lib-commonjs/scripts/testLocks.d.ts +1 -1
  69. package/lib-commonjs/scripts/testLocks.js +29 -26
  70. package/lib-commonjs/scripts/testLocks.js.map +1 -1
  71. package/package.json +53 -43
  72. package/CHANGELOG.json +0 -554
  73. package/CHANGELOG.md +0 -238
@@ -1,14 +1,14 @@
1
- /**
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * @format
6
- */
7
- /**
8
- * Convert a path to use Unix-style slashes
9
- */
10
- export declare function unixPath(filepath: string): string;
11
- /**
12
- * Normalize a path and convert to use platform-specific slashes
13
- */
14
- export declare function normalizePath(filepath: string): string;
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * @format
6
+ */
7
+ /**
8
+ * Convert a path to use Unix-style slashes
9
+ */
10
+ export declare function unixPath(filepath: string): string;
11
+ /**
12
+ * Normalize a path and convert to use platform-specific slashes
13
+ */
14
+ export declare function normalizePath(filepath: string): string;
@@ -1,29 +1,32 @@
1
- "use strict";
2
- /**
3
- * Copyright (c) Microsoft Corporation.
4
- * Licensed under the MIT License.
5
- *
6
- * @format
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.normalizePath = exports.unixPath = void 0;
10
- const path = require("path");
11
- const upath = require("upath");
12
- /**
13
- * Convert a path to use Unix-style slashes
14
- */
15
- function unixPath(filepath) {
16
- return upath.toUnix(filepath);
17
- }
18
- exports.unixPath = unixPath;
19
- /**
20
- * Normalize a path and convert to use platform-specific slashes
21
- */
22
- function normalizePath(filepath) {
23
- // path.normalize will convert unix paths to win32, but not the other way
24
- // around. Normalize to Unix paths first to get both cases.
25
- const unixStylePath = unixPath(filepath);
26
- return path.normalize(unixStylePath);
27
- }
28
- exports.normalizePath = normalizePath;
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * @format
7
+ */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.normalizePath = exports.unixPath = void 0;
13
+ const path_1 = __importDefault(require("path"));
14
+ const upath_1 = __importDefault(require("upath"));
15
+ /**
16
+ * Convert a path to use Unix-style slashes
17
+ */
18
+ function unixPath(filepath) {
19
+ return upath_1.default.toUnix(filepath);
20
+ }
21
+ exports.unixPath = unixPath;
22
+ /**
23
+ * Normalize a path and convert to use platform-specific slashes
24
+ */
25
+ function normalizePath(filepath) {
26
+ // path.normalize will convert unix paths to win32, but not the other way
27
+ // around. Normalize to Unix paths first to get both cases.
28
+ const unixStylePath = unixPath(filepath);
29
+ return path_1.default.normalize(unixStylePath);
30
+ }
31
+ exports.normalizePath = normalizePath;
29
32
  //# sourceMappingURL=PathUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PathUtils.js","sourceRoot":"","sources":["../src/PathUtils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6BAA6B;AAC7B,+BAA+B;AAE/B;;GAEG;AACH,SAAgB,QAAQ,CAAC,QAAgB;IACvC,OAAO,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC;AAFD,4BAEC;AAED;;GAEG;AACH,SAAgB,aAAa,CAAC,QAAgB;IAC5C,yEAAyE;IACzE,2DAA2D;IAC3D,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzC,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AACvC,CAAC;AALD,sCAKC"}
1
+ {"version":3,"file":"PathUtils.js","sourceRoot":"","sources":["../src/PathUtils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,gDAAwB;AACxB,kDAA0B;AAE1B;;GAEG;AACH,SAAgB,QAAQ,CAAC,QAAgB;IACvC,OAAO,eAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC;AAFD,4BAEC;AAED;;GAEG;AACH,SAAgB,aAAa,CAAC,QAAgB;IAC5C,yEAAyE;IACzE,2DAA2D;IAC3D,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzC,OAAO,cAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AACvC,CAAC;AALD,sCAKC","sourcesContent":["/**\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * @format\n */\n\nimport path from 'path';\nimport upath from 'upath';\n\n/**\n * Convert a path to use Unix-style slashes\n */\nexport function unixPath(filepath: string): string {\n return upath.toUnix(filepath);\n}\n\n/**\n * Normalize a path and convert to use platform-specific slashes\n */\nexport function normalizePath(filepath: string): string {\n // path.normalize will convert unix paths to win32, but not the other way\n // around. Normalize to Unix paths first to get both cases.\n const unixStylePath = unixPath(filepath);\n return path.normalize(unixStylePath);\n}\n"]}
@@ -1,158 +1,158 @@
1
- /**
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * @format
6
- */
7
- import * as t from 'io-ts';
8
- /**
9
- * Serialized form of {@see PlatformOverride}
10
- */
11
- declare const PlatformOverrideType: t.TypeC<{
12
- type: t.LiteralC<"platform">;
13
- file: t.StringC;
14
- }>;
15
- /**
16
- * Serialized form of {@see PatchOverride}
17
- */
18
- declare const PatchOverrideType: t.TypeC<{
19
- type: t.LiteralC<"patch">;
20
- file: t.StringC;
21
- baseFile: t.StringC;
22
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
23
- baseHash: t.StringC;
24
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
25
- }>;
26
- /**
27
- * Serialized form of {@see DerivedOverride}
28
- */
29
- declare const DerivedOverrideType: t.TypeC<{
30
- type: t.LiteralC<"derived">;
31
- file: t.StringC;
32
- baseFile: t.StringC;
33
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
34
- baseHash: t.StringC;
35
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
36
- }>;
37
- /**
38
- * Serialized form of {@see CopyOverride}
39
- */
40
- declare const CopyOverrideType: t.TypeC<{
41
- type: t.LiteralC<"copy">;
42
- file: t.StringC;
43
- baseFile: t.StringC;
44
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
45
- baseHash: t.StringC;
46
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
47
- }>;
48
- /**
49
- * Serialized form of {@see DirectoryCopyOverride}
50
- */
51
- declare const DirectoryCopyOverrideType: t.TypeC<{
52
- type: t.LiteralC<"copy">;
53
- directory: t.StringC;
54
- baseDirectory: t.StringC;
55
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
56
- baseHash: t.StringC;
57
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
58
- }>;
59
- /**
60
- * Union of all serialized override types
61
- */
62
- declare const OverrideType: t.UnionC<[t.TypeC<{
63
- type: t.LiteralC<"platform">;
64
- file: t.StringC;
65
- }>, t.TypeC<{
66
- type: t.LiteralC<"patch">;
67
- file: t.StringC;
68
- baseFile: t.StringC;
69
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
70
- baseHash: t.StringC;
71
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
72
- }>, t.TypeC<{
73
- type: t.LiteralC<"derived">;
74
- file: t.StringC;
75
- baseFile: t.StringC;
76
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
77
- baseHash: t.StringC;
78
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
79
- }>, t.TypeC<{
80
- type: t.LiteralC<"copy">;
81
- file: t.StringC;
82
- baseFile: t.StringC;
83
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
84
- baseHash: t.StringC;
85
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
86
- }>, t.TypeC<{
87
- type: t.LiteralC<"copy">;
88
- directory: t.StringC;
89
- baseDirectory: t.StringC;
90
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
91
- baseHash: t.StringC;
92
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
93
- }>]>;
94
- /**
95
- * Schema for the "overrides.json" manifest
96
- */
97
- declare const ManifestType: t.TypeC<{
98
- includePatterns: t.UnionC<[t.UndefinedC, t.ArrayC<t.StringC>]>;
99
- excludePatterns: t.UnionC<[t.UndefinedC, t.ArrayC<t.StringC>]>;
100
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
101
- overrides: t.ArrayC<t.UnionC<[t.TypeC<{
102
- type: t.LiteralC<"platform">;
103
- file: t.StringC;
104
- }>, t.TypeC<{
105
- type: t.LiteralC<"patch">;
106
- file: t.StringC;
107
- baseFile: t.StringC;
108
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
109
- baseHash: t.StringC;
110
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
111
- }>, t.TypeC<{
112
- type: t.LiteralC<"derived">;
113
- file: t.StringC;
114
- baseFile: t.StringC;
115
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
116
- baseHash: t.StringC;
117
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
118
- }>, t.TypeC<{
119
- type: t.LiteralC<"copy">;
120
- file: t.StringC;
121
- baseFile: t.StringC;
122
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
123
- baseHash: t.StringC;
124
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
125
- }>, t.TypeC<{
126
- type: t.LiteralC<"copy">;
127
- directory: t.StringC;
128
- baseDirectory: t.StringC;
129
- baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
130
- baseHash: t.StringC;
131
- issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
132
- }>]>>;
133
- }>;
134
- export declare type PlatformOverride = t.TypeOf<typeof PlatformOverrideType>;
135
- export declare type PatchOverride = t.TypeOf<typeof PatchOverrideType>;
136
- export declare type DerivedOverride = t.TypeOf<typeof DerivedOverrideType>;
137
- export declare type CopyOverride = t.TypeOf<typeof CopyOverrideType>;
138
- export declare type DirectoryCopyOverride = t.TypeOf<typeof DirectoryCopyOverrideType>;
139
- export declare type Override = t.TypeOf<typeof OverrideType>;
140
- export declare type Manifest = t.TypeOf<typeof ManifestType>;
141
- /**
142
- * Read an override manifest from a file.
143
- *
144
- * @throws if the file is invalid or cannot be found
145
- */
146
- export declare function readManifestFromFile(filePath: string): Promise<Manifest>;
147
- /**
148
- * Parse a string with JSON for the override manifest into one.
149
- *
150
- * @throws if the JSON doesn't describe a valid manifest
151
- */
152
- export declare function parseManifest(json: string): Manifest;
153
- /**
154
- * Writes the manifest to a JSON file. Does not validate correctness of the
155
- * manifest.
156
- */
157
- export declare function writeManifestToFile(manifest: Manifest, filePath: string): Promise<void>;
158
- export {};
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * @format
6
+ */
7
+ import * as t from 'io-ts';
8
+ /**
9
+ * Serialized form of {@see PlatformOverride}
10
+ */
11
+ declare const PlatformOverrideType: t.TypeC<{
12
+ type: t.LiteralC<"platform">;
13
+ file: t.StringC;
14
+ }>;
15
+ /**
16
+ * Serialized form of {@see PatchOverride}
17
+ */
18
+ declare const PatchOverrideType: t.TypeC<{
19
+ type: t.LiteralC<"patch">;
20
+ file: t.StringC;
21
+ baseFile: t.StringC;
22
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
23
+ baseHash: t.StringC;
24
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
25
+ }>;
26
+ /**
27
+ * Serialized form of {@see DerivedOverride}
28
+ */
29
+ declare const DerivedOverrideType: t.TypeC<{
30
+ type: t.LiteralC<"derived">;
31
+ file: t.StringC;
32
+ baseFile: t.StringC;
33
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
34
+ baseHash: t.StringC;
35
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
36
+ }>;
37
+ /**
38
+ * Serialized form of {@see CopyOverride}
39
+ */
40
+ declare const CopyOverrideType: t.TypeC<{
41
+ type: t.LiteralC<"copy">;
42
+ file: t.StringC;
43
+ baseFile: t.StringC;
44
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
45
+ baseHash: t.StringC;
46
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
47
+ }>;
48
+ /**
49
+ * Serialized form of {@see DirectoryCopyOverride}
50
+ */
51
+ declare const DirectoryCopyOverrideType: t.TypeC<{
52
+ type: t.LiteralC<"copy">;
53
+ directory: t.StringC;
54
+ baseDirectory: t.StringC;
55
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
56
+ baseHash: t.StringC;
57
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
58
+ }>;
59
+ /**
60
+ * Union of all serialized override types
61
+ */
62
+ declare const OverrideType: t.UnionC<[t.TypeC<{
63
+ type: t.LiteralC<"platform">;
64
+ file: t.StringC;
65
+ }>, t.TypeC<{
66
+ type: t.LiteralC<"patch">;
67
+ file: t.StringC;
68
+ baseFile: t.StringC;
69
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
70
+ baseHash: t.StringC;
71
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
72
+ }>, t.TypeC<{
73
+ type: t.LiteralC<"derived">;
74
+ file: t.StringC;
75
+ baseFile: t.StringC;
76
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
77
+ baseHash: t.StringC;
78
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
79
+ }>, t.TypeC<{
80
+ type: t.LiteralC<"copy">;
81
+ file: t.StringC;
82
+ baseFile: t.StringC;
83
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
84
+ baseHash: t.StringC;
85
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
86
+ }>, t.TypeC<{
87
+ type: t.LiteralC<"copy">;
88
+ directory: t.StringC;
89
+ baseDirectory: t.StringC;
90
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
91
+ baseHash: t.StringC;
92
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
93
+ }>]>;
94
+ /**
95
+ * Schema for the "overrides.json" manifest
96
+ */
97
+ declare const ManifestType: t.TypeC<{
98
+ includePatterns: t.UnionC<[t.UndefinedC, t.ArrayC<t.StringC>]>;
99
+ excludePatterns: t.UnionC<[t.UndefinedC, t.ArrayC<t.StringC>]>;
100
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
101
+ overrides: t.ArrayC<t.UnionC<[t.TypeC<{
102
+ type: t.LiteralC<"platform">;
103
+ file: t.StringC;
104
+ }>, t.TypeC<{
105
+ type: t.LiteralC<"patch">;
106
+ file: t.StringC;
107
+ baseFile: t.StringC;
108
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
109
+ baseHash: t.StringC;
110
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
111
+ }>, t.TypeC<{
112
+ type: t.LiteralC<"derived">;
113
+ file: t.StringC;
114
+ baseFile: t.StringC;
115
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
116
+ baseHash: t.StringC;
117
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
118
+ }>, t.TypeC<{
119
+ type: t.LiteralC<"copy">;
120
+ file: t.StringC;
121
+ baseFile: t.StringC;
122
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
123
+ baseHash: t.StringC;
124
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
125
+ }>, t.TypeC<{
126
+ type: t.LiteralC<"copy">;
127
+ directory: t.StringC;
128
+ baseDirectory: t.StringC;
129
+ baseVersion: t.UnionC<[t.UndefinedC, t.StringC]>;
130
+ baseHash: t.StringC;
131
+ issue: t.UnionC<[t.UndefinedC, t.NumberC]>;
132
+ }>]>>;
133
+ }>;
134
+ export type PlatformOverride = t.TypeOf<typeof PlatformOverrideType>;
135
+ export type PatchOverride = t.TypeOf<typeof PatchOverrideType>;
136
+ export type DerivedOverride = t.TypeOf<typeof DerivedOverrideType>;
137
+ export type CopyOverride = t.TypeOf<typeof CopyOverrideType>;
138
+ export type DirectoryCopyOverride = t.TypeOf<typeof DirectoryCopyOverrideType>;
139
+ export type Override = t.TypeOf<typeof OverrideType>;
140
+ export type Manifest = t.TypeOf<typeof ManifestType>;
141
+ /**
142
+ * Read an override manifest from a file.
143
+ *
144
+ * @throws if the file is invalid or cannot be found
145
+ */
146
+ export declare function readManifestFromFile(filePath: string): Promise<Manifest>;
147
+ /**
148
+ * Parse a string with JSON for the override manifest into one.
149
+ *
150
+ * @throws if the JSON doesn't describe a valid manifest
151
+ */
152
+ export declare function parseManifest(json: string): Manifest;
153
+ /**
154
+ * Writes the manifest to a JSON file. Does not validate correctness of the
155
+ * manifest.
156
+ */
157
+ export declare function writeManifestToFile(manifest: Manifest, filePath: string): Promise<void>;
158
+ export {};