Преглед на файлове

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({