mirror of
https://github.com/actions/setup-python.git
synced 2025-06-28 21:53:47 +00:00
Clean up node_modules
This commit is contained in:
parent
b581dd4017
commit
145e800d1f
7184 changed files with 11271 additions and 1877650 deletions
26
node_modules/read-pkg-up/index.js
generated
vendored
26
node_modules/read-pkg-up/index.js
generated
vendored
|
@ -1,26 +0,0 @@
|
|||
'use strict';
|
||||
const findUp = require('find-up');
|
||||
const readPkg = require('read-pkg');
|
||||
|
||||
module.exports = options => {
|
||||
return findUp('package.json', options).then(fp => {
|
||||
if (!fp) {
|
||||
return {};
|
||||
}
|
||||
|
||||
return readPkg(fp, options).then(pkg => ({pkg, path: fp}));
|
||||
});
|
||||
};
|
||||
|
||||
module.exports.sync = options => {
|
||||
const fp = findUp.sync('package.json', options);
|
||||
|
||||
if (!fp) {
|
||||
return {};
|
||||
}
|
||||
|
||||
return {
|
||||
pkg: readPkg.sync(fp, options),
|
||||
path: fp
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue