mirror of
https://github.com/actions/setup-node.git
synced 2025-07-25 16:08:25 +02:00
Use husky
This commit is contained in:
parent
d7b6952411
commit
c3f0a8be66
6685 changed files with 919804 additions and 0 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