vite-plugin-deploy-oss 0.0.6 → 0.0.7
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -4
package/dist/index.js
CHANGED
|
@@ -88,7 +88,7 @@ function vitePluginDeployOss(option) {
|
|
|
88
88
|
});
|
|
89
89
|
for (const file of files) {
|
|
90
90
|
const filePath = (0, import_vite.normalizePath)(file);
|
|
91
|
-
const name = filePath.replace("dist", `${uploadDir}`);
|
|
91
|
+
const name = filePath.replace("dist", `${uploadDir}`).replace(/\/\//, "/");
|
|
92
92
|
try {
|
|
93
93
|
const result = await client.put(name, filePath, {
|
|
94
94
|
timeout: 6e5,
|
package/dist/index.mjs
CHANGED
|
@@ -54,7 +54,7 @@ function vitePluginDeployOss(option) {
|
|
|
54
54
|
});
|
|
55
55
|
for (const file of files) {
|
|
56
56
|
const filePath = normalizePath(file);
|
|
57
|
-
const name = filePath.replace("dist", `${uploadDir}`);
|
|
57
|
+
const name = filePath.replace("dist", `${uploadDir}`).replace(/\/\//, "/");
|
|
58
58
|
try {
|
|
59
59
|
const result = await client.put(name, filePath, {
|
|
60
60
|
timeout: 6e5,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-deploy-oss",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -27,9 +27,7 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.10.1",
|
|
29
29
|
"tsup": "^8.3.5",
|
|
30
|
-
"typescript": "^5.7.2"
|
|
31
|
-
},
|
|
32
|
-
"peerDependencies": {
|
|
30
|
+
"typescript": "^5.7.2",
|
|
33
31
|
"vite": "^6.0.3"
|
|
34
32
|
},
|
|
35
33
|
"dependencies": {
|