Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
fix: default to all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 27, 2018
1 parent 19d99ab commit fa495f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 1 addition & 7 deletions package.json
Expand Up @@ -71,13 +71,7 @@
"debounce": 60
},
"node": {
"version": "10.0.0",
"targets": [
"win32-x64",
"win32-x86",
"linux-x64",
"darwin-x64"
]
"version": "10.0.0"
},
"s3": {
"bucket": "oclif-staging",
Expand Down
10 changes: 9 additions & 1 deletion src/tarballs/config.ts
Expand Up @@ -69,9 +69,17 @@ export async function buildConfig(root: string): Promise<IConfig> {
if (target && target.platform) return qq.join(base, [target.platform, target.arch].join('-'), config.s3Key('baseDir', target))
return qq.join(base, config.s3Key('baseDir', target))
},
targets: (updateConfig.node.targets || []).map(t => {
targets: (updateConfig.node.targets || TARGETS).map(t => {
const [platform, arch] = t.split('-') as [Config.PlatformTypes, Config.ArchTypes]
return {platform, arch}
}),
}
}

const TARGETS = [
'linux-x64',
'linux-arm',
'win32-x64',
'win32-x86',
'darwin-x64',
]

0 comments on commit fa495f8

Please sign in to comment.