@stryke/fs 0.26.0 → 0.27.1
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/compress.cjs +6 -5
- package/dist/compress.mjs +1 -1
- package/dist/get-workspace-root.cjs +2 -1
- 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/install.cjs +2 -1
- package/dist/install.mjs +1 -1
- package/dist/is-file.cjs +29 -0
- package/dist/is-file.d.ts +32 -0
- package/dist/is-file.mjs +1 -0
- package/dist/resolve.cjs +2 -1
- package/dist/resolve.mjs +1 -1
- package/dist/tsconfig.cjs +8 -7
- package/dist/tsconfig.mjs +1 -1
- package/package.json +18 -4
package/dist/compress.cjs
CHANGED
|
@@ -8,18 +8,19 @@ var _uint8ArrayToString = require("@stryke/convert/uint8-array-to-string");
|
|
|
8
8
|
var _path = require("@stryke/path");
|
|
9
9
|
var _joinPaths = require("@stryke/path/join-paths");
|
|
10
10
|
var _nanotar = require("nanotar");
|
|
11
|
+
var _isFile = require("./is-file.cjs");
|
|
11
12
|
var _listFiles = require("./list-files.cjs");
|
|
12
13
|
var _readFile = require("./read-file.cjs");
|
|
13
14
|
var _writeFile = require("./write-file.cjs");
|
|
14
15
|
async function compressDirectory(t, i) {
|
|
15
|
-
const e = await (0, _listFiles.listFiles)((0,
|
|
16
|
-
s = await (0, _nanotar.createTarGzip)(await Promise.all(e.map(async
|
|
17
|
-
name:
|
|
18
|
-
data: await (0, _readFile.readFileIfExisting)(
|
|
16
|
+
const e = await (0, _listFiles.listFiles)((0, _isFile.isDirectory)(t) ? (0, _joinPaths.joinPaths)(t, "**/*") : t, i),
|
|
17
|
+
s = await (0, _nanotar.createTarGzip)(await Promise.all(e.map(async a => ({
|
|
18
|
+
name: a,
|
|
19
|
+
data: await (0, _readFile.readFileIfExisting)(a)
|
|
19
20
|
}))), {
|
|
20
21
|
attrs: {
|
|
21
22
|
group: "storm-software"
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
|
-
return (0, _writeFile.writeFile)(i?.destination ? (0,
|
|
25
|
+
return (0, _writeFile.writeFile)(i?.destination ? (0, _isFile.isDirectory)(i.destination) ? (0, _joinPaths.joinPaths)(i.destination, `${new Date().getTime()}.tar.gz`) : i.destination : (0, _isFile.isDirectory)(t) ? `${(0, _joinPaths.joinPaths)((0, _path.resolveParentPath)(t), (0, _path.findFolderName)(t))}.tar.gz` : t, (0, _uint8ArrayToString.uint8ArrayToString)(s));
|
|
25
26
|
}
|
package/dist/compress.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{uint8ArrayToString as n}from"@stryke/convert/uint8-array-to-string";import{findFolderName as m,
|
|
1
|
+
import{uint8ArrayToString as n}from"@stryke/convert/uint8-array-to-string";import{findFolderName as m,resolveParentPath as p}from"@stryke/path";import{joinPaths as r}from"@stryke/path/join-paths";import{createTarGzip as f}from"nanotar";import{isDirectory as o}from"./is-file";import{listFiles as l}from"./list-files";import{readFileIfExisting as g}from"./read-file";import{writeFile as w}from"./write-file";export async function compressDirectory(t,i){const e=await l(o(t)?r(t,"**/*"):t,i),s=await f(await Promise.all(e.map(async a=>({name:a,data:await g(a)}))),{attrs:{group:"storm-software"}});return w(i?.destination?o(i.destination)?r(i.destination,`${new Date().getTime()}.tar.gz`):i.destination:o(t)?`${r(p(t),m(t))}.tar.gz`:t,n(s))}
|
|
@@ -9,6 +9,7 @@ exports.getWorkspaceRoot = getWorkspaceRoot;
|
|
|
9
9
|
exports.isProjectRoot = isProjectRoot;
|
|
10
10
|
exports.isWorkspaceRoot = isWorkspaceRoot;
|
|
11
11
|
var _configTools = require("@storm-software/config-tools");
|
|
12
|
+
var _cwd = require("@stryke/path/cwd");
|
|
12
13
|
var _getParentPath = require("@stryke/path/get-parent-path");
|
|
13
14
|
var _isRootDir = require("@stryke/path/is-root-dir");
|
|
14
15
|
const WORKSPACE_ROOT_CONTENT = exports.WORKSPACE_ROOT_CONTENT = ["package-lock.json", "yarn.lock", "pnpm-lock.yaml", "bun.lock", "nx.json", "knip.json", "pnpm-workspace.yaml", "LICENSE", ".all-contributorsrc", ".whitesource", "syncpack.config.js", "syncpack.json", "socket.yaml", "lefthook.yaml", ".npmrc", ".log4brains.yml", ".huskyrc", ".husky", ".lintstagedrc", ".commitlintrc", "lefthook.yml", ".github", ".nx", ".vscode", "patches"],
|
|
@@ -24,7 +25,7 @@ function getWorkspaceRoot(o = process.cwd()) {
|
|
|
24
25
|
}), r) return r;
|
|
25
26
|
return o;
|
|
26
27
|
}
|
|
27
|
-
function isWorkspaceRoot(o =
|
|
28
|
+
function isWorkspaceRoot(o = (0, _cwd.cwd)()) {
|
|
28
29
|
const t = getWorkspaceRoot(o);
|
|
29
30
|
return t ? t === o : !1;
|
|
30
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{findWorkspaceRootSafe as e}from"@storm-software/config-tools";import{getParentPath as s}from"@stryke/path/get-parent-path";import{isSystemRoot as
|
|
1
|
+
import{findWorkspaceRootSafe as e}from"@storm-software/config-tools";import{cwd as n}from"@stryke/path/cwd";import{getParentPath as s}from"@stryke/path/get-parent-path";import{isSystemRoot as c}from"@stryke/path/is-root-dir";export const WORKSPACE_ROOT_CONTENT=["package-lock.json","yarn.lock","pnpm-lock.yaml","bun.lock","nx.json","knip.json","pnpm-workspace.yaml","LICENSE",".all-contributorsrc",".whitesource","syncpack.config.js","syncpack.json","socket.yaml","lefthook.yaml",".npmrc",".log4brains.yml",".huskyrc",".husky",".lintstagedrc",".commitlintrc","lefthook.yml",".github",".nx",".vscode","patches"],PROJECT_ROOT_CONTENT=["project.json","package.json",".storm"];export function getWorkspaceRoot(o=process.cwd()){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 t=e(o);if(t)return t;let r=s(WORKSPACE_ROOT_CONTENT,o);if(r)return r;for(r=o;r&&!c(r);)if(r=s("storm-workspace.json",r,{skipCwd:!0}),r)return r;return o}export function isWorkspaceRoot(o=n()){const t=getWorkspaceRoot(o);return t?t===o:!1}export function getProjectRoot(o=process.cwd()){const t=s(PROJECT_ROOT_CONTENT,o);return t||o}export function isProjectRoot(o=process.cwd()){const t=getProjectRoot(o);return t?t===o:!1}
|
package/dist/index.cjs
CHANGED
|
@@ -113,6 +113,17 @@ Object.keys(_install).forEach(function (key) {
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
|
+
var _isFile = require("./is-file.cjs");
|
|
117
|
+
Object.keys(_isFile).forEach(function (key) {
|
|
118
|
+
if (key === "default" || key === "__esModule") return;
|
|
119
|
+
if (key in exports && exports[key] === _isFile[key]) return;
|
|
120
|
+
Object.defineProperty(exports, key, {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _isFile[key];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
116
127
|
var _json = require("./json.cjs");
|
|
117
128
|
Object.keys(_json).forEach(function (key) {
|
|
118
129
|
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"./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-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/install.cjs
CHANGED
|
@@ -6,13 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.install = install;
|
|
7
7
|
exports.packageExists = void 0;
|
|
8
8
|
var _installPkg = require("@antfu/install-pkg");
|
|
9
|
+
var _cwd = require("@stryke/path/cwd");
|
|
9
10
|
require("tinyexec");
|
|
10
11
|
var _resolve = require("./resolve.cjs");
|
|
11
12
|
async function install(t, a) {
|
|
12
13
|
return (0, _installPkg.installPackage)(t, a);
|
|
13
14
|
}
|
|
14
15
|
const packageExists = async (t, a) => {
|
|
15
|
-
const s = await (0, _resolve.resolve)(a?.cwd ||
|
|
16
|
+
const s = await (0, _resolve.resolve)(a?.cwd || (0, _cwd.cwd)());
|
|
16
17
|
try {
|
|
17
18
|
await (0, _resolve.resolve)(t, {
|
|
18
19
|
paths: [s]
|
package/dist/install.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{installPackage as
|
|
1
|
+
import{installPackage as i}from"@antfu/install-pkg";import{cwd as e}from"@stryke/path/cwd";import"tinyexec";import{resolve as n}from"./resolve";export async function install(t,a){return i(t,a)}export const packageExists=async(t,a)=>{const s=await n(a?.cwd||e());try{await n(t,{paths:[s]})}catch{await install(t,a)}};
|
package/dist/is-file.cjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isDirectory = isDirectory;
|
|
7
|
+
exports.isDirectorySymlink = void 0;
|
|
8
|
+
exports.isFile = isFile;
|
|
9
|
+
exports.isFileSymlink = void 0;
|
|
10
|
+
var _joinPaths = require("@stryke/path/join-paths");
|
|
11
|
+
var _nodeFs = require("node:fs");
|
|
12
|
+
function isFile(r, o) {
|
|
13
|
+
return !!(0, _nodeFs.statSync)(o ? (0, _joinPaths.joinPaths)(o, r) : r, {
|
|
14
|
+
throwIfNoEntry: !1
|
|
15
|
+
})?.isFile();
|
|
16
|
+
}
|
|
17
|
+
function isDirectory(r, o) {
|
|
18
|
+
return !!(0, _nodeFs.statSync)(o ? (0, _joinPaths.joinPaths)(o, r) : r, {
|
|
19
|
+
throwIfNoEntry: !1
|
|
20
|
+
})?.isDirectory();
|
|
21
|
+
}
|
|
22
|
+
const isFileSymlink = (r, o) => !!(0, _nodeFs.lstatSync)(o ? (0, _joinPaths.joinPaths)(o, r) : r, {
|
|
23
|
+
throwIfNoEntry: !1
|
|
24
|
+
})?.isFile(),
|
|
25
|
+
isDirectorySymlink = (r, o) => !!(0, _nodeFs.lstatSync)(o ? (0, _joinPaths.joinPaths)(o, r) : r, {
|
|
26
|
+
throwIfNoEntry: !1
|
|
27
|
+
})?.isDirectory();
|
|
28
|
+
exports.isDirectorySymlink = isDirectorySymlink;
|
|
29
|
+
exports.isFileSymlink = isFileSymlink;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if the given path is a file.
|
|
3
|
+
*
|
|
4
|
+
* @param path - The location to check
|
|
5
|
+
* @param additionalPath - An optional additional path to add to the start of the path
|
|
6
|
+
* @returns An indicator specifying if the path is a file
|
|
7
|
+
*/
|
|
8
|
+
export declare function isFile(path: string, additionalPath?: string): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Check if the given path is a directory.
|
|
11
|
+
*
|
|
12
|
+
* @param path - The location to check
|
|
13
|
+
* @param additionalPath - An optional additional path to add to the start of the path
|
|
14
|
+
* @returns An indicator specifying if the path is a directory
|
|
15
|
+
*/
|
|
16
|
+
export declare function isDirectory(path: string, additionalPath?: string): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Check if the given path is a file . Does not dereference symbolic links.
|
|
19
|
+
*
|
|
20
|
+
* @param path - The location to check
|
|
21
|
+
* @param additionalPath - An optional additional path to add to the start of the path
|
|
22
|
+
* @returns An indicator specifying if the path is a file
|
|
23
|
+
*/
|
|
24
|
+
export declare const isFileSymlink: (path: string, additionalPath?: string) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Check if the given path is a directory. Does not dereference symbolic links.
|
|
27
|
+
*
|
|
28
|
+
* @param path - The location to check
|
|
29
|
+
* @param additionalPath - An optional additional path to add to the start of the path
|
|
30
|
+
* @returns An indicator specifying if the path is a directory
|
|
31
|
+
*/
|
|
32
|
+
export declare const isDirectorySymlink: (path: string, additionalPath?: string) => boolean;
|
package/dist/is-file.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{joinPaths as n}from"@stryke/path/join-paths";import{lstatSync as e,statSync as t}from"node:fs";export function isFile(r,o){return!!t(o?n(o,r):r,{throwIfNoEntry:!1})?.isFile()}export function isDirectory(r,o){return!!t(o?n(o,r):r,{throwIfNoEntry:!1})?.isDirectory()}export const isFileSymlink=(r,o)=>!!e(o?n(o,r):r,{throwIfNoEntry:!1})?.isFile(),isDirectorySymlink=(r,o)=>!!e(o?n(o,r):r,{throwIfNoEntry:!1})?.isDirectory();
|
package/dist/resolve.cjs
CHANGED
|
@@ -11,13 +11,14 @@ exports.resolveSafe = resolveSafe;
|
|
|
11
11
|
exports.resolveSafeSync = resolveSafeSync;
|
|
12
12
|
exports.resolveSync = resolveSync;
|
|
13
13
|
var _correctPath = require("@stryke/path/correct-path");
|
|
14
|
+
var _cwd = require("@stryke/path/cwd");
|
|
14
15
|
var _filePathFns = require("@stryke/path/file-path-fns");
|
|
15
16
|
var _joinPaths = require("@stryke/path/join-paths");
|
|
16
17
|
var _mlly = require("mlly");
|
|
17
18
|
var _getWorkspaceRoot = require("./get-workspace-root.cjs");
|
|
18
19
|
async function resolve(r, e = {}) {
|
|
19
20
|
const t = e.paths ?? [];
|
|
20
|
-
t.length === 0 && t.push(
|
|
21
|
+
t.length === 0 && t.push((0, _cwd.cwd)());
|
|
21
22
|
const n = (0, _getWorkspaceRoot.getWorkspaceRoot)();
|
|
22
23
|
return t.includes(n) || t.push(n), (0, _correctPath.correctPath)(await (0, _mlly.resolvePath)(r, {
|
|
23
24
|
url: t
|
package/dist/resolve.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{correctPath as
|
|
1
|
+
import{correctPath as i}from"@stryke/path/correct-path";import{cwd as c}from"@stryke/path/cwd";import{findFilePath as s}from"@stryke/path/file-path-fns";import{joinPaths as o}from"@stryke/path/join-paths";import{interopDefault as p,resolvePath as f,resolvePathSync as u}from"mlly";import{getWorkspaceRoot as a}from"./get-workspace-root";export async function resolve(r,e={}){const t=e.paths??[];t.length===0&&t.push(c());const n=a();return t.includes(n)||t.push(n),i(await f(r,{url:t}))}export function resolveSync(r,e={}){const t=e.paths??[];t.length===0&&t.push(process.cwd());const n=a();return t.includes(n)||t.push(n),i(u(r,{url:e.paths}))}export async function resolveSafe(r,e={}){try{return await resolve(r,e)}catch{return}}export function resolveSafeSync(r,e={}){try{return resolveSync(r,e)}catch{return}}export async function importModule(r){const e=await import(r);return e&&p(e)}export async function resolvePackage(r,e={}){let t=await resolveSafe(o(r,"package.json"),e);return t||(t=await resolveSafe(o(r,"index.js"),e),t||(t=await resolveSafe(r,e))),t?s(t):void 0}export function resolvePackageSync(r,e={}){let t=resolveSafeSync(o(r,"package.json"),e);return t||(t=resolveSafeSync(o(r,"index.js"),e),t||(t=resolveSafeSync(r,e))),t?s(t):void 0}
|
package/dist/tsconfig.cjs
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.loadTsConfig = loadTsConfig;
|
|
7
|
+
var _cwd = require("@stryke/path/cwd");
|
|
7
8
|
var _filePathFns = require("@stryke/path/file-path-fns");
|
|
8
9
|
var _joinPaths = require("@stryke/path/join-paths");
|
|
9
10
|
var _defu = _interopRequireDefault(require("defu"));
|
|
@@ -11,16 +12,16 @@ var _mlly = require("mlly");
|
|
|
11
12
|
var _exists = require("./exists.cjs");
|
|
12
13
|
var _json = require("./json.cjs");
|
|
13
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
async function loadTsConfig(e =
|
|
15
|
-
let
|
|
16
|
-
if (!(0, _exists.existsSync)(
|
|
15
|
+
async function loadTsConfig(e = (0, _cwd.cwd)()) {
|
|
16
|
+
let t = e.endsWith(".json") ? e : (0, _joinPaths.joinPaths)(e, "tsconfig.json");
|
|
17
|
+
if (!(0, _exists.existsSync)(t) && (t = await (0, _mlly.resolvePath)(e, {
|
|
17
18
|
url: require('url').pathToFileURL(__filename).toString()
|
|
18
|
-
}), !(0, _exists.existsSync)(
|
|
19
|
-
let o = await (0, _json.readJsonFile)(
|
|
20
|
-
if (o?.compilerOptions?.baseUrl && (o.compilerOptions.baseUrl = (0, _joinPaths.joinPaths)((0, _filePathFns.findFilePath)(
|
|
19
|
+
}), !(0, _exists.existsSync)(t))) throw new Error(`tsconfig.json not found at ${t}. Please ensure the file exists.`);
|
|
20
|
+
let o = await (0, _json.readJsonFile)(t);
|
|
21
|
+
if (o?.compilerOptions?.baseUrl && (o.compilerOptions.baseUrl = (0, _joinPaths.joinPaths)((0, _filePathFns.findFilePath)(t), o.compilerOptions.baseUrl)), o?.extends) {
|
|
21
22
|
const f = Array.isArray(o.extends) ? o.extends : [o.extends];
|
|
22
23
|
for (const m of f) {
|
|
23
|
-
const n = await loadTsConfig((0, _joinPaths.joinPaths)((0, _filePathFns.findFilePath)(
|
|
24
|
+
const n = await loadTsConfig((0, _joinPaths.joinPaths)((0, _filePathFns.findFilePath)(t), m));
|
|
24
25
|
n && (o = (0, _defu.default)(o, n ?? {}));
|
|
25
26
|
}
|
|
26
27
|
}
|
package/dist/tsconfig.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{findFilePath as i}from"@stryke/path/file-path-fns";import{joinPaths as
|
|
1
|
+
import{cwd as a}from"@stryke/path/cwd";import{findFilePath as i}from"@stryke/path/file-path-fns";import{joinPaths as s}from"@stryke/path/join-paths";import p from"defu";import{resolvePath as d}from"mlly";import{existsSync as r}from"./exists";import{readJsonFile as c}from"./json";export async function loadTsConfig(e=a()){let t=e.endsWith(".json")?e:s(e,"tsconfig.json");if(!r(t)&&(t=await d(e,{url:import.meta.url}),!r(t)))throw new Error(`tsconfig.json not found at ${t}. Please ensure the file exists.`);let o=await c(t);if(o?.compilerOptions?.baseUrl&&(o.compilerOptions.baseUrl=s(i(t),o.compilerOptions.baseUrl)),o?.extends){const f=Array.isArray(o.extends)?o.extends:[o.extends];for(const m of f){const n=await loadTsConfig(s(i(t),m));n&&(o=p(o,n??{}))}}return o.extends=void 0,o}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/fs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.1",
|
|
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": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"@antfu/install-pkg": "^1.0.0",
|
|
16
16
|
"@ltd/j-toml": "^1.38.0",
|
|
17
17
|
"@storm-software/config-tools": "latest",
|
|
18
|
-
"@stryke/convert": "^0.3.
|
|
19
|
-
"@stryke/path": "^0.13.
|
|
18
|
+
"@stryke/convert": "^0.3.2",
|
|
19
|
+
"@stryke/path": "^0.13.1",
|
|
20
20
|
"@stryke/string-format": "^0.10.0",
|
|
21
21
|
"@zkochan/js-yaml": "^0.0.7",
|
|
22
22
|
"chalk": "^5.4.1",
|
|
@@ -220,6 +220,20 @@
|
|
|
220
220
|
"require": { "types": "./dist/json.d.ts", "default": "./dist/json.cjs" },
|
|
221
221
|
"default": { "types": "./dist/json.d.ts", "default": "./dist/json.mjs" }
|
|
222
222
|
},
|
|
223
|
+
"./is-file": {
|
|
224
|
+
"import": {
|
|
225
|
+
"types": "./dist/is-file.d.ts",
|
|
226
|
+
"default": "./dist/is-file.mjs"
|
|
227
|
+
},
|
|
228
|
+
"require": {
|
|
229
|
+
"types": "./dist/is-file.d.ts",
|
|
230
|
+
"default": "./dist/is-file.cjs"
|
|
231
|
+
},
|
|
232
|
+
"default": {
|
|
233
|
+
"types": "./dist/is-file.d.ts",
|
|
234
|
+
"default": "./dist/is-file.mjs"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
223
237
|
"./install": {
|
|
224
238
|
"import": {
|
|
225
239
|
"types": "./dist/install.d.ts",
|
|
@@ -381,5 +395,5 @@
|
|
|
381
395
|
"main": "./dist/index.cjs",
|
|
382
396
|
"module": "./dist/index.mjs",
|
|
383
397
|
"types": "./dist/index.d.ts",
|
|
384
|
-
"gitHead": "
|
|
398
|
+
"gitHead": "a27f10e735a05cca18b29026136249ed3bb76c1c"
|
|
385
399
|
}
|