File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
test/integration/generators Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -311,8 +311,10 @@ module.exports = class DataSourceGenerator extends ArtifactGenerator {
311
311
debug ( `npmModule - ${ pkgs [ 0 ] } ` ) ;
312
312
} else {
313
313
const connectorName = this . artifactInfo . connector ;
314
- // Other connectors
315
- if ( ! deps [ connectorName ] ) pkgs . push ( connectorName ) ;
314
+ // Other connectors that are not listed in `connectors.json`.
315
+ // No install is needed for those in connectors.json but without a
316
+ // package name as they are built-in connectors
317
+ if ( ! deps [ connectorName ] && ! connector ) pkgs . push ( connectorName ) ;
316
318
}
317
319
318
320
if ( ! deps [ '@loopback/repository' ] ) {
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ function checkBasicDataSourceFiles() {
157
157
assert . file ( expectedTSFile ) ;
158
158
assert . file ( expectedJSONFile ) ;
159
159
assert . file ( expectedIndexFile ) ;
160
+ assert . noFile ( path . join ( SANDBOX_PATH , 'node_modules/memory' ) ) ;
160
161
161
162
assert . fileContent ( expectedTSFile , / i m p o r t { inject} f r o m ' @ l o o p b a c k \/ c o r e ' ; / ) ;
162
163
assert . fileContent (
You can’t perform that action at this time.
0 commit comments