plusui-native-builder 0.1.8 → 0.1.10
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/package.json +2 -2
- package/src/index.js +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plusui-native-builder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Multi-platform build tool for PlusUI",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"plusui-native-bindgen": "^0.1.
|
|
28
|
+
"plusui-native-bindgen": "^0.1.10"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/index.js
CHANGED
|
@@ -57,8 +57,11 @@ const PLATFORMS = {
|
|
|
57
57
|
|
|
58
58
|
function resolveBindgenScriptPath() {
|
|
59
59
|
const candidates = [
|
|
60
|
+
join(__dirname, '..', '..', 'plusui-bindgen', 'src', 'advanced-bindgen.js'),
|
|
60
61
|
join(__dirname, '..', '..', 'plusui-bindgen', 'src', 'index.js'),
|
|
62
|
+
join(__dirname, '..', '..', 'plusui-native-bindgen', 'src', 'advanced-bindgen.js'),
|
|
61
63
|
join(__dirname, '..', '..', 'plusui-native-bindgen', 'src', 'index.js'),
|
|
64
|
+
join(process.cwd(), 'node_modules', 'plusui-native-bindgen', 'src', 'advanced-bindgen.js'),
|
|
62
65
|
join(process.cwd(), 'node_modules', 'plusui-native-bindgen', 'src', 'index.js'),
|
|
63
66
|
];
|
|
64
67
|
|
|
@@ -100,10 +103,10 @@ function generateBindings() {
|
|
|
100
103
|
error('plusui-bindgen not found. Please ensure plusui-native-bindgen is installed.');
|
|
101
104
|
}
|
|
102
105
|
|
|
103
|
-
const
|
|
104
|
-
const outputDir = './src/
|
|
105
|
-
runCommand(`node ${bindgenPath} ${
|
|
106
|
-
syncGeneratedTsBindings('./src/
|
|
106
|
+
const projectRoot = '.';
|
|
107
|
+
const outputDir = './src/Bindings';
|
|
108
|
+
runCommand(`node ${bindgenPath} ${projectRoot} ${outputDir}`);
|
|
109
|
+
syncGeneratedTsBindings('./src/Bindings', './frontend/src/Bindings');
|
|
107
110
|
log('Bindings generated ✓', 'green');
|
|
108
111
|
}
|
|
109
112
|
|