add api package cli arg,

fix comments
This commit is contained in:
2023-08-05 00:38:57 +00:00
parent 7b80445cf0
commit 491e492206
6 changed files with 23 additions and 7 deletions

View File

@@ -1,2 +1,4 @@
import { readFileSync } from "fs";
export default JSON.parse(readFileSync("package.json"));
export default (path) => {
return JSON.parse(readFileSync(path));
};