esoftplay 0.0.136-o → 0.0.136-p

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 (3) hide show
  1. package/bin/cli.js +5 -4
  2. package/moment.ts +1 -1
  3. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -793,6 +793,7 @@ function buildPrepare(include = true) {
793
793
  consoleSucces("BUILD PREPARE SUCCESS..!")
794
794
  }
795
795
  } else {
796
+ excludeOnBuild('ios', false)
796
797
  if (fs.existsSync('./assets/esoftplaymodules')) {
797
798
  command('rm -rf ./modules && mv ./assets/esoftplaymodules modules')
798
799
  consoleSucces("BUILD PREPARE SUCCESS CANCELED..!")
@@ -838,7 +839,7 @@ function excludeOnBuild(platform, isBackup) {
838
839
  }
839
840
  }
840
841
  if (fs.existsSync(confjson)) {
841
- let cjson = readToJSON(confjson)
842
+ let cjson = readToJSON(confjson).config
842
843
  if (cjson.exclude) {
843
844
  if (cjson.exclude[platform]) {
844
845
  let excluded = cjson.exclude[platform]
@@ -848,7 +849,7 @@ function excludeOnBuild(platform, isBackup) {
848
849
  /* cleanup */
849
850
  let cleanDeps = {}
850
851
  Object.keys(pjson.dependencies).forEach((key) => {
851
- const value = Object.values(pjson.dependencies[key])
852
+ const value = pjson.dependencies[key]
852
853
  if (!excluded.includes(key))
853
854
  cleanDeps[key] = value
854
855
  })
@@ -982,10 +983,10 @@ function build() {
982
983
  consoleSucces("⚙⚙⚙ ... \n" + cmd)
983
984
  command(cmd)
984
985
  excludeOnBuild('android', false)
985
-
986
+
986
987
  const cjson = readToJSON(confjson)
987
988
  const ajson = readToJSON(appjson)
988
-
989
+
989
990
  if (local) {
990
991
  const fs = require('fs');
991
992
  const path = require('path');
package/moment.ts CHANGED
@@ -59,7 +59,7 @@ export default function moment(date?: string | Date | any) {
59
59
  locale: (locale_id: string) => {
60
60
  require('dayjs/locale/en')
61
61
  require('dayjs/locale/id')
62
- require('dayjs/locale/id')
62
+ require('dayjs/locale/cn')
63
63
  const out = dayjs.locale(locale_id)
64
64
  return moment(out)
65
65
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.136-o",
3
+ "version": "0.0.136-p",
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",