@reactunity/scripts 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/react-unity-scripts.js +6 -1
- package/config/env.js +1 -3
- package/config/eslint/base.js +43 -0
- package/config/eslint/config.js +252 -0
- package/config/eslint/jest.js +59 -0
- package/config/eslintConfig.js +2 -17
- package/config/jest/babelTransform.js +37 -0
- package/config/jest/cssTransform.js +22 -0
- package/config/jest/fileTransform.js +40 -0
- package/config/paths.js +6 -0
- package/config/unityMiddleware.js +29 -0
- package/config/web-inspector/Build/WebInspector.data +0 -0
- package/config/web-inspector/Build/WebInspector.framework.js +1 -1
- package/config/web-inspector/Build/WebInspector.loader.js +1 -1
- package/config/web-inspector/Build/WebInspector.wasm +0 -0
- package/config/web-inspector/index.html +2 -2
- package/config/webpack/persistentCache/createEnvironmentHash.js +9 -0
- package/config/webpack.config.js +180 -115
- package/config/webpackDevServer.config.js +49 -79
- package/lib/types/base.d.ts +13 -2
- package/package.json +62 -48
- package/scripts/build.js +41 -19
- package/scripts/eject.js +237 -234
- package/scripts/init.js +10 -12
- package/scripts/lint.js +4 -3
- package/scripts/start.js +40 -40
- package/scripts/test.js +129 -0
- package/scripts/utils/createJestConfig.js +152 -0
- package/scripts/utils/verifyTypeScriptSetup.js +306 -309
- package/config/pnpTs.js +0 -43
- package/config/react-error-overlay.js +0 -9
- package/config/refreshOverlayInterop.js +0 -4
- package/config/webpackHotDevClient.js +0 -268
- package/scripts/utils/verifyPackageTree.js +0 -161
|
@@ -1,268 +0,0 @@
|
|
|
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
|
-
// This alternative WebpackDevServer combines the functionality of:
|
|
11
|
-
// https://github.com/webpack/webpack-dev-server/blob/webpack-1/client/index.js
|
|
12
|
-
// https://github.com/webpack/webpack/blob/webpack-1/hot/dev-server.js
|
|
13
|
-
|
|
14
|
-
// It only supports their simplest configuration (hot updates on same server).
|
|
15
|
-
// It makes some opinionated choices on top, like adding a syntax error overlay
|
|
16
|
-
// that looks similar to our console output. The error overlay is inspired by:
|
|
17
|
-
// https://github.com/glenjamin/webpack-hot-middleware
|
|
18
|
-
|
|
19
|
-
var stripAnsi = require('strip-ansi');
|
|
20
|
-
var url = require('url');
|
|
21
|
-
var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
|
22
|
-
var ErrorOverlay = require('./react-error-overlay');
|
|
23
|
-
|
|
24
|
-
// We need to keep track of if there has been a runtime error.
|
|
25
|
-
// Essentially, we cannot guarantee application state was not corrupted by the
|
|
26
|
-
// runtime error. To prevent confusing behavior, we forcibly reload the entire
|
|
27
|
-
// application. This is handled below when we are notified of a compile (code
|
|
28
|
-
// change).
|
|
29
|
-
// See https://github.com/facebook/create-react-app/issues/3096
|
|
30
|
-
var hadRuntimeError = false;
|
|
31
|
-
ErrorOverlay.startReportingRuntimeErrors({
|
|
32
|
-
onError: function () {
|
|
33
|
-
hadRuntimeError = true;
|
|
34
|
-
},
|
|
35
|
-
filename: '/static/js/bundle.js',
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
if (module.hot && typeof module.hot.dispose === 'function') {
|
|
39
|
-
module.hot.dispose(function () {
|
|
40
|
-
// TODO: why do we need this?
|
|
41
|
-
ErrorOverlay.stopReportingRuntimeErrors();
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// Connect to WebpackDevServer via a socket.
|
|
46
|
-
var connection = new WebSocket(
|
|
47
|
-
url.format({
|
|
48
|
-
protocol: window.location.protocol === 'https:' ? 'wss' : 'ws',
|
|
49
|
-
hostname: process.env.WDS_SOCKET_HOST || window.location.hostname,
|
|
50
|
-
port: process.env.WDS_SOCKET_PORT || window.location.port,
|
|
51
|
-
// Hardcoded in WebpackDevServer
|
|
52
|
-
pathname: process.env.WDS_SOCKET_PATH || '/sockjs-node',
|
|
53
|
-
slashes: true,
|
|
54
|
-
})
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
// Unlike WebpackDevServer client, we won't try to reconnect
|
|
58
|
-
// to avoid spamming the console. Disconnect usually happens
|
|
59
|
-
// when developer stops the server.
|
|
60
|
-
connection.onclose = function (e) {
|
|
61
|
-
if (e.reason !== 'dispose') {
|
|
62
|
-
if (typeof console !== 'undefined' && typeof console.info === 'function') {
|
|
63
|
-
console.info(
|
|
64
|
-
'The development server has disconnected.\nRestart the app if necessary.'
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
// Remember some state related to hot module replacement.
|
|
71
|
-
var isFirstCompilation = true;
|
|
72
|
-
var mostRecentCompilationHash = null;
|
|
73
|
-
var hasCompileErrors = false;
|
|
74
|
-
|
|
75
|
-
function clearOutdatedErrors() {
|
|
76
|
-
// Clean up outdated compile errors, if any.
|
|
77
|
-
if (typeof console !== 'undefined' && typeof console.clear === 'function') {
|
|
78
|
-
if (hasCompileErrors) {
|
|
79
|
-
console.clear();
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Successful compilation.
|
|
85
|
-
function handleSuccess() {
|
|
86
|
-
clearOutdatedErrors();
|
|
87
|
-
|
|
88
|
-
var isHotUpdate = !isFirstCompilation;
|
|
89
|
-
isFirstCompilation = false;
|
|
90
|
-
hasCompileErrors = false;
|
|
91
|
-
|
|
92
|
-
// Attempt to apply hot updates or reload.
|
|
93
|
-
if (isHotUpdate) {
|
|
94
|
-
tryApplyUpdates(function onHotUpdateSuccess() {
|
|
95
|
-
// Only dismiss it when we're sure it's a hot update.
|
|
96
|
-
// Otherwise it would flicker right before the reload.
|
|
97
|
-
tryDismissErrorOverlay();
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Compilation with warnings (e.g. ESLint).
|
|
103
|
-
function handleWarnings(warnings) {
|
|
104
|
-
clearOutdatedErrors();
|
|
105
|
-
|
|
106
|
-
var isHotUpdate = !isFirstCompilation;
|
|
107
|
-
isFirstCompilation = false;
|
|
108
|
-
hasCompileErrors = false;
|
|
109
|
-
|
|
110
|
-
function printWarnings() {
|
|
111
|
-
// Print warnings to the console.
|
|
112
|
-
var formatted = formatWebpackMessages({
|
|
113
|
-
warnings: warnings,
|
|
114
|
-
errors: [],
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
if (typeof console !== 'undefined' && typeof console.warn === 'function') {
|
|
118
|
-
for (var i = 0; i < formatted.warnings.length; i++) {
|
|
119
|
-
if (i === 5) {
|
|
120
|
-
console.warn(
|
|
121
|
-
'There were more warnings in other files.\n' +
|
|
122
|
-
'You can find a complete log in the terminal.'
|
|
123
|
-
);
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
console.warn(stripAnsi(formatted.warnings[i]));
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
printWarnings();
|
|
132
|
-
|
|
133
|
-
// Attempt to apply hot updates or reload.
|
|
134
|
-
if (isHotUpdate) {
|
|
135
|
-
tryApplyUpdates(function onSuccessfulHotUpdate() {
|
|
136
|
-
// Only dismiss it when we're sure it's a hot update.
|
|
137
|
-
// Otherwise it would flicker right before the reload.
|
|
138
|
-
tryDismissErrorOverlay();
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// Compilation with errors (e.g. syntax error or missing modules).
|
|
144
|
-
function handleErrors(errors) {
|
|
145
|
-
clearOutdatedErrors();
|
|
146
|
-
|
|
147
|
-
isFirstCompilation = false;
|
|
148
|
-
hasCompileErrors = true;
|
|
149
|
-
|
|
150
|
-
// "Massage" webpack messages.
|
|
151
|
-
var formatted = formatWebpackMessages({
|
|
152
|
-
errors: errors,
|
|
153
|
-
warnings: [],
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
// Only show the first error.
|
|
157
|
-
ErrorOverlay.reportBuildError(formatted.errors[0]);
|
|
158
|
-
|
|
159
|
-
// Also log them to the console.
|
|
160
|
-
if (typeof console !== 'undefined' && typeof console.error === 'function') {
|
|
161
|
-
for (var i = 0; i < formatted.errors.length; i++) {
|
|
162
|
-
console.error(stripAnsi(formatted.errors[i]));
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// Do not attempt to reload now.
|
|
167
|
-
// We will reload on next success instead.
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
function tryDismissErrorOverlay() {
|
|
171
|
-
if (!hasCompileErrors) {
|
|
172
|
-
ErrorOverlay.dismissBuildError();
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
// There is a newer version of the code available.
|
|
177
|
-
function handleAvailableHash(hash) {
|
|
178
|
-
// Update last known compilation hash.
|
|
179
|
-
mostRecentCompilationHash = hash;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// Handle messages from the server.
|
|
183
|
-
connection.onmessage = function (e) {
|
|
184
|
-
var message = JSON.parse(e.data);
|
|
185
|
-
switch (message.type) {
|
|
186
|
-
case 'hash':
|
|
187
|
-
handleAvailableHash(message.data);
|
|
188
|
-
break;
|
|
189
|
-
case 'still-ok':
|
|
190
|
-
case 'ok':
|
|
191
|
-
handleSuccess();
|
|
192
|
-
break;
|
|
193
|
-
case 'content-changed':
|
|
194
|
-
// Triggered when a file from `contentBase` changed.
|
|
195
|
-
window.location.reload();
|
|
196
|
-
break;
|
|
197
|
-
case 'warnings':
|
|
198
|
-
handleWarnings(message.data);
|
|
199
|
-
break;
|
|
200
|
-
case 'errors':
|
|
201
|
-
handleErrors(message.data);
|
|
202
|
-
break;
|
|
203
|
-
default:
|
|
204
|
-
// Do nothing.
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
// Is there a newer version of this code available?
|
|
209
|
-
function isUpdateAvailable() {
|
|
210
|
-
/* globals __webpack_hash__ */
|
|
211
|
-
// __webpack_hash__ is the hash of the current compilation.
|
|
212
|
-
// It's a global variable injected by webpack.
|
|
213
|
-
return mostRecentCompilationHash !== __webpack_hash__;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// webpack disallows updates in other states.
|
|
217
|
-
function canApplyUpdates() {
|
|
218
|
-
return module.hot.status() === 'idle';
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// Attempt to update code on the fly, fall back to a hard reload.
|
|
222
|
-
function tryApplyUpdates(onHotUpdateSuccess) {
|
|
223
|
-
if (!module.hot) {
|
|
224
|
-
// HotModuleReplacementPlugin is not in webpack configuration.
|
|
225
|
-
window.location.reload();
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
if (!isUpdateAvailable() || !canApplyUpdates()) {
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
function handleApplyUpdates(err, updatedModules) {
|
|
234
|
-
// NOTE: This var is injected by Webpack's DefinePlugin, and is a boolean instead of string.
|
|
235
|
-
const hasReactRefresh = process.env.FAST_REFRESH;
|
|
236
|
-
const wantsForcedReload = err || !updatedModules || hadRuntimeError;
|
|
237
|
-
// React refresh can handle hot-reloading over errors.
|
|
238
|
-
if (!hasReactRefresh && wantsForcedReload) {
|
|
239
|
-
window.location.reload();
|
|
240
|
-
return;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
if (typeof onHotUpdateSuccess === 'function') {
|
|
244
|
-
// Maybe we want to do something.
|
|
245
|
-
onHotUpdateSuccess();
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
if (isUpdateAvailable()) {
|
|
249
|
-
// While we were updating, there was a new update! Do it again.
|
|
250
|
-
tryApplyUpdates();
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// https://webpack.github.io/docs/hot-module-replacement.html#check
|
|
255
|
-
var result = module.hot.check(/* autoApply */ true, handleApplyUpdates);
|
|
256
|
-
|
|
257
|
-
// // webpack 2 returns a Promise instead of invoking a callback
|
|
258
|
-
if (result && result.then) {
|
|
259
|
-
result.then(
|
|
260
|
-
function (updatedModules) {
|
|
261
|
-
handleApplyUpdates(null, updatedModules);
|
|
262
|
-
},
|
|
263
|
-
function (err) {
|
|
264
|
-
handleApplyUpdates(err, null);
|
|
265
|
-
}
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
// @remove-file-on-eject
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
'use strict';
|
|
10
|
-
|
|
11
|
-
const chalk = require('react-dev-utils/chalk');
|
|
12
|
-
const fs = require('fs');
|
|
13
|
-
const semver = require('semver');
|
|
14
|
-
const path = require('path');
|
|
15
|
-
|
|
16
|
-
// We assume that having wrong versions of these
|
|
17
|
-
// in the tree will likely break your setup.
|
|
18
|
-
// This is a relatively low-effort way to find common issues.
|
|
19
|
-
function verifyPackageTree() {
|
|
20
|
-
const depsToCheck = [
|
|
21
|
-
// These are packages most likely to break in practice.
|
|
22
|
-
// See https://github.com/facebook/create-react-app/issues/1795 for reasons why.
|
|
23
|
-
// I have not included Babel here because plugins typically don't import Babel (so it's not affected).
|
|
24
|
-
'babel-eslint',
|
|
25
|
-
'babel-loader',
|
|
26
|
-
'eslint',
|
|
27
|
-
'webpack',
|
|
28
|
-
'webpack-dev-server',
|
|
29
|
-
];
|
|
30
|
-
// Inlined from semver-regex, MIT license.
|
|
31
|
-
// Don't want to make this a dependency after ejecting.
|
|
32
|
-
const getSemverRegex = () =>
|
|
33
|
-
/\bv?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-[\da-z-]+(?:\.[\da-z-]+)*)?(?:\+[\da-z-]+(?:\.[\da-z-]+)*)?\b/gi;
|
|
34
|
-
const ownPackageJson = require('../../package.json');
|
|
35
|
-
const expectedVersionsByDep = {};
|
|
36
|
-
// Gather wanted deps
|
|
37
|
-
depsToCheck.forEach(dep => {
|
|
38
|
-
const expectedVersion = ownPackageJson.dependencies[dep];
|
|
39
|
-
if (!expectedVersion) {
|
|
40
|
-
throw new Error('This dependency list is outdated, fix it.');
|
|
41
|
-
}
|
|
42
|
-
if (!getSemverRegex().test(expectedVersion)) {
|
|
43
|
-
throw new Error(
|
|
44
|
-
`The ${dep} package should be pinned, instead got version ${expectedVersion}.`
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
expectedVersionsByDep[dep] = expectedVersion;
|
|
48
|
-
});
|
|
49
|
-
// Verify we don't have other versions up the tree
|
|
50
|
-
let currentDir = __dirname;
|
|
51
|
-
// eslint-disable-next-line no-constant-condition
|
|
52
|
-
while (true) {
|
|
53
|
-
const previousDir = currentDir;
|
|
54
|
-
currentDir = path.resolve(currentDir, '..');
|
|
55
|
-
if (currentDir === previousDir) {
|
|
56
|
-
// We've reached the root.
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
const maybeNodeModules = path.resolve(currentDir, 'node_modules');
|
|
60
|
-
if (!fs.existsSync(maybeNodeModules)) {
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
depsToCheck.forEach(dep => {
|
|
64
|
-
const maybeDep = path.resolve(maybeNodeModules, dep);
|
|
65
|
-
if (!fs.existsSync(maybeDep)) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const maybeDepPackageJson = path.resolve(maybeDep, 'package.json');
|
|
69
|
-
if (!fs.existsSync(maybeDepPackageJson)) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
const depPackageJson = JSON.parse(
|
|
73
|
-
fs.readFileSync(maybeDepPackageJson, 'utf8')
|
|
74
|
-
);
|
|
75
|
-
const expectedVersion = expectedVersionsByDep[dep];
|
|
76
|
-
if (!semver.satisfies(depPackageJson.version, expectedVersion)) {
|
|
77
|
-
console.error(
|
|
78
|
-
chalk.red(
|
|
79
|
-
`\nThere might be a problem with the project dependency tree.\n` +
|
|
80
|
-
`It is likely ${chalk.bold(
|
|
81
|
-
'not'
|
|
82
|
-
)} a bug in Create React App, but something you need to fix locally.\n\n`
|
|
83
|
-
) +
|
|
84
|
-
`The ${chalk.bold(
|
|
85
|
-
ownPackageJson.name
|
|
86
|
-
)} package provided by Create React App requires a dependency:\n\n` +
|
|
87
|
-
chalk.green(
|
|
88
|
-
` "${chalk.bold(dep)}": "${chalk.bold(expectedVersion)}"\n\n`
|
|
89
|
-
) +
|
|
90
|
-
`Don't try to install it manually: your package manager does it automatically.\n` +
|
|
91
|
-
`However, a different version of ${chalk.bold(
|
|
92
|
-
dep
|
|
93
|
-
)} was detected higher up in the tree:\n\n` +
|
|
94
|
-
` ${chalk.bold(chalk.red(maybeDep))} (version: ${chalk.bold(
|
|
95
|
-
chalk.red(depPackageJson.version)
|
|
96
|
-
)}) \n\n` +
|
|
97
|
-
`Manually installing incompatible versions is known to cause hard-to-debug issues.\n\n` +
|
|
98
|
-
chalk.red(
|
|
99
|
-
`If you would prefer to ignore this check, add ${chalk.bold(
|
|
100
|
-
'SKIP_PREFLIGHT_CHECK=true'
|
|
101
|
-
)} to an ${chalk.bold('.env')} file in your project.\n` +
|
|
102
|
-
`That will permanently disable this message but you might encounter other issues.\n\n`
|
|
103
|
-
) +
|
|
104
|
-
`To ${chalk.green(
|
|
105
|
-
'fix'
|
|
106
|
-
)} the dependency tree, try following the steps below in the exact order:\n\n` +
|
|
107
|
-
` ${chalk.cyan('1.')} Delete ${chalk.bold(
|
|
108
|
-
'package-lock.json'
|
|
109
|
-
)} (${chalk.underline('not')} ${chalk.bold(
|
|
110
|
-
'package.json'
|
|
111
|
-
)}!) and/or ${chalk.bold('yarn.lock')} in your project folder.\n` +
|
|
112
|
-
` ${chalk.cyan('2.')} Delete ${chalk.bold(
|
|
113
|
-
'node_modules'
|
|
114
|
-
)} in your project folder.\n` +
|
|
115
|
-
` ${chalk.cyan('3.')} Remove "${chalk.bold(
|
|
116
|
-
dep
|
|
117
|
-
)}" from ${chalk.bold('dependencies')} and/or ${chalk.bold(
|
|
118
|
-
'devDependencies'
|
|
119
|
-
)} in the ${chalk.bold(
|
|
120
|
-
'package.json'
|
|
121
|
-
)} file in your project folder.\n` +
|
|
122
|
-
` ${chalk.cyan('4.')} Run ${chalk.bold(
|
|
123
|
-
'npm install'
|
|
124
|
-
)} or ${chalk.bold(
|
|
125
|
-
'yarn'
|
|
126
|
-
)}, depending on the package manager you use.\n\n` +
|
|
127
|
-
`In most cases, this should be enough to fix the problem.\n` +
|
|
128
|
-
`If this has not helped, there are a few other things you can try:\n\n` +
|
|
129
|
-
` ${chalk.cyan('5.')} If you used ${chalk.bold(
|
|
130
|
-
'npm'
|
|
131
|
-
)}, install ${chalk.bold(
|
|
132
|
-
'yarn'
|
|
133
|
-
)} (http://yarnpkg.com/) and repeat the above steps with it instead.\n` +
|
|
134
|
-
` This may help because npm has known issues with package hoisting which may get resolved in future versions.\n\n` +
|
|
135
|
-
` ${chalk.cyan('6.')} Check if ${chalk.bold(
|
|
136
|
-
maybeDep
|
|
137
|
-
)} is outside your project directory.\n` +
|
|
138
|
-
` For example, you might have accidentally installed something in your home folder.\n\n` +
|
|
139
|
-
` ${chalk.cyan('7.')} Try running ${chalk.bold(
|
|
140
|
-
`npm ls ${dep}`
|
|
141
|
-
)} in your project folder.\n` +
|
|
142
|
-
` This will tell you which ${chalk.underline(
|
|
143
|
-
'other'
|
|
144
|
-
)} package (apart from the expected ${chalk.bold(
|
|
145
|
-
ownPackageJson.name
|
|
146
|
-
)}) installed ${chalk.bold(dep)}.\n\n` +
|
|
147
|
-
`If nothing else helps, add ${chalk.bold(
|
|
148
|
-
'SKIP_PREFLIGHT_CHECK=true'
|
|
149
|
-
)} to an ${chalk.bold('.env')} file in your project.\n` +
|
|
150
|
-
`That would permanently disable this preflight check in case you want to proceed anyway.\n\n` +
|
|
151
|
-
chalk.cyan(
|
|
152
|
-
`P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!\n`
|
|
153
|
-
)
|
|
154
|
-
);
|
|
155
|
-
process.exit(1);
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
module.exports = verifyPackageTree;
|