@@ -784,7 +784,7 @@ E('ERR_INVALID_PROTOCOL',
784
784
E ( 'ERR_INVALID_REPL_EVAL_CONFIG' ,
785
785
'Cannot specify both "breakEvalOnSigint" and "eval" for REPL' , TypeError ) ;
786
786
E ( 'ERR_INVALID_REPL_TYPE' ,
787
- 'Cannot specify --type for REPL' , TypeError ) ;
787
+ 'Cannot specify --entry- type for REPL' , TypeError ) ;
788
788
E ( 'ERR_INVALID_RETURN_PROPERTY' , ( input , name , prop , value ) => {
789
789
return `Expected a valid ${ input } to be returned for the "${ prop } " from the` +
790
790
` "${ name } " function but got ${ value } .` ;
@@ -816,7 +816,7 @@ E('ERR_INVALID_SYNC_FORK_INPUT',
816
816
E ( 'ERR_INVALID_THIS' , 'Value of "this" must be of type %s' , TypeError ) ;
817
817
E ( 'ERR_INVALID_TUPLE' , '%s must be an iterable %s tuple' , TypeError ) ;
818
818
E ( 'ERR_INVALID_TYPE_FLAG' ,
819
- 'Type flag must be one of "module", "commonjs". Received --type=%s' ,
819
+ 'Type flag must be one of "module", "commonjs". Received --entry- type=%s' ,
820
820
TypeError ) ;
821
821
E ( 'ERR_INVALID_URI' , 'URI malformed' , URIError ) ;
822
822
E ( 'ERR_INVALID_URL' , 'Invalid URL: %s' , TypeError ) ;
@@ -958,12 +958,12 @@ E('ERR_TRANSFORM_WITH_LENGTH_0',
958
958
E ( 'ERR_TTY_INIT_FAILED' , 'TTY initialization failed' , SystemError ) ;
959
959
E ( 'ERR_TYPE_MISMATCH' , ( filename , ext , typeFlag , conflict ) => {
960
960
const typeString =
961
- typeFlag === 'module' ? '--type=module' : '--type=commonjs' ;
962
- // --type mismatches file extension
961
+ typeFlag === 'module' ? '--entry- type=module' : '--entry -type=commonjs' ;
962
+ // --entry- type mismatches file extension
963
963
if ( conflict === 'extension' )
964
964
return `Extension ${ ext } is not supported for ` +
965
965
`${ typeString } loading ${ filename } ` ;
966
- // --type mismatches package.json "type"
966
+ // --entry- type mismatches package.json "type"
967
967
else if ( conflict === 'scope' )
968
968
return `Cannot use ${ typeString } because nearest parent package.json ` +
969
969
( ( typeFlag === 'module' ) ?
0 commit comments