From 9451c87e3ef3719669d7e10f12d52c54d34c005b Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Sat, 7 Apr 2018 08:14:08 -0700 Subject: [PATCH] fix: new update options --- src/pjson.ts | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/src/pjson.ts b/src/pjson.ts index 01536ab0..74f89ce7 100644 --- a/src/pjson.ts +++ b/src/pjson.ts @@ -10,6 +10,7 @@ export namespace PJSON { export interface Plugin extends PJSON { name: string version: string + channel?: string oclif: PJSON['oclif'] & { schema?: number title?: string @@ -18,11 +19,24 @@ export namespace PJSON { commands?: string plugins?: string[] devPlugins?: string[] - autoupdate?: 'github' | 's3' - targets?: string[] - s3Host?: string - s3Bucket?: string - s3Prefix?: string + update?: { + autoupdate?: boolean | { + rollout?: number + debounce?: number + } + node?: { + version?: string + targets?: string[] + } + s3?: { + bucket?: string + prefix?: string + host?: string + xz?: boolean + gz?: boolean + } + // github?: {} + } topics?: { [k: string]: { description?: string