Update package.json.js

This commit is contained in:
Aurélien GEORGET 2018-07-10 11:26:35 +02:00 committed by GitHub
parent a048e29bb0
commit d4a874c8ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ const { packageManager } = require('strapi-utils');
module.exports = scope => {
const cliPkg = scope.strapiPackageJSON || {};
// Store the package manager info into the package.json
const packageManager = packageManager.isStrapiInstalledWithNPM() ? 'npm' : 'yarn';
const pkgManager = packageManager.isStrapiInstalledWithNPM() ? 'npm' : 'yarn';
// Let us install additional dependencies on a specific version.
// Ex: it allows us to install the right version of knex.
@ -71,7 +71,7 @@ module.exports = scope => {
'url': scope.website || ''
}],
'strapi': {
'packageManager': packageManager,
'packageManager': pkgManager,
'uuid': uuid()
},
'engines': {