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

Commit

Permalink
fix: remove prune
Browse files Browse the repository at this point in the history
Fixes #44
  • Loading branch information
jdx committed Jun 18, 2018
1 parent a831bdc commit fd25750
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/tarballs/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,6 @@ export async function build(c: IConfig, options: {
await qq.x('npm install --production')
}
}
const prune = async () => {
// removes unnecessary files to make the tarball smaller
qq.cd(c.workspace())
const toRemove = await qq.globby([
'node_modules/**/README*',
'**/CHANGELOG*',
'**/*.d.ts',
], {nocase: true})
await qq.rm(...toRemove)
await qq.rmIfEmpty('.')
}
const buildTarget = async (target: {platform: PlatformTypes, arch: ArchTypes}) => {
const workspace = c.workspace(target)
const key = config.s3Key('versioned', '.tar.gz', target)
Expand Down Expand Up @@ -134,7 +123,6 @@ export async function build(c: IConfig, options: {
await extractCLI(await packCLI())
await updatePJSON()
await addDependencies()
await prune()
await writeBinScripts({config, baseWorkspace: c.workspace(), nodeVersion: c.nodeVersion})
await buildBaseTarball()
for (let target of c.targets) {
Expand Down

0 comments on commit fd25750

Please sign in to comment.