diff --git a/bin/now-deploy b/bin/now-deploy index 19f62a3..773dbc4 100755 --- a/bin/now-deploy +++ b/bin/now-deploy @@ -231,7 +231,7 @@ async function sync (token) { forceSync, forwardNpm: alwaysForwardNpm || forwardNpm, quiet, - public: wantsPublic + wantsPublic }); } catch (err) { if (debug) console.log(`> [debug] error: ${err.stack}`); diff --git a/lib/index.js b/lib/index.js index cc2931b..9eba340 100644 --- a/lib/index.js +++ b/lib/index.js @@ -35,6 +35,7 @@ export default class Now extends EventEmitter { } async create (path, { + wantsPublic, quiet = false, forceNew = false, forceSync = false, @@ -176,10 +177,11 @@ export default class Now extends EventEmitter { const res = await this._fetch('/now/create', { method: 'POST', body: { + public: wantsPublic, forceNew, forceSync, name: name, - description: description, + description, deploymentType, registryAuthToken: authToken, // Flatten the array to contain files to sync where each nested input