You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
@jdxcode was trying out this the preinstall change.
I'm running into erratic async behavior with it.
In the most simple case I have this:
async function preinstall(config: any, {plugin, tag}: {plugin: any, tag: string}): Promise {
return new Promise((resolve, reject) => {
console.log("1");
console.log("2");
reject(new Error("Fail install"));
});
}
export = preinstall;
@jdxcode was trying out this the preinstall change.
I'm running into erratic async behavior with it.
In the most simple case I have this:
async function preinstall(config: any, {plugin, tag}: {plugin: any, tag: string}): Promise {
return new Promise((resolve, reject) => {
console.log("1");
console.log("2");
reject(new Error("Fail install"));
});
}
export = preinstall;
And this results in
$ bin/run plugins:install cli-engine-example-plugin
Installing plugin cli-engine-example-plugin...
1
Installing plugin cli-engine-example-plugin... !
▸ Fail install
$
Note that "2" in never printed and "Installing plugin cli-engine-example-plugin..." is printed twice.
Ideas? I'm using node 8.5.0
The text was updated successfully, but these errors were encountered: