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 0435d8e commit fce80aeCopy full SHA for fce80ae
tools/deployments/open-v3-pr.ts
@@ -1,5 +1,5 @@
1
import { execSync } from "node:child_process";
2
-import { readFileSync } from "node:fs";
+import { existsSync, readFileSync } from "node:fs";
3
import parseChangeset from "@changesets/parse";
4
5
/* eslint-disable turbo/no-undeclared-env-vars */
@@ -32,7 +32,7 @@ if (require.main === module) {
32
export function isWranglerPatch(changedFilesJson: string) {
33
const changedFiles = JSON.parse(changedFilesJson) as string[];
34
const changesets = changedFiles
35
- .filter((f) => f.startsWith(".changeset/"))
+ .filter((f) => f.startsWith(".changeset/") && existsSync(f))
36
.map((c) => parseChangeset(readFileSync(c, "utf8")));
37
38
let hasWranglerPatch = false;
0 commit comments