Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(Builder): fix exclusion of packed app building
Browse files Browse the repository at this point in the history
  • Loading branch information
evshiron committed May 9, 2017
1 parent 844e55b commit dba6440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/Builder.ts
Expand Up @@ -387,7 +387,7 @@ export class Builder {

debug('in copyFiles', 'ignore', ignore);

const files = await globby(config.files, {
const files: string[] = await globby(config.files, {
cwd: this.dir,
// TODO: https://github.com/isaacs/node-glob#options, warn for cyclic links.
follow: true,
Expand All @@ -409,7 +409,7 @@ export class Builder {
postfix: '.zip',
});

await compress(this.dir, files, 'zip', nwFile);
await compress(this.dir, files.filter((file) => !file.endsWith('/')), 'zip', nwFile);

const { path: tempDir } = await tmpDir();
await this.writeStrippedManifest(resolve(tempDir, 'package.json'), pkg, config);
Expand Down

0 comments on commit dba6440

Please sign in to comment.