@zeppos/zeus-cli 1.1.6 → 1.1.7

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/modules/run.js +6 -2
  2. package/package.json +1 -1
package/modules/run.js CHANGED
@@ -84,7 +84,6 @@ var run = function (args) { return __awaiter(void 0, void 0, void 0, function ()
84
84
  return __generator(this, function (_d) {
85
85
  switch (_d.label) {
86
86
  case 0:
87
- fs_extra_1["default"].readJSONSync(path.resolve('./app.json'), { throws: false });
88
87
  simulatorHost = '';
89
88
  simulatorPort = '';
90
89
  _a = args.simulatorHost, promptSimulatorHost = _a === void 0 ? '' : _a, _b = args.simulatorPort, promptSimulatorPort = _b === void 0 ? exports.DEFAULT_PORT : _b;
@@ -121,6 +120,8 @@ var run = function (args) { return __awaiter(void 0, void 0, void 0, function ()
121
120
  case 1:
122
121
  answer = _d.sent();
123
122
  if (!simulatorHost) {
123
+ simulatorHost = answer.host || exports.DEFAULT_HOST;
124
+ simulatorPort = answer.port || exports.DEFAULT_PORT;
124
125
  storage_1.globalStorage.set((_c = {},
125
126
  _c[project_1.simulatorStorageKey.simulatorHost] = answer.host || exports.DEFAULT_HOST,
126
127
  _c[project_1.simulatorStorageKey.simulatorPort] = answer.port || exports.DEFAULT_PORT,
@@ -135,6 +136,9 @@ var run = function (args) { return __awaiter(void 0, void 0, void 0, function ()
135
136
  switch (_b.label) {
136
137
  case 0:
137
138
  logger.info('rebuilding...');
139
+ if (process.env._targetDeviceToBuild && !args.target) {
140
+ args.target = process.env._targetDeviceToBuild;
141
+ }
138
142
  return [4, (0, build_1.buildDev)(args)];
139
143
  case 1:
140
144
  zpkBuffer = _b.sent();
@@ -166,7 +170,7 @@ var run = function (args) { return __awaiter(void 0, void 0, void 0, function ()
166
170
  ignored = lodash_1["default"].union([
167
171
  '.gitignore',
168
172
  'jsconfig.json',
169
- 'dist/*',
173
+ 'dist/**',
170
174
  'node_modules/**',
171
175
  '.git/**',
172
176
  'yarn.lock',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeppos/zeus-cli",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "zeus mini-program tools",
5
5
  "main": "index.js",
6
6
  "author": "zepp",