setclaw 1.0.6 → 1.0.7
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/bin/postinstall.mjs +5 -9
- package/package.json +1 -1
package/bin/postinstall.mjs
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { join } from "path";
|
|
4
|
+
import { homedir } from "os";
|
|
5
|
+
import { writeFileSync, mkdirSync } from "fs";
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { homedir as getHome } from "os";
|
|
9
|
-
import { writeFileSync as wf, mkdirSync } from "fs";
|
|
10
|
-
|
|
11
|
-
const markerDir = pathJoin(getHome(), ".setclaw");
|
|
12
|
-
const markerFile = pathJoin(markerDir, "pending");
|
|
7
|
+
const markerDir = join(homedir(), ".setclaw");
|
|
8
|
+
const markerFile = join(markerDir, "pending");
|
|
13
9
|
|
|
14
10
|
try {
|
|
15
11
|
mkdirSync(markerDir, { recursive: true });
|