File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3013,10 +3013,10 @@ impl<'a> Context<'a> {
3013
3013
}
3014
3014
3015
3015
fn process_package_json ( & mut self , path : & Path ) -> Result < ( ) , Error > {
3016
- if ! self . config . mode . nodejs ( ) && ! self . config . mode . bundler ( ) {
3016
+ if self . config . mode . no_modules ( ) {
3017
3017
bail ! (
3018
3018
"NPM dependencies have been specified in `{}` but \
3019
- this is only compatible with the `bundler` and `nodejs` targets ",
3019
+ this is incompatible with the `no-modules` target ",
3020
3020
path. display( ) ,
3021
3021
) ;
3022
3022
}
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ fn no_modules_rejects_npm() {
25
25
. stderr (
26
26
str:: is_match (
27
27
"\
28
- error: NPM dependencies have been specified in `.*` but this is only \
29
- compatible with the `bundler` and `nodejs` targets
28
+ error: NPM dependencies have been specified in `.*` but \
29
+ this is incompatible with the `no-modules` target
30
30
" ,
31
31
)
32
32
. unwrap ( ) ,
You can’t perform that action at this time.
0 commit comments