mirror of
https://github.com/strapi/strapi.git
synced 2025-07-13 12:02:10 +00:00
12 lines
385 B
JavaScript
Executable File
12 lines
385 B
JavaScript
Executable File
const shell = require('shelljs');
|
|
|
|
// Remove existing binary.
|
|
shell.rm('-f', '/usr/local/bin/strapi.js');
|
|
|
|
shell.echo('Bootstraping packages and building dashboard...');
|
|
shell.echo('This can take few minutes (2-3)');
|
|
shell.exec('node node_modules/lerna/bin/lerna bootstrap --nohoist --stream');
|
|
shell.echo('Linking Strapi CLI...');
|
|
shell.cd('packages/strapi');
|
|
shell.exec('npm link');
|