mirror of
https://github.com/strapi/strapi.git
synced 2025-12-24 13:43:41 +00:00
Update package.json.js
This commit is contained in:
parent
a048e29bb0
commit
d4a874c8ee
@ -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': {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user