@opencode-ai/util 0.0.0-next-16727 → 0.0.0-next-16741

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 (2) hide show
  1. package/dist/global.js +2 -2
  2. package/package.json +1 -1
package/dist/global.js CHANGED
@@ -11,6 +11,7 @@ const cache = path.join(xdgCache, app);
11
11
  const config = path.join(xdgConfig, app);
12
12
  const state = path.join(xdgState, app);
13
13
  const tmp = path.join(os.tmpdir(), app);
14
+ await fs.mkdir(tmp, { recursive: true });
14
15
  const paths = {
15
16
  get home() {
16
17
  return process.env.OPENCODE_TEST_HOME ?? os.homedir();
@@ -22,7 +23,7 @@ const paths = {
22
23
  cache,
23
24
  config,
24
25
  state,
25
- tmp,
26
+ tmp: await fs.realpath(tmp),
26
27
  };
27
28
  export const Path = paths;
28
29
  Flock.setGlobal({ state });
@@ -30,7 +31,6 @@ await Promise.all([
30
31
  fs.mkdir(Path.data, { recursive: true }),
31
32
  fs.mkdir(Path.config, { recursive: true }),
32
33
  fs.mkdir(Path.state, { recursive: true }),
33
- fs.mkdir(Path.tmp, { recursive: true }),
34
34
  fs.mkdir(Path.log, { recursive: true }),
35
35
  fs.mkdir(Path.bin, { recursive: true }),
36
36
  fs.mkdir(Path.repos, { recursive: true }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/util",
4
- "version": "0.0.0-next-16727",
4
+ "version": "0.0.0-next-16741",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {