Skip to content
Snippets Groups Projects
Commit be46044b authored by Alex Yang's avatar Alex Yang
Browse files

build: fix check-minor-version.mjs

parent 154c7f8e
No related branches found
No related tags found
No related merge requests found
import { readFile, writeFile } from "node:fs/promises"; import { readFile, writeFile } from "node:fs/promises";
const packages = ["llamaindex", "env", "core"]; const packages = ["llamaindex", "env"];
const envPackageJson = JSON.parse( const envPackageJson = JSON.parse(
await readFile("./packages/env/package.json", "utf8"), await readFile("./packages/env/package.json", "utf8"),
); );
...@@ -16,7 +16,7 @@ for (const pkg of packages) { ...@@ -16,7 +16,7 @@ for (const pkg of packages) {
}); });
jsrJson.version = packageJson.version; jsrJson.version = packageJson.version;
if (pkg === "core") { if (pkg === "llamaindex") {
jsrJson.imports["@llamaindex/env"] = jsrJson.imports["@llamaindex/env"] =
`jsr:@llamaindex/env@${envPackageJson.version}`; `jsr:@llamaindex/env@${envPackageJson.version}`;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment