mirror of
https://github.com/strapi/strapi.git
synced 2026-01-07 20:58:16 +00:00
Only install at the root of the node_modules folder in developer mode
This commit is contained in:
parent
d6180d4148
commit
0e5eb549bc
@ -237,7 +237,7 @@ module.exports = (scope, cb) => {
|
||||
cmd += ` ${scope.client.module}`;
|
||||
}
|
||||
|
||||
if (scope.client.connector === 'strapi-bookshelf') {
|
||||
if (scope.developerMode === true && scope.client.connector === 'strapi-bookshelf') {
|
||||
cmd += ` strapi-knex@alpha`;
|
||||
|
||||
scope.additionalsDependencies = ['strapi-knex', 'knex'];
|
||||
@ -248,7 +248,7 @@ module.exports = (scope, cb) => {
|
||||
const lock = require(path.join(`${scope.tmpPath}`,`/node_modules/`,`${scope.client.module}/package.json`));
|
||||
scope.client.version = lock.version;
|
||||
|
||||
if (scope.client.connector === 'strapi-bookshelf') {
|
||||
if (scope.developerMode === true && scope.client.connector === 'strapi-bookshelf') {
|
||||
const knexVersion = require(path.join(`${scope.tmpPath}`,`/node_modules/`,`knex/package.json`));
|
||||
scope.additionalsDependencies[1] = `knex@${knexVersion.version || 'latest'}`;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user