Remove @alpha from code

This commit is contained in:
Jim LAURIE 2018-10-29 18:34:31 +01:00
parent 8e393492d2
commit a0216e12a4
5 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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'];
}

View File

@ -47,7 +47,7 @@ module.exports = {
// Copy Markdown files with some information.
'README.md': {
template: 'CLI.md'
template: 'README.md'
},
// Empty API directory.

View File

@ -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) {

View File

@ -94,4 +94,4 @@
},
"preferGlobal": true,
"license": "MIT"
}
}