@uniqbit/mate-core 0.17.2-canary.2 → 0.17.2-canary.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniqbit/mate-core",
3
- "version": "0.17.2-canary.2",
3
+ "version": "0.17.2-canary.3",
4
4
  "description": "Core framework and plugin APIs for Mate.",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -166,11 +166,9 @@ export async function runInstallCommand(argv: string[], cwd = process.cwd()): Pr
166
166
  );
167
167
  if (drift.length > 0) {
168
168
  process.stderr.write(
169
- `${FRAMEWORK_NAME}: plugin-generated files differ from the committed checkout: ${drift.join(", ")}\n` +
169
+ `${FRAMEWORK_NAME}: warning: plugin-generated files differ from the committed checkout: ${drift.join(", ")}\n` +
170
170
  `Prepare and commit them in the companion's authoring flow; the checkout was left unchanged.\n`,
171
171
  );
172
- process.exitCode = 1;
173
- return false;
174
172
  }
175
173
  } else {
176
174
  await reconcileInstalledCompanion(plan);
@@ -25,22 +25,16 @@ function changedPaths(cwd: string): string[] {
25
25
  }
26
26
 
27
27
  /**
28
- * Checks that what plugins would generate is already committed. The live
29
- * checkout must have no edits of its own; the projection then runs against a
30
- * disposable clone of its commit, and any file that differs afterwards is
31
- * drift. Nothing is written back to the live checkout. Returns the drifting
32
- * paths (empty when the checkout is complete).
28
+ * Reports what plugins would generate that is not already committed. The
29
+ * projection runs against a disposable clone of the checkout's commit, so edits
30
+ * in the live checkout neither matter nor are touched, and any file that
31
+ * differs afterwards is drift. Nothing is written back to the live checkout.
32
+ * Returns the drifting paths (empty when the commit is complete).
33
33
  */
34
34
  export async function verifyTrackedPluginOutputs(
35
35
  companionPath: string,
36
36
  project: StagedProjection,
37
37
  ): Promise<string[]> {
38
- const pending = changedPaths(companionPath);
39
- if (pending.length > 0) {
40
- throw new TrackedOutputError(
41
- `the checkout has uncommitted changes, which frozen setup will not overwrite: ${pending.join(", ")}`,
42
- );
43
- }
44
38
  const root = await fs.mkdtemp(path.join(os.tmpdir(), "mate-staging-"));
45
39
  try {
46
40
  const staged = path.join(root, "companion");