@struggler/cli 1.0.0 → 1.0.1
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/command/upload.js +2 -3
- package/package.json +2 -3
package/command/upload.js
CHANGED
|
@@ -89,11 +89,10 @@ function main(options) {
|
|
|
89
89
|
|
|
90
90
|
const str = path.relative(dir, localFile)
|
|
91
91
|
|
|
92
|
-
key = prefix + str
|
|
92
|
+
key = prefix + str
|
|
93
93
|
|
|
94
94
|
//上传之后的文件名
|
|
95
|
-
|
|
96
|
-
key = key.replace("\\", "/");
|
|
95
|
+
key = key.replace(/\\/g, "/")
|
|
97
96
|
|
|
98
97
|
formUploader.putFile(uploadToken, key, localFile, null, function (respErr,
|
|
99
98
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@struggler/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "CLI to Upload vite packaged files to Qiniu Cloud OSS.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,6 +24,5 @@
|
|
|
24
24
|
},
|
|
25
25
|
"publicConfig": {
|
|
26
26
|
"registry": "http://registry.npmjs.org/"
|
|
27
|
-
}
|
|
28
|
-
|
|
27
|
+
}
|
|
29
28
|
}
|