Skip to content

Commit

Permalink
pack: use a specific mtime when packing (npm#20027)
Browse files Browse the repository at this point in the history
> Thank god I found you.  Listen, can you meet me at Twin Pines Mall
> tonight at 1:15?  I've made a major breakthrough, I'll need your
> assistance.

Fixes: npm#19933
Fixes: npm#19968
PR-URL: npm#20027
Credit: @isaacs
Reviewed-By: @zkat
  • Loading branch information
isaacs authored and zkat committed Mar 12, 2018
1 parent 8150dd5 commit 58d2aa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ function packDirectory (mani, dir, target) {
cwd: dir,
prefix: 'package/',
portable: true,
noMtime: true,
// Provide a specific date in the 1980s for the benefit of zip,
// which is confounded by files dated at the Unix epoch 0.
mtime: new Date('1985-10-26T08:15:00.000Z'),
gzip: true
}

Expand Down

0 comments on commit 58d2aa5

Please sign in to comment.