소스 검색

Fix uploadcdn for local build

Renée Kooi 5 년 전
부모
커밋
dabc10b3bd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bin/upload-to-cdn.js

+ 1 - 1
bin/upload-to-cdn.js

@@ -103,7 +103,7 @@ async function main (packageName, version) {
   // version should only be a positional arg and semver string
   // this deals with usage like `npm run uploadcdn uppy -- --force`
   // where we force push a local build
-  if (version.startsWith('-')) version = undefined
+  if (version && version.startsWith('-')) version = undefined
 
   const s3 = new AWS.S3({
     credentials: new AWS.Credentials({