@be-link/cos 1.3.0 → 1.4.0

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.
Files changed (2) hide show
  1. package/lib/upload.js +2 -2
  2. package/package.json +2 -2
package/lib/upload.js CHANGED
@@ -9,7 +9,7 @@ const [mode] = argv
9
9
  console.log('mode', mode)
10
10
 
11
11
  // 获取项目名称
12
- const baseUrl = mode === 'production' ? 'project/prod/' : 'project/dev'
12
+ const baseUrl = mode === 'production' ? 'project/prod/' : 'project/dev/'
13
13
  const packageUrl = path.resolve(process.cwd(), './package.json')
14
14
  const projectPackage = fs.readFileSync(packageUrl, { encoding: 'utf-8' })
15
15
  const projectName = JSON.parse(projectPackage).name
@@ -118,7 +118,7 @@ function deleteProject() {
118
118
  // 上传新的文件
119
119
 
120
120
  function staticUploadToCos() {
121
- console.log('资源上传至:https://release-1304510571.file.myqcloud.com' + projectRemoteUrl)
121
+ console.log('资源上传至:https://release-1304510571.file.myqcloud.com/' + projectRemoteUrl)
122
122
  const files = getAllFiles(distDirUrl)
123
123
  deleteProject().then(() => {
124
124
  files.forEach((file) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/cos",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "前端项目产物上传cos",
5
5
  "author": "zhuifeng <yangyiboys@163.com>",
6
6
  "homepage": "https://github.com/snowmountain-top/be-link#readme",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "7f41c9d4fef198348a623e16383a0e1cad6e1238"
30
+ "gitHead": "f02e6108e962f61c342b70caebba77163d8b34cd"
31
31
  }