@farmfe/plugin-wasm 0.0.4 → 0.0.6
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 +10 -10
- package/scripts/index.js +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farmfe/plugin-wasm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"main": "scripts/index.js",
|
|
5
5
|
"types": "scripts/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"options.d.ts"
|
|
37
37
|
],
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"farmfe
|
|
40
|
-
"farmfe
|
|
41
|
-
"farmfe
|
|
42
|
-
"farmfe
|
|
43
|
-
"farmfe
|
|
44
|
-
"farmfe
|
|
45
|
-
"farmfe
|
|
46
|
-
"farmfe
|
|
47
|
-
"farmfe
|
|
39
|
+
"@farmfe/plugin-wasm-darwin-arm64": "0.0.6",
|
|
40
|
+
"@farmfe/plugin-wasm-darwin-x64": "0.0.6",
|
|
41
|
+
"@farmfe/plugin-wasm-linux-arm64-gnu": "0.0.6",
|
|
42
|
+
"@farmfe/plugin-wasm-linux-arm64-musl": "0.0.6",
|
|
43
|
+
"@farmfe/plugin-wasm-linux-x64-gnu": "0.0.6",
|
|
44
|
+
"@farmfe/plugin-wasm-linux-x64-musl": "0.0.6",
|
|
45
|
+
"@farmfe/plugin-wasm-win32-arm64-msvc": "0.0.6",
|
|
46
|
+
"@farmfe/plugin-wasm-win32-ia32-msvc": "0.0.6",
|
|
47
|
+
"@farmfe/plugin-wasm-win32-x64-msvc": "0.0.6"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"dev": "cargo watch -w src -s 'scripts/watch.sh'",
|
package/scripts/index.js
CHANGED
|
@@ -31,7 +31,7 @@ switch (platform) {
|
|
|
31
31
|
if (existsSync(join(currentDir, '../npm/win32-x64-msvc/index.farm'))) {
|
|
32
32
|
binPath = join(currentDir, '../npm/win32-x64-msvc/index.farm');
|
|
33
33
|
} else {
|
|
34
|
-
binPath = require.resolve('farmfe
|
|
34
|
+
binPath = require.resolve('@farmfe/plugin-wasm-win32-x64-msvc');
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
break;
|
|
@@ -39,7 +39,7 @@ switch (platform) {
|
|
|
39
39
|
if (existsSync(join(currentDir, '../npm/win32-ia32-msvc/index.farm'))) {
|
|
40
40
|
binPath = join(currentDir, '../npm/win32-ia32-msvc/index.farm');
|
|
41
41
|
} else {
|
|
42
|
-
binPath = require.resolve('farmfe
|
|
42
|
+
binPath = require.resolve('@farmfe/plugin-wasm-win32-ia32-msvc');
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
break;
|
|
@@ -47,7 +47,7 @@ switch (platform) {
|
|
|
47
47
|
if (existsSync(join(currentDir, '../npm/win32-arm64-msvc/index.farm'))) {
|
|
48
48
|
binPath = join(currentDir, '../npm/win32-arm64-msvc/index.farm');
|
|
49
49
|
} else {
|
|
50
|
-
binPath = require.resolve('farmfe
|
|
50
|
+
binPath = require.resolve('@farmfe/plugin-wasm-win32-arm64-msvc');
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
break;
|
|
@@ -61,14 +61,14 @@ switch (platform) {
|
|
|
61
61
|
if (existsSync(join(currentDir, '../npm/darwin-x64/index.farm'))) {
|
|
62
62
|
binPath = join(currentDir, '../npm/darwin-x64/index.farm');
|
|
63
63
|
} else {
|
|
64
|
-
binPath = require.resolve('farmfe
|
|
64
|
+
binPath = require.resolve('@farmfe/plugin-wasm-darwin-x64');
|
|
65
65
|
}
|
|
66
66
|
break;
|
|
67
67
|
case 'arm64':
|
|
68
68
|
if (existsSync(join(currentDir, '../npm/darwin-arm64/index.farm'))) {
|
|
69
69
|
binPath = join(currentDir, '../npm/darwin-arm64/index.farm');
|
|
70
70
|
} else {
|
|
71
|
-
binPath = require.resolve('farmfe
|
|
71
|
+
binPath = require.resolve('@farmfe/plugin-wasm-darwin-arm64');
|
|
72
72
|
}
|
|
73
73
|
break;
|
|
74
74
|
default:
|
|
@@ -82,13 +82,13 @@ switch (platform) {
|
|
|
82
82
|
if (existsSync(join(currentDir, '../npm/linux-x64-musl/index.farm'))) {
|
|
83
83
|
binPath = join(currentDir, '../npm/linux-x64-musl/index.farm');
|
|
84
84
|
} else {
|
|
85
|
-
binPath = require.resolve('farmfe
|
|
85
|
+
binPath = require.resolve('@farmfe/plugin-wasm-linux-x64-musl');
|
|
86
86
|
}
|
|
87
87
|
} else {
|
|
88
88
|
if (existsSync(join(currentDir, '../npm/linux-x64-gnu/index.farm'))) {
|
|
89
89
|
binPath = join(currentDir, '../npm/linux-x64-gnu/index.farm');
|
|
90
90
|
} else {
|
|
91
|
-
binPath = require.resolve('farmfe
|
|
91
|
+
binPath = require.resolve('@farmfe/plugin-wasm-linux-x64-gnu');
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -101,7 +101,7 @@ switch (platform) {
|
|
|
101
101
|
) {
|
|
102
102
|
binPath = join(currentDir, '../npm/linux-arm64-musl/index.farm');
|
|
103
103
|
} else {
|
|
104
|
-
binPath = require.resolve('farmfe
|
|
104
|
+
binPath = require.resolve('@farmfe/plugin-wasm-linux-arm64-musl');
|
|
105
105
|
}
|
|
106
106
|
} else {
|
|
107
107
|
if (
|
|
@@ -109,7 +109,7 @@ switch (platform) {
|
|
|
109
109
|
) {
|
|
110
110
|
binPath = join(currentDir, '../npm/linux-arm64-gnu/index.farm');
|
|
111
111
|
} else {
|
|
112
|
-
binPath = require.resolve('farmfe
|
|
112
|
+
binPath = require.resolve('@farmfe/plugin-wasm-linux-arm64-gnu');
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
break;
|