Skip to content

Commit 7ecde96

Browse files
committed
Move fork-ts-checker dep to react-dev-utils
1 parent 9581519 commit 7ecde96

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
'use strict';
9+
10+
var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
11+
12+
module.exports = ForkTsCheckerWebpackPlugin;

packages/react-dev-utils/WebpackDevServerUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const clearConsole = require('./clearConsole');
1818
const formatWebpackMessages = require('./formatWebpackMessages');
1919
const getProcessForPort = require('./getProcessForPort');
2020
const typescriptFormatter = require('./typescriptFormatter');
21-
const forkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
21+
const forkTsCheckerWebpackPlugin = require('./ForkTsCheckerWebpackPlugin');
2222

2323
const isInteractive = process.stdout.isTTY;
2424

packages/react-dev-utils/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/facebook/create-react-app/issues"
99
},
1010
"engines": {
11-
"node": ">=6"
11+
"node": ">=8.10"
1212
},
1313
"files": [
1414
"browsersHelper.js",
@@ -20,6 +20,7 @@
2020
"eslintFormatter.js",
2121
"evalSourceMapMiddleware.js",
2222
"FileSizeReporter.js",
23+
"ForkTsCheckerWebpackPlugin.js",
2324
"formatWebpackMessages.js",
2425
"getCacheIdentifier.js",
2526
"getCSSModuleLocalIdent.js",
@@ -54,6 +55,7 @@
5455
"escape-string-regexp": "1.0.5",
5556
"filesize": "3.6.1",
5657
"find-up": "3.0.0",
58+
"fork-ts-checker-webpack-plugin": "1.0.0-alpha.6",
5759
"global-modules": "2.0.0",
5860
"globby": "8.0.2",
5961
"gzip-size": "5.0.0",

packages/react-scripts/config/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent')
2929
const paths = require('./paths');
3030
const getClientEnvironment = require('./env');
3131
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
32-
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
32+
const ForkTsCheckerWebpackPlugin = require('react-dev-utils/ForkTsCheckerWebpackPlugin');
3333
const typescriptFormatter = require('react-dev-utils/typescriptFormatter');
3434
// @remove-on-eject-begin
3535
const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');

packages/react-scripts/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"repository": "facebook/create-react-app",
66
"license": "MIT",
77
"engines": {
8-
"node": ">=6"
8+
"node": ">=8.10"
99
},
1010
"bugs": {
1111
"url": "https://github.com/facebook/create-react-app/issues"
@@ -45,7 +45,6 @@
4545
"eslint-plugin-jsx-a11y": "6.1.2",
4646
"eslint-plugin-react": "7.12.4",
4747
"file-loader": "2.0.0",
48-
"fork-ts-checker-webpack-plugin": "1.0.0-alpha.6",
4948
"fs-extra": "7.0.1",
5049
"html-webpack-plugin": "4.0.0-alpha.2",
5150
"identity-obj-proxy": "3.0.0",

0 commit comments

Comments
 (0)