Przeglądaj źródła

build: Allow package.json changes when autoreleasing next (#4068)

vanilla_orig
Aakansha Doshi 4 lat temu
rodzic
commit
5d925c7d3f
No account linked to committer's email address
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4
    3
      scripts/autorelease.js

+ 4
- 3
scripts/autorelease.js Wyświetl plik

@@ -31,9 +31,11 @@ exec(`git diff --name-only HEAD^ HEAD`, async (error, stdout, stderr) => {
31 31
   const filesToIgnoreRegex = /src\/excalidraw-app|packages\/utils/;
32 32
 
33 33
   const excalidrawPackageFiles = changedFiles.filter((file) => {
34
-    return file.indexOf("src") >= 0 && !filesToIgnoreRegex.test(file);
34
+    return (
35
+      (file.indexOf("src") >= 0 || file.indexOf("package.json")) >= 0 &&
36
+      !filesToIgnoreRegex.test(file)
37
+    );
35 38
   });
36
-
37 39
   if (!excalidrawPackageFiles.length) {
38 40
     process.exit(0);
39 41
   }
@@ -46,6 +48,5 @@ exec(`git diff --name-only HEAD^ HEAD`, async (error, stdout, stderr) => {
46 48
   // update readme
47 49
   const data = fs.readFileSync(`${excalidrawDir}/README_NEXT.md`, "utf8");
48 50
   fs.writeFileSync(`${excalidrawDir}/README.md`, data, "utf8");
49
-
50 51
   publish();
51 52
 });

Ładowanie…
Anuluj
Zapisz