milkee 2.2.0-dev.0 → 2.2.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +3 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
var res;
|
|
32
32
|
try {
|
|
33
33
|
res = (await isPackageLatest(pkg));
|
|
34
|
-
if (res.success && res.isLatest) {
|
|
34
|
+
if (res.success && !res.isLatest) {
|
|
35
35
|
return consola.box(`A new version is available!\n\n${res.currentVersion} --> \`${res.latestVersion}\``);
|
|
36
36
|
}
|
|
37
37
|
} catch (error1) {
|
|
@@ -174,9 +174,10 @@
|
|
|
174
174
|
return executePlugins(config, compilationResult);
|
|
175
175
|
};
|
|
176
176
|
|
|
177
|
+
// async
|
|
177
178
|
compile = async function() {
|
|
178
179
|
var backupFiles, backupName, backupPath, clearBackups, compilerProcess, config, debounceTimeout, dirName, enabledOptions, enabledOptionsList, error, execCommand, execCommandParts, execOtherOptionStrings, fileName, hash, i, item, items, lastError, len, milkee, milkeeOptions, options, originalPath, restoreBackups, spawnArgs, stat, summary, targetDir, toContinue;
|
|
179
|
-
checkLatest();
|
|
180
|
+
await checkLatest();
|
|
180
181
|
checkCoffee();
|
|
181
182
|
if (!fs.existsSync(CONFIG_PATH)) {
|
|
182
183
|
consola.error(`\`${CONFIG_FILE}\` not found in this directory: ${CWD}`);
|