vite-plugin-deploy-ftp 0.0.9 → 0.0.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/dist/index.js CHANGED
@@ -58,7 +58,15 @@ function vitePluginDeployFtp(option) {
58
58
  retryDelay = 1e3
59
59
  } = option || {};
60
60
  if (!host || !user || !password || !uploadPath) {
61
- throw new Error("Missing required FTP configuration: host, user, password, uploadPath");
61
+ return {
62
+ name: "vite-plugin-deploy-ftp",
63
+ apply: "build",
64
+ enforce: "post",
65
+ configResolved() {
66
+ },
67
+ closeBundle: { sequential: true, order: "post", async handler() {
68
+ } }
69
+ };
62
70
  }
63
71
  let outDir = "dist";
64
72
  return {
package/dist/index.mjs CHANGED
@@ -24,7 +24,15 @@ function vitePluginDeployFtp(option) {
24
24
  retryDelay = 1e3
25
25
  } = option || {};
26
26
  if (!host || !user || !password || !uploadPath) {
27
- throw new Error("Missing required FTP configuration: host, user, password, uploadPath");
27
+ return {
28
+ name: "vite-plugin-deploy-ftp",
29
+ apply: "build",
30
+ enforce: "post",
31
+ configResolved() {
32
+ },
33
+ closeBundle: { sequential: true, order: "post", async handler() {
34
+ } }
35
+ };
28
36
  }
29
37
  let outDir = "dist";
30
38
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-deploy-ftp",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",