Browse code
Finish removing parts of create-react-app
Showing 3 changed files
1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,12 +0,0 @@ |
1 |
-// This is a custom Jest transformer turning style imports into empty objects. |
|
2 |
-// http://facebook.github.io/jest/docs/en/webpack.html |
|
3 |
- |
|
4 |
-module.exports = { |
|
5 |
- process() { |
|
6 |
- return "module.exports = {};"; |
|
7 |
- }, |
|
8 |
- getCacheKey() { |
|
9 |
- // The output is always the same. |
|
10 |
- return "cssTransform"; |
|
11 |
- } |
|
12 |
-}; |
... | ... |
@@ -26,15 +26,6 @@ function isInGitRepository() { |
26 | 26 |
} |
27 | 27 |
} |
28 | 28 |
|
29 |
-function isInMercurialRepository() { |
|
30 |
- try { |
|
31 |
- execSync("hg --cwd . root", { stdio: "ignore" }); |
|
32 |
- return true; |
|
33 |
- } catch (e) { |
|
34 |
- return false; |
|
35 |
- } |
|
36 |
-} |
|
37 |
- |
|
38 | 29 |
// Watch unless on CI, in coverage mode, explicitly adding `--no-watch`, |
39 | 30 |
// or explicitly running all tests |
40 | 31 |
if ( |
... | ... |
@@ -44,7 +35,7 @@ if ( |
44 | 35 |
argv.indexOf("--watchAll") === -1 |
45 | 36 |
) { |
46 | 37 |
// https://github.com/facebook/create-react-app/issues/5210 |
47 |
- const hasSourceControl = isInGitRepository() || isInMercurialRepository(); |
|
38 |
+ const hasSourceControl = isInGitRepository(); |
|
48 | 39 |
argv.push(hasSourceControl ? "--watch" : "--watchAll"); |
49 | 40 |
} |
50 | 41 |
|