Skip to content

Commit 1404b8c

Browse files
committed
update
1 parent 1b573fd commit 1404b8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/update-meta.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ import { ESLint } from "eslint";
44
import { name, version } from "../package.json";
55
import { getNewVersion } from "./lib/changesets-util";
66

7-
const META_PATH = path.resolve(__dirname, "../src/meta.ts");
7+
const META_PATH = path.join(__dirname, "../src/meta.ts");
88

99
void main();
1010

1111
/** main */
1212
async function main() {
13+
if (!fs.existsSync(META_PATH)) {
14+
fs.writeFileSync(META_PATH, "", "utf8");
15+
}
1316
const eslint = new ESLint({ fix: true });
1417
const [result] = await eslint.lintText(
1518
`/*

0 commit comments

Comments
 (0)