Skip to content

Commit b66e46b

Browse files
committed
app: use git restore to re-create .gitkeep file
This uses the more reliable way to restore the file in git after a build, preventing differences in line endings to cause the file to be seen as dirty in some situations.
1 parent d66fd09 commit b66e46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "BROWSER=none react-scripts start",
99
"develop": "REACT_APP_USE_SAMPLE_DATA=true yarn start",
1010
"build": "react-scripts build",
11-
"postbuild": "echo '# Keep directory in git.' > build/.gitkeep",
11+
"postbuild": "git restore build/.gitkeep",
1212
"test": "react-scripts test --env=jest-environment-jsdom --transformIgnorePatterns \"node_modules/(?!d3)/\"",
1313
"test:ci": "cross-env CI=true yarn test --coverage",
1414
"eject": "react-scripts eject",

0 commit comments

Comments
 (0)