opencode-codebase-index 0.8.0 → 0.8.1

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/dist/index.cjs CHANGED
@@ -2111,9 +2111,9 @@ var NodeFsHandler = class {
2111
2111
  if (this.fsw.closed) {
2112
2112
  return;
2113
2113
  }
2114
- const dirname8 = sp.dirname(file);
2114
+ const dirname9 = sp.dirname(file);
2115
2115
  const basename5 = sp.basename(file);
2116
- const parent = this.fsw._getWatchedDir(dirname8);
2116
+ const parent = this.fsw._getWatchedDir(dirname9);
2117
2117
  let prevStats = stats;
2118
2118
  if (parent.has(basename5))
2119
2119
  return;
@@ -2140,7 +2140,7 @@ var NodeFsHandler = class {
2140
2140
  prevStats = newStats2;
2141
2141
  }
2142
2142
  } catch (error) {
2143
- this.fsw._remove(dirname8, basename5);
2143
+ this.fsw._remove(dirname9, basename5);
2144
2144
  }
2145
2145
  } else if (parent.has(basename5)) {
2146
2146
  const at = newStats.atimeMs;
@@ -7651,6 +7651,7 @@ var Indexer = class {
7651
7651
  }
7652
7652
  atomicWriteSync(targetPath, data) {
7653
7653
  const tempPath = `${targetPath}.tmp`;
7654
+ (0, import_fs6.mkdirSync)(path8.dirname(targetPath), { recursive: true });
7654
7655
  (0, import_fs6.writeFileSync)(tempPath, data);
7655
7656
  (0, import_fs6.renameSync)(tempPath, targetPath);
7656
7657
  }