Skip to content

Commit 58ae79b

Browse files
committed
fix update json path
1 parent a5feea1 commit 58ae79b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/modules/db/shadcn.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ async function build_from_docs_and_examples() {
9393

9494
async function build() {
9595
const db = await build_from_docs_and_examples();
96-
fs.writeFileSync(`./library/shadcn_dump.json`, JSON.stringify(db));
96+
fs.writeFileSync(`./src/library/shadcn_dump.json`, JSON.stringify(db));
9797
}
9898
export { build };

src/modules/multipass/design_task.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from "node:fs";
33
import { Schema } from "mongoose";
44
import { OpenAI } from "openai";
55

6-
import db_shadcn from "../../../library/shadcn_dump.json" assert { type: "json" };
6+
import db_shadcn from "../../library/shadcn_dump.json" assert { type: "json" };
77

88
const openai = new OpenAI({
99
apiKey: process.env.OPENAI_API_KEY,

src/modules/multipass/iterate_task.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from "node:fs";
33
import { Schema } from "mongoose";
44
import { OpenAI } from "openai";
55

6-
import db_shadcn from "../../../library/shadcn_dump.json" assert { type: "json" };
6+
import db_shadcn from "../../library/shadcn_dump.json" assert { type: "json" };
77

88
const openai = new OpenAI({
99
apiKey: process.env.OPENAI_API_KEY,

src/modules/multipass/rag_library_components.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import shadcn_db from "../../../library/shadcn_dump.json" assert { type: "json" };
1+
import shadcn_db from "../../library/shadcn_dump.json" assert { type: "json" };
22

33
async function run(query) {
44
return shadcn_db.filter((e) =>

0 commit comments

Comments
 (0)