We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b573fd commit 1404b8cCopy full SHA for 1404b8c
tools/update-meta.ts
@@ -4,12 +4,15 @@ import { ESLint } from "eslint";
4
import { name, version } from "../package.json";
5
import { getNewVersion } from "./lib/changesets-util";
6
7
-const META_PATH = path.resolve(__dirname, "../src/meta.ts");
+const META_PATH = path.join(__dirname, "../src/meta.ts");
8
9
void main();
10
11
/** main */
12
async function main() {
13
+ if (!fs.existsSync(META_PATH)) {
14
+ fs.writeFileSync(META_PATH, "", "utf8");
15
+ }
16
const eslint = new ESLint({ fix: true });
17
const [result] = await eslint.lintText(
18
`/*
0 commit comments