tinyglobby
Advanced tools
Comparing version 0.2.11 to 0.2.12
@@ -46,2 +46,3 @@ "use strict"; | ||
var import_picomatch = __toESM(require("picomatch")); | ||
var ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/; | ||
function getPartialMatcher(patterns, options) { | ||
@@ -63,2 +64,5 @@ const patternsCount = patterns.length; | ||
const inputParts = input.split("/"); | ||
if (inputParts[0] === ".." && ONLY_PARENT_DIRECTORIES.test(input)) { | ||
return true; | ||
} | ||
for (let i = 0; i < patterns.length; i++) { | ||
@@ -265,3 +269,5 @@ const patternParts = patternsParts[i]; | ||
const skipped = relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath); | ||
if (!skipped) { | ||
if (skipped) { | ||
log(`skipped ${p}`); | ||
} else { | ||
log(`crawling ${p}`); | ||
@@ -268,0 +274,0 @@ } |
{ | ||
"name": "tinyglobby", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "A fast and minimal alternative to globby and fast-glob", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -51,4 +51,5 @@ # tinyglobby | ||
<!-- should be sorted by weekly download count --> | ||
- [`vite`](https://github.com/vitejs/vite) | ||
- [`node-gyp`](https://github.com/nodejs/node-gyp) | ||
- [`eslint-import-resolver-typescript`](https://github.com/import-js/eslint-import-resolver-typescript) | ||
- [`vite`](https://github.com/vitejs/vite) | ||
- [`vitest`](https://github.com/vitest-dev/vitest) | ||
@@ -58,2 +59,3 @@ - [`ts-morph`](https://github.com/dsherret/ts-morph) | ||
- [`sort-package-json`](https://github.com/keithamus/sort-package-json) | ||
- [`unimport`](https://github.com/unjs/unimport) | ||
- [`tsup`](https://github.com/egoist/tsup) | ||
@@ -63,9 +65,7 @@ - [`vite-plugin-checker`](https://github.com/fi3ework/vite-plugin-checker) | ||
- [`nuxt`](https://github.com/nuxt/nuxt) | ||
- [`json-schema-to-typescript`](https://github.com/bcherny/json-schema-to-typescript) | ||
- [`vite-plugin-pwa`](https://github.com/vite-pwa/vite-plugin-pwa) | ||
- [`postcss-mixins`](https://github.com/postcss/postcss-mixins) | ||
- [`unocss`](https://github.com/unocss/unocss) | ||
- [`vitepress`](https://github.com/vuejs/vitepress) | ||
- [`pkg.pr.new`](https://github.com/stackblitz-labs/pkg.pr.new) | ||
- [`pkg-pr-new`](https://github.com/stackblitz-labs/pkg.pr.new) | ||
- Your own project? [Open an issue](https://github.com/SuperchupuDev/tinyglobby/issues) | ||
if you feel like this list is incomplete. |
Sorry, the diff of this file is not supported yet
31060
646