vite-plugin-deploy-ftp 0.0.5 → 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/dist/index.js +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -133,13 +133,11 @@ async function createBackupFile(client, dir, protocol, other) {
|
|
|
133
133
|
archive.directory(localDir, false);
|
|
134
134
|
await archive.finalize();
|
|
135
135
|
backupSpinner.text = `\u538B\u7F29\u5B8C\u6210, \u51C6\u5907\u4E0A\u4F20 ${import_chalk.default.yellow(
|
|
136
|
-
`\u76EE\u5F55: ==> ${
|
|
136
|
+
`\u76EE\u5F55: ==> ${protocol + (0, import_vite.normalizePath)(other + dir + "/" + fileName)}`
|
|
137
137
|
)}`;
|
|
138
138
|
await client.uploadFrom(zipFilePath, (0, import_vite.normalizePath)(`${dir}/${fileName}`));
|
|
139
139
|
backupSpinner.succeed(
|
|
140
|
-
`\u5907\u4EFD\u6210\u529F ${import_chalk.default.green(
|
|
141
|
-
`\u76EE\u5F55: ==> ${(0, import_vite.normalizePath)(`${protocol + (0, import_vite.normalizePath)(other + dir + "/" + fileName)}`)}`
|
|
142
|
-
)}`
|
|
140
|
+
`\u5907\u4EFD\u6210\u529F ${import_chalk.default.green(`\u76EE\u5F55: ==> ${protocol + (0, import_vite.normalizePath)(other + dir + "/" + fileName)}`)}`
|
|
143
141
|
);
|
|
144
142
|
import_node_fs.default.rmSync(`./__temp`, { recursive: true });
|
|
145
143
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -99,13 +99,11 @@ async function createBackupFile(client, dir, protocol, other) {
|
|
|
99
99
|
archive.directory(localDir, false);
|
|
100
100
|
await archive.finalize();
|
|
101
101
|
backupSpinner.text = `\u538B\u7F29\u5B8C\u6210, \u51C6\u5907\u4E0A\u4F20 ${chalk.yellow(
|
|
102
|
-
`\u76EE\u5F55: ==> ${
|
|
102
|
+
`\u76EE\u5F55: ==> ${protocol + normalizePath(other + dir + "/" + fileName)}`
|
|
103
103
|
)}`;
|
|
104
104
|
await client.uploadFrom(zipFilePath, normalizePath(`${dir}/${fileName}`));
|
|
105
105
|
backupSpinner.succeed(
|
|
106
|
-
`\u5907\u4EFD\u6210\u529F ${chalk.green(
|
|
107
|
-
`\u76EE\u5F55: ==> ${normalizePath(`${protocol + normalizePath(other + dir + "/" + fileName)}`)}`
|
|
108
|
-
)}`
|
|
106
|
+
`\u5907\u4EFD\u6210\u529F ${chalk.green(`\u76EE\u5F55: ==> ${protocol + normalizePath(other + dir + "/" + fileName)}`)}`
|
|
109
107
|
);
|
|
110
108
|
fs.rmSync(`./__temp`, { recursive: true });
|
|
111
109
|
}
|