From d500dad63cec21e491c9be876ecd5abc5191b80f Mon Sep 17 00:00:00 2001 From: userquin Date: Wed, 14 Aug 2024 20:05:58 +0200 Subject: [PATCH] chore: use `tinyglobby` --- build.config.ts | 4 ++-- package.json | 2 +- pnpm-lock.yaml | 27 ++++++++++++++++++++++++--- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/build.config.ts b/build.config.ts index 8dcd97f..def4600 100644 --- a/build.config.ts +++ b/build.config.ts @@ -1,9 +1,9 @@ import { basename } from 'node:path' import { defineBuildConfig } from 'unbuild' -import fg from 'fast-glob' +import { globSync } from 'tinyglobby' export default defineBuildConfig({ - entries: fg.sync('src/commands/*.ts').map(i => ({ + entries: globSync(['src/commands/*.ts']).map(i => ({ input: i.slice(0, -3), name: basename(i).slice(0, -3), })), diff --git a/package.json b/package.json index da9d356..7764d29 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,6 @@ "@types/which": "^3.0.4", "bumpp": "^9.4.2", "eslint": "^9.8.0", - "fast-glob": "^3.3.2", "fs-extra": "^11.2.0", "fzf": "^0.5.2", "ini": "^4.1.3", @@ -64,6 +63,7 @@ "picocolors": "^1.0.1", "taze": "^0.16.3", "terminal-link": "^3.0.0", + "tinyglobby": "^0.2.2", "tsx": "^4.17.0", "typescript": "^5.5.4", "unbuild": "^2.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dd11614..6879008 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,9 +35,6 @@ importers: eslint: specifier: ^9.8.0 version: 9.8.0 - fast-glob: - specifier: ^3.3.2 - version: 3.3.2 fs-extra: specifier: ^11.2.0 version: 11.2.0 @@ -59,6 +56,9 @@ importers: terminal-link: specifier: ^3.0.0 version: 3.0.0 + tinyglobby: + specifier: ^0.2.2 + version: 0.2.2 tsx: specifier: ^4.17.0 version: 4.17.0 @@ -1774,6 +1774,14 @@ packages: fastq@1.12.0: resolution: {integrity: sha512-VNX0QkHK3RsXVKr9KrlUv/FoTa0NdbYoHHl7uXHv2rzyHSlxjdNAKug2twd9luJxpcyNeAgf5iPPMutJO67Dfg==} + fdir@6.2.0: + resolution: {integrity: sha512-9XaWcDl0riOX5j2kYfy0kKdg7skw3IY6kA4LFT8Tk2yF9UdrADUy8D6AJuBLtf7ISm/MksumwAHE3WVbMRyCLw==} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + file-entry-cache@8.0.0: resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} engines: {node: '>=16.0.0'} @@ -2732,6 +2740,10 @@ packages: tinybench@2.8.0: resolution: {integrity: sha512-1/eK7zUnIklz4JUUlL+658n58XO2hHLQfSk1Zf2LKieUjxidN16eKFEoDEfjHc3ohofSSqK3X5yO6VGb6iW8Lw==} + tinyglobby@0.2.2: + resolution: {integrity: sha512-mZ2sDMaySvi1PkTp4lTo1In2zjU+cY8OvZsfwrDrx3YGRbXPX1/cbPwCR9zkm3O/Fz9Jo0F1HNgIQ1b8BepqyQ==} + engines: {node: '>=12.0.0'} + tinypool@1.0.0: resolution: {integrity: sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==} engines: {node: ^18.0.0 || >=20.0.0} @@ -4677,6 +4689,10 @@ snapshots: dependencies: reusify: 1.0.4 + fdir@6.2.0(picomatch@4.0.2): + optionalDependencies: + picomatch: 4.0.2 + file-entry-cache@8.0.0: dependencies: flat-cache: 4.0.1 @@ -5637,6 +5653,11 @@ snapshots: tinybench@2.8.0: {} + tinyglobby@0.2.2: + dependencies: + fdir: 6.2.0(picomatch@4.0.2) + picomatch: 4.0.2 + tinypool@1.0.0: {} tinyrainbow@1.2.0: {}