@iebh/tera-fy 1.11.0 → 1.11.2
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/plugins/vite.js +8 -3
- package/plugins/vue3.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iebh/tera-fy",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"description": "TERA website worker",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "esbuild --platform=browser --format=esm --bundle lib/terafy.client.js --outfile=dist/terafy.js --minify --serve --servedir=.",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"lodash-es": "^4.17.21",
|
|
77
77
|
"mitt": "^3.0.1",
|
|
78
78
|
"nanoid": "^5.0.2",
|
|
79
|
-
"release-it": "^17.
|
|
79
|
+
"release-it": "^17.4.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@momsfriendlydevco/eslint-config": "^1.0.7",
|
package/plugins/vite.js
CHANGED
|
@@ -8,11 +8,16 @@ import TeraProxy from '../lib/terafy.proxy.js';
|
|
|
8
8
|
* @returns {VitePlugin}
|
|
9
9
|
*/
|
|
10
10
|
export default function vitePluginTeraFy(options) {
|
|
11
|
-
TeraProxy(options);
|
|
12
11
|
|
|
13
|
-
// Vite
|
|
12
|
+
// Vite plugin config
|
|
14
13
|
return {
|
|
15
14
|
name: 'tera-fy',
|
|
16
|
-
apply
|
|
15
|
+
apply(config, {command}) { // Only run within serve-mode rather than each build
|
|
16
|
+
|
|
17
|
+
// Don't run when building
|
|
18
|
+
if (command == 'build') return false;
|
|
19
|
+
|
|
20
|
+
TeraProxy(options);
|
|
21
|
+
},
|
|
17
22
|
}
|
|
18
23
|
}
|