File tree 2 files changed +4
-3
lines changed
packages/react-scripts/scripts
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,6 @@ module.exports = function(
224
224
if ( ( ! isReactInstalled ( appPackage ) || templateName ) && args . length > 1 ) {
225
225
console . log ( ) ;
226
226
console . log ( `Installing template dependencies using ${ command } ...` ) ;
227
- console . log ( ) ;
228
227
229
228
const proc = spawn . sync ( command , args , { stdio : 'inherit' } ) ;
230
229
if ( proc . status !== 0 ) {
@@ -233,12 +232,12 @@ module.exports = function(
233
232
}
234
233
}
235
234
236
- if ( appPackage . dependencies [ 'typescript' ] != null ) {
235
+ if ( args . find ( arg => arg . includes ( 'typescript' ) ) ) {
236
+ console . log ( ) ;
237
237
verifyTypeScriptSetup ( ) ;
238
238
}
239
239
240
240
// Remove template
241
- console . log ( ) ;
242
241
console . log ( `Removing template package using ${ command } ...` ) ;
243
242
console . log ( ) ;
244
243
Original file line number Diff line number Diff line change @@ -162,6 +162,8 @@ exists tsconfig.json
162
162
exists src/react-app-env.d.ts
163
163
checkTypeScriptDependencies
164
164
165
+ node node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js
166
+
165
167
# Check that the TypeScript template passes smoke tests, build, and normal tests
166
168
yarn start --smoke-test
167
169
yarn build
You can’t perform that action at this time.
0 commit comments