esoftplay 0.0.126-u → 0.0.126-v

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.
Files changed (2) hide show
  1. package/bin/cli.js +13 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -506,6 +506,7 @@ function readToJSON(path) {
506
506
  return isJSON ? JSON.parse(txt) : txt
507
507
  }
508
508
 
509
+
509
510
  function publish(notes) {
510
511
  jsEng(appjson, true)
511
512
  jsEng(appdebug, true)
@@ -595,8 +596,18 @@ function publish(notes) {
595
596
  esplibs.forEach((key) => {
596
597
  stringBuilder += ("\n" + key + ": " + pack.dependencies[key])
597
598
  })
598
- stringBuilder += (notes != '' ? ("\n\n- " + notes) : '')
599
- tm(stringBuilder)
599
+ const { exec } = require('child_process');
600
+ exec("publisher=$(npx expo whoami &); echo $publisher;", (error, stdout, stderr) => {
601
+ if (error) {
602
+ console.error(`exec error: ${error}`);
603
+ return;
604
+ }
605
+ let accountName = stdout.trim();
606
+ stringBuilder += "\npublisher: @" + accountName + "\n"
607
+ stringBuilder += (notes != '' ? ("\n\n- " + notes) : '')
608
+ tm(stringBuilder)
609
+ });
610
+
600
611
  }
601
612
  }
602
613
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.126-u",
3
+ "version": "0.0.126-v",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",