From 03f61ecb35a5d37c88ef4cf82fff465568425c51 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Thu, 14 Jun 2018 20:20:40 -0700 Subject: [PATCH] fix: s3 template defaulting --- src/config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.ts b/src/config.ts index 6c1df900..f48c0728 100644 --- a/src/config.ts +++ b/src/config.ts @@ -203,21 +203,21 @@ export class Config implements IConfig { s3.bucket = this.scopedEnvVar('S3_BUCKET') || s3.bucket if (s3.bucket && !s3.host) s3.host = `https://${s3.bucket}.s3.amazonaws.com` s3.templates = { + ...s3.templates, target: { baseDir: '<%- bin %>', unversioned: "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-<%- platform %>-<%- arch %><%- ext %>", versioned: "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %>-<%- platform %>-<%- arch %><%- ext %>", manifest: "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- platform %>-<%- arch %>", - ...(s3.templates && s3.templates.target || {}), + ...s3.templates && s3.templates.target, }, vanilla: { unversioned: "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %><%- ext %>", versioned: "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %><%- ext %>", baseDir: '<%- bin %>', manifest: "<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %>version", - ...(s3.templates && s3.templates.vanilla || {}), + ...s3.templates && s3.templates.vanilla, }, - ...s3.templates, } await this.loadUserPlugins()