@ray-js/cli 1.5.6 → 1.5.8
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 +1 -1
- package/lib/build.js +1 -0
- package/package.json +10 -10
package/bin/ray-build.js
CHANGED
|
@@ -48,7 +48,7 @@ program
|
|
|
48
48
|
PLATFORM: options.target,
|
|
49
49
|
REMAX_PLATFORM: options.target,
|
|
50
50
|
})
|
|
51
|
-
cwd = path.
|
|
51
|
+
cwd = path.resolve(process.cwd(), cwd)
|
|
52
52
|
const devtools = process.env.TUYA_DEVTOOLS !== undefined
|
|
53
53
|
const mode = process.env.NODE_ENV
|
|
54
54
|
require('../lib/build').default({ ...options, cwd, mode, devtools })
|
package/lib/build.js
CHANGED
|
@@ -15,6 +15,7 @@ const run_builder_1 = require("./run-builder");
|
|
|
15
15
|
function build(options) {
|
|
16
16
|
const { type = 'app' } = options, restOptions = __rest(options, ["type"]);
|
|
17
17
|
if (restOptions.target === 'thing' && restOptions.bundler === 'esbuild') {
|
|
18
|
+
process.chdir(restOptions.cwd);
|
|
18
19
|
// 使用 raypack 进行构建
|
|
19
20
|
const { build } = require('@ray-js/raypack');
|
|
20
21
|
const opts = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
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.5.
|
|
31
|
-
"@ray-js/build-plugin-router": "1.5.
|
|
32
|
-
"@ray-js/builder-component": "1.5.
|
|
33
|
-
"@ray-js/builder-mp": "1.5.
|
|
34
|
-
"@ray-js/builder-web": "1.5.
|
|
35
|
-
"@ray-js/raypack": "1.5.
|
|
36
|
-
"@ray-js/shared": "1.5.
|
|
37
|
-
"@ray-js/types": "1.5.
|
|
30
|
+
"@ray-js/build-plugin-ray": "1.5.8",
|
|
31
|
+
"@ray-js/build-plugin-router": "1.5.8",
|
|
32
|
+
"@ray-js/builder-component": "1.5.8",
|
|
33
|
+
"@ray-js/builder-mp": "1.5.8",
|
|
34
|
+
"@ray-js/builder-web": "1.5.8",
|
|
35
|
+
"@ray-js/raypack": "1.5.8",
|
|
36
|
+
"@ray-js/shared": "1.5.8",
|
|
37
|
+
"@ray-js/types": "1.5.8",
|
|
38
38
|
"colors": "1.4.0",
|
|
39
39
|
"commander": "^8.3.0",
|
|
40
40
|
"webpack-chain": "^6.5.1"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"access": "public",
|
|
44
44
|
"registry": "https://registry.npmjs.org"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "5e676b1fb2f9d04c5bcec74f0988dcb9c7e658b8",
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"typescript": "^5.4.5"
|
|
49
49
|
}
|