@ray-js/cli 1.4.43 → 1.4.44

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 CHANGED
@@ -6,6 +6,7 @@ colors.enable();
6
6
 
7
7
  if (process.argv.includes('--verbose') || 'VERBOSE' in process.env) {
8
8
  process.env.LOG_LEVEL = 'verbose';
9
+ process.env.VERBOSE = 'true';
9
10
  }
10
11
 
11
12
  const program = require('commander');
package/bin/ray-build.js CHANGED
@@ -15,6 +15,7 @@ program
15
15
  .option('--no-sourcemap', '禁用 sourcemap')
16
16
  .option('-t --target <target>', '目标平台')
17
17
  .option('-a --analyze', '开启 analyze 分析')
18
+ .option('--drop', '移除 console debugger 等', false)
18
19
  .option('--type <type>', '构建类型 eg: app | component', 'app')
19
20
  .option('--transform-mode <mode>', '组件转换类型 eg: auto | pure', 'pure')
20
21
  .option(
package/bin/ray-start.js CHANGED
@@ -15,6 +15,7 @@ program
15
15
  .option('--no-sourcemap', '禁用 sourcemap')
16
16
  .option('-t --target <target>', '目标平台')
17
17
  .option('-a --analyze', '开启 analyze 分析')
18
+ .option('--drop', '移除 console debugger 等', false)
18
19
  .option('--type <type>', '构建类型 eg: app | component', 'app')
19
20
  .option('--transform-mode <mode>', '组件转换类型 eg: auto | pure', 'pure')
20
21
  .option(
package/lib/start.js CHANGED
@@ -25,6 +25,8 @@ function start(options) {
25
25
  minify: restOptions.mini,
26
26
  autoCssModules: false,
27
27
  sourcemap: restOptions.sourcemap,
28
+ drop: restOptions.drop,
29
+ analyze: restOptions.analyze,
28
30
  };
29
31
  build(opts).catch((error) => {
30
32
  console.log(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/cli",
3
- "version": "1.4.43",
3
+ "version": "1.4.44",
4
4
  "description": "Ray cli",
5
5
  "keywords": [
6
6
  "ray"
@@ -27,14 +27,14 @@
27
27
  "watch": "tsc -p ./tsconfig.build.json --watch"
28
28
  },
29
29
  "dependencies": {
30
- "@ray-js/build-plugin-ray": "1.4.43",
31
- "@ray-js/build-plugin-router": "1.4.43",
32
- "@ray-js/builder-component": "1.4.43",
33
- "@ray-js/builder-mp": "1.4.43",
34
- "@ray-js/builder-web": "1.4.43",
35
- "@ray-js/raypack": "1.4.43",
36
- "@ray-js/shared": "1.4.43",
37
- "@ray-js/types": "1.4.43",
30
+ "@ray-js/build-plugin-ray": "1.4.44",
31
+ "@ray-js/build-plugin-router": "1.4.44",
32
+ "@ray-js/builder-component": "1.4.44",
33
+ "@ray-js/builder-mp": "1.4.44",
34
+ "@ray-js/builder-web": "1.4.44",
35
+ "@ray-js/raypack": "1.4.44",
36
+ "@ray-js/shared": "1.4.44",
37
+ "@ray-js/types": "1.4.44",
38
38
  "colors": "1.4.0",
39
39
  "commander": "^8.3.0",
40
40
  "webpack-chain": "^6.5.1"
@@ -43,5 +43,8 @@
43
43
  "access": "public",
44
44
  "registry": "https://registry.npmjs.org"
45
45
  },
46
- "gitHead": "9da07e2e3428fda38f38d51718aea5e8589928fd"
46
+ "gitHead": "f18e70a94d4b1e9e916ea373da3cafeb8b4d4ab6",
47
+ "devDependencies": {
48
+ "typescript": "^5.3.3"
49
+ }
47
50
  }