strapi/scripts/publish.js
Alberto Maturano 154fc28a57 Normalize to standar file permissions
As a result of taking a look on PR #1967 I realized there is 819
executable files in this repository. It is obvious this is an error.
2018-09-24 12:33:09 -05:00

18 lines
482 B
JavaScript

const fs = require('fs');
const path = require('path');
const shell = require('shelljs');
try {
const packages = fs.readdirSync(path.resolve(process.cwd(),'packages'), 'utf8');
shell.cd('packages/strapi');
packages.filter(pkg => pkg.indexOf('strapi') !== -1).forEach(pkg => {
shell.cd('../' + pkg);
shell.echo(pkg + ': npm publish --tag ' + process.argv[2]);
shell.exec('npm publish --tag ' + process.argv[2]);
});
} catch (error) {
console.error(error);
}