update
This commit is contained in:
18
package/node_modules/walk-up-path/dist/cjs/index.js
generated
vendored
Normal file
18
package/node_modules/walk-up-path/dist/cjs/index.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.walkUp = void 0;
|
||||
const path_1 = require("path");
|
||||
const walkUp = function* (path) {
|
||||
for (path = (0, path_1.resolve)(path); path;) {
|
||||
yield path;
|
||||
const pp = (0, path_1.dirname)(path);
|
||||
if (pp === path) {
|
||||
break;
|
||||
}
|
||||
else {
|
||||
path = pp;
|
||||
}
|
||||
}
|
||||
};
|
||||
exports.walkUp = walkUp;
|
||||
//# sourceMappingURL=index.js.map
|
3
package/node_modules/walk-up-path/dist/cjs/package.json
generated
vendored
Normal file
3
package/node_modules/walk-up-path/dist/cjs/package.json
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
14
package/node_modules/walk-up-path/dist/mjs/index.js
generated
vendored
Normal file
14
package/node_modules/walk-up-path/dist/mjs/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { dirname, resolve } from 'path';
|
||||
export const walkUp = function* (path) {
|
||||
for (path = resolve(path); path;) {
|
||||
yield path;
|
||||
const pp = dirname(path);
|
||||
if (pp === path) {
|
||||
break;
|
||||
}
|
||||
else {
|
||||
path = pp;
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=index.js.map
|
3
package/node_modules/walk-up-path/dist/mjs/package.json
generated
vendored
Normal file
3
package/node_modules/walk-up-path/dist/mjs/package.json
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "module"
|
||||
}
|
Reference in New Issue
Block a user