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 @@ -206,7 +206,6 @@ module.exports = function(
206
206
if ( ( ! isReactInstalled ( appPackage ) || templateName ) && args . length > 1 ) {
207
207
console . log ( ) ;
208
208
console . log ( `Installing template dependencies using ${ command } ...` ) ;
209
- console . log ( ) ;
210
209
211
210
const proc = spawn . sync ( command , args , { stdio : 'inherit' } ) ;
212
211
if ( proc . status !== 0 ) {
@@ -215,12 +214,12 @@ module.exports = function(
215
214
}
216
215
}
217
216
218
- if ( appPackage . dependencies [ 'typescript' ] != null ) {
217
+ if ( args . find ( arg => arg . includes ( 'typescript' ) ) ) {
218
+ console . log ( ) ;
219
219
verifyTypeScriptSetup ( ) ;
220
220
}
221
221
222
222
// Remove template
223
- console . log ( ) ;
224
223
console . log ( `Removing template package using ${ command } ...` ) ;
225
224
console . log ( ) ;
226
225
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