Skip to content

Commit

Permalink
Vendor lockfile and signal-exit
Browse files Browse the repository at this point in the history
Given that we need to patch lockfile and such project is currently
archived.

See: #186
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Sep 12, 2022
1 parent df4edce commit 7130377
Show file tree
Hide file tree
Showing 81 changed files with 20,069 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor/** linguist-generated=true
3 changes: 3 additions & 0 deletions DEPENDENCIES
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vendorpull https://github.com/jviotti/vendorpull 8445d0d0b15d308906ee395cc3313cba461865c4
lockfile https://github.com/npm/lockfile 94ef64505c07ec7cfb0b6860e61f1c2d820c4a06
signal-exit https://github.com/tapjs/signal-exit d4adbebea89cee95da197e9e94f32b3d685b4c80
2 changes: 1 addition & 1 deletion lib/lock.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

'use strict';

const lockFile = require('lockfile');
const lockFile = require('../vendor/lockfile');

/**
* @summary Lock options
Expand Down
17 changes: 0 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
},
"dependencies": {
"async": "^2.0.0",
"lockfile": "^1.0.4",
"lodash": "^4.0.1",
"mkdirp": "^0.5.1",
"rimraf": "^2.5.1",
Expand Down
26 changes: 26 additions & 0 deletions patches/lockfile/0001-Use-vendored-signal-exit.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 27905243d1f571c766f0a2c59d545d52b53e5467 Mon Sep 17 00:00:00 2001
From: Juan Cruz Viotti <[email protected]>
Date: Mon, 12 Sep 2022 09:27:48 -0400
Subject: [PATCH] Use vendored signal-exit

Signed-off-by: Juan Cruz Viotti <[email protected]>
---
lockfile.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lockfile.js b/lockfile.js
index f037bec..81e9ee8 100644
--- a/lockfile.js
+++ b/lockfile.js
@@ -30,7 +30,7 @@ function hasOwnProperty (obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop)
}

-var onExit = require('signal-exit')
+var onExit = require('../signal-exit')
onExit(function () {
debug('exit listener')
// cleanup
--
2.37.3

11 changes: 11 additions & 0 deletions vendor/lockfile/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

109 changes: 109 additions & 0 deletions vendor/lockfile/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions vendor/lockfile/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 86 additions & 0 deletions vendor/lockfile/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions vendor/lockfile/gen-changelog.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7130377

Please sign in to comment.