now cleans up before publishing
This commit is contained in:
parent
545896821d
commit
84fdf8b139
@ -67,15 +67,22 @@ let publish = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// -> preparing
|
// -> preparing
|
||||||
plugins.beautylog.log(`noe preparing environment:`);
|
plugins.beautylog.log(`now preparing environment:`);
|
||||||
prepare();
|
prepare();
|
||||||
await bash(`npm install -g npm`);
|
|
||||||
await bash(`npm -v`);
|
await bash(`npm -v`);
|
||||||
|
|
||||||
// -> build it
|
// -> build it
|
||||||
await bash(`yarn install`);
|
await bash(`yarn install`);
|
||||||
await bash(`yarn run build`);
|
await bash(`yarn run build`);
|
||||||
|
|
||||||
|
plugins.beautylog.success(`Nice!!! The build for the publication was successfull!`);
|
||||||
|
plugins.beautylog.log(`Lets clean up so we don't publish any packages that don't belong to us:`)
|
||||||
|
// -> clean up before we publish stuff
|
||||||
|
await bash(`rm -r .yarn`);
|
||||||
|
await bash(`rm -r node_modules`);
|
||||||
|
|
||||||
|
plugins.beautylog.success(`Cleaned up!:`);
|
||||||
|
|
||||||
// -> publish it
|
// -> publish it
|
||||||
plugins.beautylog.log(`now invoking npm to publish the package!`);
|
plugins.beautylog.log(`now invoking npm to publish the package!`);
|
||||||
await bash(`npm publish ${npmAccessCliString}`);
|
await bash(`npm publish ${npmAccessCliString}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user