|
@@ -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
|
});
|