mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 14:44:31 +00:00
Remove @alpha from code
This commit is contained in:
parent
8e393492d2
commit
a0216e12a4
@ -94,8 +94,8 @@ module.exports = (scope, cb) => {
|
||||
});
|
||||
} else {
|
||||
const alphaDependencies = othersDependencies.map(dep => {
|
||||
if (_.includes(dep, 'strapi') && !_.includes(dep, '@alpha')) { // We need this for yarn
|
||||
return `${dep}@alpha`;
|
||||
if (_.includes(dep, 'strapi')) { // We need this for yarn
|
||||
return `${dep}@${scope.strapiPackageJSON.version}`;
|
||||
}
|
||||
|
||||
return dep;
|
||||
|
||||
@ -225,14 +225,14 @@ module.exports = (scope, cb) => {
|
||||
shell.exec(`mkdir ${scope.tmpPath}`);
|
||||
}
|
||||
|
||||
let cmd = `${packageCmd} ${scope.client.connector}@alpha`;
|
||||
let cmd = `${packageCmd} ${scope.client.connector}@${scope.strapiPackageJSON.version}`;
|
||||
|
||||
if (scope.client.module) {
|
||||
cmd += ` ${scope.client.module}`;
|
||||
}
|
||||
|
||||
if (scope.client.connector === 'strapi-hook-bookshelf') {
|
||||
cmd += ` strapi-hook-knex@alpha`;
|
||||
cmd += ` strapi-hook-knex@${scope.strapiPackageJSON.version}`;
|
||||
|
||||
scope.additionalsDependencies = ['strapi-hook-knex', 'knex'];
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@ module.exports = {
|
||||
|
||||
// Copy Markdown files with some information.
|
||||
'README.md': {
|
||||
template: 'CLI.md'
|
||||
template: 'README.md'
|
||||
},
|
||||
|
||||
// Empty API directory.
|
||||
|
||||
@ -936,7 +936,7 @@ module.exports = {
|
||||
|
||||
if (connector && !installedConnector) {
|
||||
strapi.log.info(`Installing ${connector} dependency ...`);
|
||||
exec('npm', ['install', `${connector}@alpha`]);
|
||||
exec('npm', ['install', `${connector}@${strapi.config.info.strapi}`]);
|
||||
}
|
||||
|
||||
if (client && !installedClient) {
|
||||
|
||||
@ -94,4 +94,4 @@
|
||||
},
|
||||
"preferGlobal": true,
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user