@ray-js/cli 0.5.8-beta-1 → 0.5.9

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/ray-build.js CHANGED
@@ -16,13 +16,8 @@ program
16
16
  .option('--max-workers <workers>', 'RN打包的max-workers')
17
17
  .action(function (cwd = '', options) {
18
18
  log.verbose('cli', options)
19
- // @ts-ignore
20
- if (options.target === 'tuya') {
21
- log.verbose('cli', 'change target tuya -> thing')
22
- options.target = 'thing'
23
- }
24
-
25
19
  const finalCwd = path.join(process.cwd(), cwd)
20
+
26
21
  require('../lib/build').default({ cwd: finalCwd, ...options })
27
22
  })
28
23
  .parse(process.argv)
package/bin/ray-start.js CHANGED
@@ -16,11 +16,6 @@ program
16
16
  .option('--emit-declaration-dev', '组件开发模式下生成dts文件', false)
17
17
  .action(function (cwd = '', options) {
18
18
  log.verbose('cli', options)
19
- // @ts-ignore
20
- if (options.target === 'tuya') {
21
- log.verbose('cli', 'change target tuya -> thing')
22
- options.target = 'thing'
23
- }
24
19
  const finalCwd = path.join(process.cwd(), cwd)
25
20
  require('../lib/start').default({ cwd: finalCwd, ...options })
26
21
  })
@@ -26,7 +26,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.runBuilder = void 0;
27
27
  const builder_mp_1 = require("@ray-js/builder-mp");
28
28
  const builder_web_1 = require("@ray-js/builder-web");
29
- const builder_native_1 = require("@ray-js/builder-native");
30
29
  const API_1 = __importDefault(require("./API"));
31
30
  function runBuilder(options) {
32
31
  return __awaiter(this, void 0, void 0, function* () {
@@ -39,18 +38,13 @@ function runBuilder(options) {
39
38
  const opts = Object.assign(Object.assign({}, rest), { target });
40
39
  const ctx = { api };
41
40
  switch (target) {
42
- // @ts-ignore
43
- case 'tuya':
44
41
  case 'wechat':
45
- case 'thing':
42
+ case 'tuya':
46
43
  yield (0, builder_mp_1.build)(opts, ctx);
47
44
  break;
48
45
  case 'web':
49
46
  yield (0, builder_web_1.build)(opts, ctx);
50
47
  break;
51
- case 'native':
52
- yield (0, builder_native_1.build)(opts, ctx);
53
- break;
54
48
  default:
55
49
  throw new Error(`Target '${target}' is not supported.'`);
56
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/cli",
3
- "version": "0.5.8-beta-1",
3
+ "version": "0.5.9",
4
4
  "description": "Ray cli",
5
5
  "bin": {
6
6
  "ray": "./bin/ray"
@@ -24,14 +24,13 @@
24
24
  "watch": "tsc -p ./tsconfig.build.json --watch"
25
25
  },
26
26
  "dependencies": {
27
- "@ray-js/build-plugin-ray": "^0.5.8-beta-1",
28
- "@ray-js/build-plugin-router": "^0.5.8-beta-1",
29
- "@ray-js/builder-component": "^0.5.8-beta-1",
30
- "@ray-js/builder-mp": "^0.5.8-beta-1",
31
- "@ray-js/builder-native": "^0.5.8-beta-1",
32
- "@ray-js/builder-web": "^0.5.8-beta-1",
33
- "@ray-js/shared": "^0.5.8-beta-1",
34
- "@ray-js/types": "^0.5.8-beta-1",
27
+ "@ray-js/build-plugin-ray": "^0.5.9",
28
+ "@ray-js/build-plugin-router": "^0.5.9",
29
+ "@ray-js/builder-component": "^0.5.9",
30
+ "@ray-js/builder-mp": "^0.5.9",
31
+ "@ray-js/builder-web": "^0.5.9",
32
+ "@ray-js/shared": "^0.5.9",
33
+ "@ray-js/types": "^0.5.9",
35
34
  "colors": "1.4.0",
36
35
  "commander": "^8.2.0",
37
36
  "webpack-chain": "^6.5.1"
@@ -42,6 +41,6 @@
42
41
  "email": "tuyafe@tuya.com"
43
42
  }
44
43
  ],
45
- "gitHead": "dbd3b62bdfcf744832f15a2aac92ac15b091d0f9",
44
+ "gitHead": "8618821f05c00f4987138f5b523ae6261e32c9a6",
46
45
  "repository": {}
47
46
  }