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/README.md +1 -0
- package/dist/cli.cjs +1 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +4 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/native/codebase-index-native.darwin-arm64.node +0 -0
- package/native/codebase-index-native.darwin-x64.node +0 -0
- package/native/codebase-index-native.linux-x64-gnu.node +0 -0
- package/native/codebase-index-native.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1246,7 +1246,7 @@ function buildPerQueryArtifact(perQuery) {
|
|
|
1246
1246
|
|
|
1247
1247
|
// src/eval/runner.ts
|
|
1248
1248
|
import { existsSync as existsSync7 } from "fs";
|
|
1249
|
-
import { mkdirSync as
|
|
1249
|
+
import { mkdirSync as mkdirSync4 } from "fs";
|
|
1250
1250
|
import { readFileSync as readFileSync8 } from "fs";
|
|
1251
1251
|
import { rmSync } from "fs";
|
|
1252
1252
|
import { writeFileSync as writeFileSync4 } from "fs";
|
|
@@ -1589,7 +1589,7 @@ function loadMergedConfig(projectRoot) {
|
|
|
1589
1589
|
}
|
|
1590
1590
|
|
|
1591
1591
|
// src/indexer/index.ts
|
|
1592
|
-
import { existsSync as existsSync6, readFileSync as readFileSync6, writeFileSync as writeFileSync3, renameSync, unlinkSync, promises as fsPromises2 } from "fs";
|
|
1592
|
+
import { existsSync as existsSync6, readFileSync as readFileSync6, writeFileSync as writeFileSync3, renameSync, unlinkSync, mkdirSync as mkdirSync3, promises as fsPromises2 } from "fs";
|
|
1593
1593
|
import * as path8 from "path";
|
|
1594
1594
|
import { performance as performance2 } from "perf_hooks";
|
|
1595
1595
|
|
|
@@ -5885,6 +5885,7 @@ var Indexer = class {
|
|
|
5885
5885
|
}
|
|
5886
5886
|
atomicWriteSync(targetPath, data) {
|
|
5887
5887
|
const tempPath = `${targetPath}.tmp`;
|
|
5888
|
+
mkdirSync3(path8.dirname(targetPath), { recursive: true });
|
|
5888
5889
|
writeFileSync3(tempPath, data);
|
|
5889
5890
|
renameSync(tempPath, targetPath);
|
|
5890
5891
|
}
|
|
@@ -8784,7 +8785,7 @@ function ensureLocalEvalProjectConfig(projectRoot, configPath) {
|
|
|
8784
8785
|
projectRoot,
|
|
8785
8786
|
resolvedConfigPath
|
|
8786
8787
|
);
|
|
8787
|
-
|
|
8788
|
+
mkdirSync4(path9.dirname(localConfigPath), { recursive: true });
|
|
8788
8789
|
writeFileSync4(localConfigPath, JSON.stringify(sourceConfig, null, 2), "utf-8");
|
|
8789
8790
|
return localConfigPath;
|
|
8790
8791
|
}
|