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

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,8 +16,13 @@ program
16
16
  .option('--max-workers <workers>', 'RN打包的max-workers')
17
17
  .action(function (cwd = '', options) {
18
18
  log.verbose('cli', options)
19
- const finalCwd = path.join(process.cwd(), cwd)
19
+ // @ts-ignore
20
+ if (options.target === 'tuya') {
21
+ log.verbose('cli', 'change target tuya -> thing')
22
+ options.target = 'thing'
23
+ }
20
24
 
25
+ const finalCwd = path.join(process.cwd(), cwd)
21
26
  require('../lib/build').default({ cwd: finalCwd, ...options })
22
27
  })
23
28
  .parse(process.argv)
package/bin/ray-start.js CHANGED
@@ -16,6 +16,11 @@ 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
+ }
19
24
  const finalCwd = path.join(process.cwd(), cwd)
20
25
  require('../lib/start').default({ cwd: finalCwd, ...options })
21
26
  })
@@ -38,8 +38,10 @@ function runBuilder(options) {
38
38
  const opts = Object.assign(Object.assign({}, rest), { target });
39
39
  const ctx = { api };
40
40
  switch (target) {
41
- case 'wechat':
41
+ // @ts-ignore
42
42
  case 'tuya':
43
+ case 'wechat':
44
+ case 'thing':
43
45
  yield (0, builder_mp_1.build)(opts, ctx);
44
46
  break;
45
47
  case 'web':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/cli",
3
- "version": "0.5.9",
3
+ "version": "0.5.10-beta-1",
4
4
  "description": "Ray cli",
5
5
  "bin": {
6
6
  "ray": "./bin/ray"
@@ -24,13 +24,13 @@
24
24
  "watch": "tsc -p ./tsconfig.build.json --watch"
25
25
  },
26
26
  "dependencies": {
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",
27
+ "@ray-js/build-plugin-ray": "^0.5.10-beta-1",
28
+ "@ray-js/build-plugin-router": "^0.5.10-beta-1",
29
+ "@ray-js/builder-component": "^0.5.10-beta-1",
30
+ "@ray-js/builder-mp": "^0.5.10-beta-1",
31
+ "@ray-js/builder-web": "^0.5.10-beta-1",
32
+ "@ray-js/shared": "^0.5.10-beta-1",
33
+ "@ray-js/types": "^0.5.10-beta-1",
34
34
  "colors": "1.4.0",
35
35
  "commander": "^8.2.0",
36
36
  "webpack-chain": "^6.5.1"
@@ -41,6 +41,6 @@
41
41
  "email": "tuyafe@tuya.com"
42
42
  }
43
43
  ],
44
- "gitHead": "8618821f05c00f4987138f5b523ae6261e32c9a6",
44
+ "gitHead": "269dad23e6a4cbbc8289142e6a60cc2586e4c130",
45
45
  "repository": {}
46
46
  }