mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-06-08 18:04:29 +00:00
v7
This commit is contained in:
parent
033d472283
commit
49df04613e
6774 changed files with 1602535 additions and 1 deletions
10
node_modules/pkg-dir/index.js
generated
vendored
Normal file
10
node_modules/pkg-dir/index.js
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
'use strict';
|
||||
const path = require('path');
|
||||
const findUp = require('find-up');
|
||||
|
||||
module.exports = cwd => findUp('package.json', {cwd}).then(fp => fp ? path.dirname(fp) : null);
|
||||
|
||||
module.exports.sync = cwd => {
|
||||
const fp = findUp.sync('package.json', {cwd});
|
||||
return fp ? path.dirname(fp) : null;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue