goosetools-worker 0.2.1 → 0.2.2
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 +1 -1
- package/worker/service.js +11 -2
package/package.json
CHANGED
package/worker/service.js
CHANGED
|
@@ -217,11 +217,20 @@ export function install({ url, token, root }) {
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
+
// Removes THIS worker, not the whole ~/.goosetools directory. It used to take
|
|
221
|
+
// the directory, which was harmless while everything in there was either this
|
|
222
|
+
// worker's or re-derivable from the server — and stopped being harmless when
|
|
223
|
+
// the Overlay Factory started keeping its puzzle library, learned looks and
|
|
224
|
+
// used-card record in ~/.goosetools/overlay. Nothing else has a copy of those,
|
|
225
|
+
// and `npx goosetools uninstall` runs this. The shared token file stays: the
|
|
226
|
+
// other workers are still using it.
|
|
220
227
|
export function uninstall() {
|
|
221
228
|
if (process.platform === "darwin") macUninstall();
|
|
222
229
|
else if (process.platform === "win32") winUninstall();
|
|
223
|
-
rmSync(
|
|
224
|
-
|
|
230
|
+
rmSync(APP_PREFIX, { recursive: true, force: true });
|
|
231
|
+
rmSync(join(GOOSE_DIR, "worker.log"), { force: true });
|
|
232
|
+
rmSync(join(GOOSE_DIR, "worker.err.log"), { force: true });
|
|
233
|
+
console.log("✓ Carousel worker removed. This computer no longer makes carousels.");
|
|
225
234
|
}
|
|
226
235
|
|
|
227
236
|
// ── update ───────────────────────────────────────────────────────────────────
|