tinyglobby
Advanced tools
+2
-2
@@ -167,3 +167,3 @@ "use strict"; | ||
| props.commonPath = newCommonPath; | ||
| props.root = newCommonPath.length > 0 ? `${cwd}/${newCommonPath.join("/")}` : cwd; | ||
| props.root = newCommonPath.length > 0 ? import_node_path.default.posix.join(cwd, ...newCommonPath) : cwd; | ||
| } | ||
@@ -207,3 +207,3 @@ return result; | ||
| function processPath(path2, cwd, root, isDirectory, absolute) { | ||
| const relativePath = absolute ? path2.slice(root.length + 1) || "." : path2; | ||
| const relativePath = absolute ? path2.slice(root === "/" ? 1 : root.length + 1) || "." : path2; | ||
| if (root === cwd) { | ||
@@ -210,0 +210,0 @@ return isDirectory && relativePath !== "." ? relativePath.slice(0, -1) : relativePath; |
+2
-2
@@ -129,3 +129,3 @@ // src/index.ts | ||
| props.commonPath = newCommonPath; | ||
| props.root = newCommonPath.length > 0 ? `${cwd}/${newCommonPath.join("/")}` : cwd; | ||
| props.root = newCommonPath.length > 0 ? path.posix.join(cwd, ...newCommonPath) : cwd; | ||
| } | ||
@@ -169,3 +169,3 @@ return result; | ||
| function processPath(path2, cwd, root, isDirectory, absolute) { | ||
| const relativePath = absolute ? path2.slice(root.length + 1) || "." : path2; | ||
| const relativePath = absolute ? path2.slice(root === "/" ? 1 : root.length + 1) || "." : path2; | ||
| if (root === cwd) { | ||
@@ -172,0 +172,0 @@ return isDirectory && relativePath !== "." ? relativePath.slice(0, -1) : relativePath; |
+7
-7
| { | ||
| "name": "tinyglobby", | ||
| "version": "0.2.12", | ||
| "version": "0.2.13", | ||
| "description": "A fast and minimal alternative to globby and fast-glob", | ||
@@ -36,3 +36,3 @@ "main": "dist/index.js", | ||
| "dependencies": { | ||
| "fdir": "^6.4.3", | ||
| "fdir": "^6.4.4", | ||
| "picomatch": "^4.0.2" | ||
@@ -42,7 +42,7 @@ }, | ||
| "@biomejs/biome": "^1.9.4", | ||
| "@types/node": "^22.13.4", | ||
| "@types/picomatch": "^3.0.2", | ||
| "fs-fixture": "^2.7.0", | ||
| "tsup": "^8.3.6", | ||
| "typescript": "^5.7.3" | ||
| "@types/node": "^22.14.1", | ||
| "@types/picomatch": "^4.0.0", | ||
| "fs-fixture": "^2.7.1", | ||
| "tsup": "^8.4.0", | ||
| "typescript": "^5.8.3" | ||
| }, | ||
@@ -49,0 +49,0 @@ "engines": { |
+4
-1
@@ -52,5 +52,7 @@ # tinyglobby | ||
| - [`vite`](https://github.com/vitejs/vite) | ||
| - [`pnpm`](https://github.com/pnpm/pnpm) | ||
| - [`node-gyp`](https://github.com/nodejs/node-gyp) | ||
| - [`eslint-import-resolver-typescript`](https://github.com/import-js/eslint-import-resolver-typescript) | ||
| - [`vitest`](https://github.com/vitest-dev/vitest) | ||
| - [`copy-webpack-plugin`](https://github.com/webpack-contrib/copy-webpack-plugin) | ||
| - [`ts-morph`](https://github.com/dsherret/ts-morph) | ||
@@ -61,6 +63,7 @@ - [`nx`](https://github.com/nrwl/nx) | ||
| - [`tsup`](https://github.com/egoist/tsup) | ||
| - [`vite-plugin-checker`](https://github.com/fi3ework/vite-plugin-checker) | ||
| - [`lerna`](https://github.com/lerna/lerna) | ||
| - [`cspell`](https://github.com/streetsidesoftware/cspell) | ||
| - [`nuxt`](https://github.com/nuxt/nuxt) | ||
| - [`postcss-mixins`](https://github.com/postcss/postcss-mixins) | ||
| - [`astro`](https://github.com/withastro/astro) | ||
| - [`unocss`](https://github.com/unocss/unocss) | ||
@@ -67,0 +70,0 @@ - [`vitepress`](https://github.com/vuejs/vitepress) |
31264
0.66%72
4.35%Updated