@stryke/fs 0.31.4 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/copy-file.cjs +3 -3
- package/dist/copy-file.mjs +1 -1
- package/dist/get-parent-path.cjs +27 -0
- package/dist/get-parent-path.d.ts +28 -0
- package/dist/get-parent-path.mjs +1 -0
- package/dist/get-workspace-root.cjs +14 -14
- package/dist/get-workspace-root.mjs +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/package-fns.cjs +1 -1
- package/dist/package-fns.mjs +1 -1
- package/package.json +17 -3
package/dist/copy-file.cjs
CHANGED
|
@@ -8,9 +8,9 @@ exports.copyFileSync = copyFileSync;
|
|
|
8
8
|
exports.copyFiles = copyFiles;
|
|
9
9
|
exports.copyFilesSync = copyFilesSync;
|
|
10
10
|
var _filePathFns = require("@stryke/path/file-path-fns");
|
|
11
|
-
var _getParentPath = require("@stryke/path/get-parent-path");
|
|
12
11
|
var _join = require("@stryke/path/join");
|
|
13
12
|
var _replace = require("@stryke/path/replace");
|
|
13
|
+
var _resolveParentPath = require("@stryke/path/resolve-parent-path");
|
|
14
14
|
var _typeChecks = require("@stryke/type-checks");
|
|
15
15
|
var _mlly = require("mlly");
|
|
16
16
|
var _nodeFs = require("node:fs");
|
|
@@ -22,12 +22,12 @@ var _listFiles = require("./list-files.cjs");
|
|
|
22
22
|
async function copyFile(r, o) {
|
|
23
23
|
const i = r instanceof URL ? (0, _mlly.fileURLToPath)(r) : r,
|
|
24
24
|
t = o instanceof URL ? (0, _mlly.fileURLToPath)(o) : o;
|
|
25
|
-
if ((0, _filePathFns.hasFileExtension)(t) ? (0, _exists.existsSync)((0, _filePathFns.findFilePath)(t)) || (await (0, _helpers.createDirectory)((0, _filePathFns.findFilePath)(t))) : (0, _exists.existsSync)((0,
|
|
25
|
+
if ((0, _filePathFns.hasFileExtension)(t) ? (0, _exists.existsSync)((0, _filePathFns.findFilePath)(t)) || (await (0, _helpers.createDirectory)((0, _filePathFns.findFilePath)(t))) : (0, _exists.existsSync)((0, _resolveParentPath.resolveParentPath)(t)) || (await (0, _helpers.createDirectory)((0, _resolveParentPath.resolveParentPath)(t))), (0, _typeChecks.isString)(i) && (0, _exists.existsSync)(i)) return (0, _promises.copyFile)(i, t);
|
|
26
26
|
}
|
|
27
27
|
function copyFileSync(r, o) {
|
|
28
28
|
const i = r instanceof URL ? (0, _mlly.fileURLToPath)(r) : r,
|
|
29
29
|
t = o instanceof URL ? (0, _mlly.fileURLToPath)(o) : o;
|
|
30
|
-
if ((0, _filePathFns.hasFileExtension)(t) ? (0, _exists.existsSync)((0, _filePathFns.findFilePath)(t)) || (0, _helpers.createDirectorySync)((0, _filePathFns.findFilePath)(t)) : (0, _exists.existsSync)((0,
|
|
30
|
+
if ((0, _filePathFns.hasFileExtension)(t) ? (0, _exists.existsSync)((0, _filePathFns.findFilePath)(t)) || (0, _helpers.createDirectorySync)((0, _filePathFns.findFilePath)(t)) : (0, _exists.existsSync)((0, _resolveParentPath.resolveParentPath)(t)) || (0, _helpers.createDirectorySync)((0, _resolveParentPath.resolveParentPath)(t)), (0, _typeChecks.isString)(i) && (0, _exists.existsSync)(i)) return (0, _nodeFs.copyFileSync)(i, t);
|
|
31
31
|
}
|
|
32
32
|
async function copyFiles(r, o) {
|
|
33
33
|
const i = r instanceof URL ? (0, _mlly.fileURLToPath)(r) : r,
|
package/dist/copy-file.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{findFilePath as p,hasFileExtension as l}from"@stryke/path/file-path-fns";import{
|
|
1
|
+
import{findFilePath as p,hasFileExtension as l}from"@stryke/path/file-path-fns";import{joinPaths as a}from"@stryke/path/join";import{replacePath as L}from"@stryke/path/replace";import{resolveParentPath as m}from"@stryke/path/resolve-parent-path";import{isString as n}from"@stryke/type-checks";import{fileURLToPath as e}from"mlly";import{copyFileSync as g}from"node:fs";import{copyFile as S}from"node:fs/promises";import{existsSync as c}from"./exists";import{createDirectory as R,createDirectorySync as U}from"./helpers";import{isDirectory as y,isFile as F}from"./is-file";import{listFiles as x,listFilesSync as w}from"./list-files";export async function copyFile(r,o){const i=r instanceof URL?e(r):r,t=o instanceof URL?e(o):o;if(l(t)?c(p(t))||await R(p(t)):c(m(t))||await R(m(t)),n(i)&&c(i))return S(i,t)}export function copyFileSync(r,o){const i=r instanceof URL?e(r):r,t=o instanceof URL?e(o):o;if(l(t)?c(p(t))||U(p(t)):c(m(t))||U(m(t)),n(i)&&c(i))return g(i,t)}export async function copyFiles(r,o){const i=r instanceof URL?e(r):r,t=o instanceof URL?e(o):o;return n(i)&&F(i)?copyFile(i,t):Promise.all((await x(i)).map(async s=>{const f=a(t,L(s,n(i)?i:i.input));y(s)?await copyFiles(s,f):await copyFile(s,f)}))}export function copyFilesSync(r,o){const i=r instanceof URL?e(r):r,t=o instanceof URL?e(o):o;return n(i)&&F(i)?copyFileSync(i,t):w(i).map(s=>{const f=a(t,L(s,n(i)?i:i.input));y(s)?copyFilesSync(s,f):copyFileSync(s,f)})}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getParentPath = void 0;
|
|
7
|
+
var _toArray = require("@stryke/convert/to-array");
|
|
8
|
+
var _cwd = require("@stryke/path/cwd");
|
|
9
|
+
var _joinPaths = require("@stryke/path/join-paths");
|
|
10
|
+
var _resolveParentPath = require("@stryke/path/resolve-parent-path");
|
|
11
|
+
var _nodeFs = require("node:fs");
|
|
12
|
+
const getParentPath = (l, i = (0, _cwd.cwd)(), r = {}) => {
|
|
13
|
+
const f = r?.ignoreCase ?? !0,
|
|
14
|
+
m = r?.skipCwd ?? !1,
|
|
15
|
+
u = r?.includeNameInResults ?? !1;
|
|
16
|
+
let e = i;
|
|
17
|
+
m && (e = (0, _resolveParentPath.resolveParentPath)(i));
|
|
18
|
+
let n = (0, _toArray.toArray)(l);
|
|
19
|
+
for (f && (n = n.map(t => t.toLowerCase()));;) {
|
|
20
|
+
const t = n.find(c => (0, _nodeFs.existsSync)((0, _joinPaths.joinPaths)(e, c)));
|
|
21
|
+
if (t) return u ? (0, _joinPaths.joinPaths)(e, t) : e;
|
|
22
|
+
const a = (0, _resolveParentPath.resolveParentPath)(e);
|
|
23
|
+
if (a === e) return;
|
|
24
|
+
e = a;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.getParentPath = getParentPath;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface GetParentPathOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Whether to ignore the case of the file names when checking for existence.
|
|
4
|
+
*
|
|
5
|
+
* @defaultValue true
|
|
6
|
+
*/
|
|
7
|
+
ignoreCase: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to skip the current working directory when checking for the file.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue false
|
|
12
|
+
*/
|
|
13
|
+
skipCwd: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Should we include the found file/directory name in the results.
|
|
16
|
+
*
|
|
17
|
+
* @defaultValue false
|
|
18
|
+
*/
|
|
19
|
+
includeNameInResults?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get the first parent path that has a file or directory with the provided name.
|
|
23
|
+
*
|
|
24
|
+
* @param name - The name (or names) of the file to look for in the parent paths.
|
|
25
|
+
* @param cwd - The current working directory.
|
|
26
|
+
* @returns The first parent path that exists.
|
|
27
|
+
*/
|
|
28
|
+
export declare const getParentPath: (name: string | string[], cwd?: any, options?: Partial<GetParentPathOptions>) => string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{toArray as d}from"@stryke/convert/to-array";import{cwd as p}from"@stryke/path/cwd";import{joinPaths as o}from"@stryke/path/join-paths";import{resolveParentPath as s}from"@stryke/path/resolve-parent-path";import{existsSync as P}from"node:fs";export const getParentPath=(l,i=p(),r={})=>{const f=r?.ignoreCase??!0,m=r?.skipCwd??!1,u=r?.includeNameInResults??!1;let e=i;m&&(e=s(i));let n=d(l);for(f&&(n=n.map(t=>t.toLowerCase()));;){const t=n.find(c=>P(o(e,c)));if(t)return u?o(e,t):e;const a=s(e);if(a===e)return;e=a}};
|
|
@@ -13,32 +13,32 @@ exports.relativeToWorkspaceRoot = relativeToWorkspaceRoot;
|
|
|
13
13
|
var _configTools = require("@storm-software/config-tools");
|
|
14
14
|
var _cwd = require("@stryke/path/cwd");
|
|
15
15
|
var _filePathFns = require("@stryke/path/file-path-fns");
|
|
16
|
-
var _getParentPath = require("@stryke/path/get-parent-path");
|
|
17
16
|
var _isRootDir = require("@stryke/path/is-root-dir");
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
var _getParentPath = require("./get-parent-path.cjs");
|
|
18
|
+
const WORKSPACE_ROOT_CONTENT = exports.WORKSPACE_ROOT_CONTENT = [".all-contributorsrc", ".commitlintrc", ".github", ".git", ".husky", ".huskyrc", ".lintstagedrc", ".log4brains.yml", ".npmrc", ".nx", ".storm-workspace.js", ".storm-workspace.json", ".storm-workspace.ts", ".storm-workspace.yaml", ".storm-workspace.yml", ".vscode", ".whitesource", "bun.lock", "bun.lockb", "lefthook.yaml", "lefthook.yml", "lerna.json", "npm-lock.json", "npm-lock.yaml", "npm-lock.yml", "npm-workspace.json", "npm-workspace.yaml", "npm-workspace.yml", "nx.json", "package-lock.json", "patches", "pnpm-lock.json", "pnpm-lock.yaml", "pnpm-lock.yml", "pnpm-workspace.json", "pnpm-workspace.yaml", "pnpm-workspace.yml", "socket.yaml", "storm-workspace.js", "storm-workspace.json", "storm-workspace.ts", "storm-workspace.yaml", "storm-workspace.yml", "syncpack.config.js", "syncpack.json", "turbo.json", "yarn-lock.json", "yarn-lock.yaml", "yarn-lock.yml", "yarn-workspace.json", "yarn-workspace.yaml", "yarn-workspace.yml", "yarn.lock"],
|
|
19
|
+
PROJECT_ROOT_CONTENT = exports.PROJECT_ROOT_CONTENT = [".powerlines", ".storm", "package.json", "powerlines.json", "powerlines.yaml", "powerlines.yml", "powerlines.toml", "powerlines.config.js", "powerlines.config.ts", "project.json"];
|
|
20
20
|
function getWorkspaceRoot(o = (0, _cwd.cwd)()) {
|
|
21
21
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) return process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH;
|
|
22
|
-
const
|
|
23
|
-
if (t) return t;
|
|
24
|
-
let r = (0, _getParentPath.getParentPath)(WORKSPACE_ROOT_CONTENT, o);
|
|
22
|
+
const r = (0, _configTools.findWorkspaceRootSafe)(o);
|
|
25
23
|
if (r) return r;
|
|
26
|
-
|
|
24
|
+
let s = (0, _getParentPath.getParentPath)(WORKSPACE_ROOT_CONTENT, o);
|
|
25
|
+
if (s) return s;
|
|
26
|
+
for (s = o; s && !(0, _isRootDir.isSystemRoot)(s);) if (s = (0, _getParentPath.getParentPath)("storm-workspace.json", s, {
|
|
27
27
|
skipCwd: !0
|
|
28
|
-
}),
|
|
28
|
+
}), s) return s;
|
|
29
29
|
return o;
|
|
30
30
|
}
|
|
31
31
|
function isWorkspaceRoot(o = (0, _cwd.cwd)()) {
|
|
32
|
-
const
|
|
33
|
-
return
|
|
32
|
+
const r = getWorkspaceRoot(o);
|
|
33
|
+
return r ? r === o : !1;
|
|
34
34
|
}
|
|
35
35
|
function getProjectRoot(o = (0, _cwd.cwd)()) {
|
|
36
|
-
const
|
|
37
|
-
return
|
|
36
|
+
const r = (0, _getParentPath.getParentPath)(PROJECT_ROOT_CONTENT, o);
|
|
37
|
+
return r || o;
|
|
38
38
|
}
|
|
39
39
|
function isProjectRoot(o = (0, _cwd.cwd)()) {
|
|
40
|
-
const
|
|
41
|
-
return
|
|
40
|
+
const r = getProjectRoot(o);
|
|
41
|
+
return r ? r === o : !1;
|
|
42
42
|
}
|
|
43
43
|
function relativeToWorkspaceRoot(o) {
|
|
44
44
|
return (0, _filePathFns.relativePath)(o, getWorkspaceRoot());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{findWorkspaceRootSafe as c}from"@storm-software/config-tools";import{cwd as e}from"@stryke/path/cwd";import{relativePath as
|
|
1
|
+
import{findWorkspaceRootSafe as c}from"@storm-software/config-tools";import{cwd as e}from"@stryke/path/cwd";import{relativePath as n}from"@stryke/path/file-path-fns";import{isSystemRoot as p}from"@stryke/path/is-root-dir";import{getParentPath as t}from"./get-parent-path";export const WORKSPACE_ROOT_CONTENT=[".all-contributorsrc",".commitlintrc",".github",".git",".husky",".huskyrc",".lintstagedrc",".log4brains.yml",".npmrc",".nx",".storm-workspace.js",".storm-workspace.json",".storm-workspace.ts",".storm-workspace.yaml",".storm-workspace.yml",".vscode",".whitesource","bun.lock","bun.lockb","lefthook.yaml","lefthook.yml","lerna.json","npm-lock.json","npm-lock.yaml","npm-lock.yml","npm-workspace.json","npm-workspace.yaml","npm-workspace.yml","nx.json","package-lock.json","patches","pnpm-lock.json","pnpm-lock.yaml","pnpm-lock.yml","pnpm-workspace.json","pnpm-workspace.yaml","pnpm-workspace.yml","socket.yaml","storm-workspace.js","storm-workspace.json","storm-workspace.ts","storm-workspace.yaml","storm-workspace.yml","syncpack.config.js","syncpack.json","turbo.json","yarn-lock.json","yarn-lock.yaml","yarn-lock.yml","yarn-workspace.json","yarn-workspace.yaml","yarn-workspace.yml","yarn.lock"],PROJECT_ROOT_CONTENT=[".powerlines",".storm","package.json","powerlines.json","powerlines.yaml","powerlines.yml","powerlines.toml","powerlines.config.js","powerlines.config.ts","project.json"];export function getWorkspaceRoot(o=e()){if(process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH)return process.env.STORM_WORKSPACE_ROOT||process.env.NX_WORKSPACE_ROOT_PATH;const r=c(o);if(r)return r;let s=t(WORKSPACE_ROOT_CONTENT,o);if(s)return s;for(s=o;s&&!p(s);)if(s=t("storm-workspace.json",s,{skipCwd:!0}),s)return s;return o}export function isWorkspaceRoot(o=e()){const r=getWorkspaceRoot(o);return r?r===o:!1}export function getProjectRoot(o=e()){const r=t(PROJECT_ROOT_CONTENT,o);return r||o}export function isProjectRoot(o=e()){const r=getProjectRoot(o);return r?r===o:!1}export function relativeToWorkspaceRoot(o){return n(o,getWorkspaceRoot())}export function relativeToProjectRoot(o){return n(o,getProjectRoot())}
|
package/dist/index.cjs
CHANGED
|
@@ -80,6 +80,17 @@ Object.keys(_exists).forEach(function (key) {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
+
var _getParentPath = require("./get-parent-path.cjs");
|
|
84
|
+
Object.keys(_getParentPath).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _getParentPath[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () {
|
|
90
|
+
return _getParentPath[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
83
94
|
var _getWorkspaceRoot = require("./get-workspace-root.cjs");
|
|
84
95
|
Object.keys(_getWorkspaceRoot).forEach(function (key) {
|
|
85
96
|
if (key === "default" || key === "__esModule") return;
|
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./buffer";export*from"./chmod-x";export*from"./command-exists";export*from"./compress";export*from"./constants";export*from"./copy-file";export*from"./exists";export*from"./get-workspace-root";export*from"./helpers";export*from"./install";export*from"./is-file";export*from"./json";export*from"./list-files";export*from"./package-fns";export*from"./read-file";export*from"./registry";export*from"./remove-file";export*from"./resolve";export*from"./semver-fns";export*from"./toml";export*from"./tsconfig";export*from"./write-file";export*from"./yaml";
|
|
1
|
+
export*from"./buffer";export*from"./chmod-x";export*from"./command-exists";export*from"./compress";export*from"./constants";export*from"./copy-file";export*from"./exists";export*from"./get-parent-path";export*from"./get-workspace-root";export*from"./helpers";export*from"./install";export*from"./is-file";export*from"./json";export*from"./list-files";export*from"./package-fns";export*from"./read-file";export*from"./registry";export*from"./remove-file";export*from"./resolve";export*from"./semver-fns";export*from"./toml";export*from"./tsconfig";export*from"./write-file";export*from"./yaml";
|
package/dist/package-fns.cjs
CHANGED
|
@@ -11,13 +11,13 @@ exports.isPackageExists = isPackageExists;
|
|
|
11
11
|
exports.isPackageListed = isPackageListed;
|
|
12
12
|
exports.loadPackageJson = loadPackageJson;
|
|
13
13
|
var _filePathFns = require("@stryke/path/file-path-fns");
|
|
14
|
-
var _getParentPath = require("@stryke/path/get-parent-path");
|
|
15
14
|
var _joinPaths = require("@stryke/path/join-paths");
|
|
16
15
|
var _package = require("@stryke/string-format/package");
|
|
17
16
|
var _isString = require("@stryke/type-checks/is-string");
|
|
18
17
|
var _nodeFs = require("node:fs");
|
|
19
18
|
var _semver = require("semver");
|
|
20
19
|
var _exists = require("./exists.cjs");
|
|
20
|
+
var _getParentPath = require("./get-parent-path.cjs");
|
|
21
21
|
var _getWorkspaceRoot = require("./get-workspace-root.cjs");
|
|
22
22
|
var _json = require("./json.cjs");
|
|
23
23
|
var _resolve = require("./resolve.cjs");
|
package/dist/package-fns.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{findFileName as m,findFilePath as r}from"@stryke/path/file-path-fns";import{
|
|
1
|
+
import{findFileName as m,findFilePath as r}from"@stryke/path/file-path-fns";import{joinPaths as u}from"@stryke/path/join-paths";import{getPackageName as c}from"@stryke/string-format/package";import{isString as p}from"@stryke/type-checks/is-string";import{existsSync as P}from"node:fs";import{subset as l}from"semver";import{exists as y}from"./exists";import{getParentPath as g}from"./get-parent-path";import{getWorkspaceRoot as d}from"./get-workspace-root";import{readJsonFile as k}from"./json";import{resolvePackage as f}from"./resolve";export function getPackageManager(t=d()){const e=g(["package-lock.json","yarn.lock","pnpm-lock.yaml","bun.lock"],t);if(!e)return"pnpm";switch(m(e)){case"yarn.lock":return"yarn";case"pnpm-lock.yaml":return"pnpm";case"bun.lock":return"bun";default:return"npm"}}async function v(t){let e;for(;;){if(!t)return;const n=r(t);if(n===t)return;if(t=n,e=u(t,"package.json"),await y(e))break}return e}async function x(t,e={}){const n=await f(t,e);if(n)return v(n)}export async function getPackageInfo(t,e={}){const n=await x(t,e);if(!n)return;const s=await k(n);return{name:t,version:s.version,rootPath:r(n),packageJsonPath:n,packageJson:s}}export async function loadPackageJson(t=d()){const e=g("package.json",t,{skipCwd:!1});return!e||!P(e)?null:k(e)}export async function isPackageListed(t,e){const n=c(t),s=p(e)?e:e?.cwd,a=await loadPackageJson(s);return a?!!(a.dependencies&&n in a.dependencies&&a.dependencies[n]||a.devDependencies&&n in a.devDependencies&&a.devDependencies[n]):!1}export async function getPackageListing(t,e){const n=c(t),s=p(e)?e:e?.cwd,a=await loadPackageJson(s);if(!a)return;const i=a.dependencies&&n in a.dependencies?a.dependencies[n]:a.devDependencies&&n in a.devDependencies?a.devDependencies[n]:void 0,o=(a.dependencies&&n in a.dependencies?"dependencies":a.devDependencies&&n in a.devDependencies?"devDependencies":void 0)||void 0;return i&&o?{version:i,type:o}:void 0}export async function doesPackageMatch(t,e,n){const s=await getPackageListing(t,{cwd:n});return s?s.version.startsWith("catalog:")||s.version.startsWith("workspace:")||l(s.version,e):!1}export function isPackageExists(t,e={}){return!!f(t,e)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/fs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various file system utilities that expand the functionality of NodeJs's built-in `fs` module.",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@ltd/j-toml": "^1.38.0",
|
|
17
17
|
"@storm-software/config-tools": "latest",
|
|
18
18
|
"@stryke/convert": "^0.6.0",
|
|
19
|
-
"@stryke/path": "^0.
|
|
19
|
+
"@stryke/path": "^0.16.0",
|
|
20
20
|
"@stryke/string-format": "^0.12.0",
|
|
21
21
|
"chalk": "^5.4.1",
|
|
22
22
|
"defu": "^6.1.4",
|
|
@@ -284,6 +284,20 @@
|
|
|
284
284
|
"default": "./dist/get-workspace-root.mjs"
|
|
285
285
|
}
|
|
286
286
|
},
|
|
287
|
+
"./get-parent-path": {
|
|
288
|
+
"import": {
|
|
289
|
+
"types": "./dist/get-parent-path.d.ts",
|
|
290
|
+
"default": "./dist/get-parent-path.mjs"
|
|
291
|
+
},
|
|
292
|
+
"require": {
|
|
293
|
+
"types": "./dist/get-parent-path.d.ts",
|
|
294
|
+
"default": "./dist/get-parent-path.cjs"
|
|
295
|
+
},
|
|
296
|
+
"default": {
|
|
297
|
+
"types": "./dist/get-parent-path.d.ts",
|
|
298
|
+
"default": "./dist/get-parent-path.mjs"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
287
301
|
"./exists": {
|
|
288
302
|
"import": {
|
|
289
303
|
"types": "./dist/exists.d.ts",
|
|
@@ -395,5 +409,5 @@
|
|
|
395
409
|
"main": "./dist/index.cjs",
|
|
396
410
|
"module": "./dist/index.mjs",
|
|
397
411
|
"types": "./dist/index.d.ts",
|
|
398
|
-
"gitHead": "
|
|
412
|
+
"gitHead": "c60091277e3643e8619c90a06a9e9aed326359c1"
|
|
399
413
|
}
|