basic seach small json data set models and parts
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
const PARTS_PATH = path.join(process.cwd(), "src/lib/data/parts.js");
|
||||
|
||||
let content = fs.readFileSync(PARTS_PATH, "utf8");
|
||||
|
||||
content = content.replace(/fitsModels/g, "compatibleModels");
|
||||
|
||||
fs.writeFileSync(PARTS_PATH, content);
|
||||
|
||||
console.log("✔ Migration complete: fitsModels → compatibleModels");
|
||||
Reference in New Issue
Block a user