@iola_adm/iola-cli 0.2.20 → 0.2.21
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/bin/postinstall.js +3 -3
- package/package.json +1 -1
- package/test/smoke-test.js +2 -2
package/bin/postinstall.js
CHANGED
|
@@ -35,15 +35,15 @@ const canAnimate = process.stdout.isTTY && process.env.CI !== "true";
|
|
|
35
35
|
const setupStarted = process.hrtime.bigint();
|
|
36
36
|
|
|
37
37
|
console.log("");
|
|
38
|
-
console.log("IOLA CLI: настройка после
|
|
39
|
-
console.log("
|
|
38
|
+
console.log("IOLA CLI: настройка после скачивания npm-пакета");
|
|
39
|
+
console.log("Важно: это не полное время npm install. Скачивание, распаковку и служебные действия npm этот скрипт измерить не может.");
|
|
40
40
|
|
|
41
41
|
for (let index = 0; index < steps.length; index += 1) {
|
|
42
42
|
const step = steps[index];
|
|
43
43
|
await runStep(step, index + 1, steps.length);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
console.log(
|
|
46
|
+
console.log(`Настройка CLI после скачивания заняла ${formatDuration(elapsedMs(setupStarted))}. Запуск: iola`);
|
|
47
47
|
|
|
48
48
|
async function runStep(step, current, total) {
|
|
49
49
|
const started = process.hrtime.bigint();
|
package/package.json
CHANGED
package/test/smoke-test.js
CHANGED
|
@@ -81,8 +81,8 @@ if (!packageJson.files.includes("docs/assets/iola-oauth-icon.png")) {
|
|
|
81
81
|
throw new Error("package files should include the Yandex OAuth icon");
|
|
82
82
|
}
|
|
83
83
|
assertIncludes(postinstallSource, "process.hrtime.bigint()", "postinstall should use a monotonic timer");
|
|
84
|
-
assertIncludes(postinstallSource, "
|
|
85
|
-
assertIncludes(postinstallSource, "
|
|
84
|
+
assertIncludes(postinstallSource, "это не полное время npm install", "postinstall timing should not imply full npm install time");
|
|
85
|
+
assertIncludes(postinstallSource, "Настройка CLI после скачивания заняла", "postinstall should print setup-only duration");
|
|
86
86
|
|
|
87
87
|
const commands = await runCli(["commands"]);
|
|
88
88
|
assertIncludes(commands, "iola browser status|install|open|text|html|screenshot|pdf|click|type|eval", "commands");
|