From 6a8813a97ee531e5574d03e07b31d2c34b84a7ca Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Sun, 8 Feb 2026 16:59:26 +0000 Subject: [PATCH] replace glob with tinyglobby --- features.js | 5 ++--- features/template-only-glimmer-components.js | 2 +- package.json | 4 ++-- pnpm-lock.yaml | 8 ++++---- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/features.js b/features.js index e7e4d1b..87fe635 100644 --- a/features.js +++ b/features.js @@ -1,13 +1,12 @@ 'use strict'; -const glob = require('glob'); +const { globSync } = require('tinyglobby'); const path = require('path'); const FEATURES_PATH = path.resolve(__dirname, './features'); const FEATURES = {}; -glob - .sync('*.js', { cwd: FEATURES_PATH }) +globSync('*.js', { cwd: FEATURES_PATH }) .sort() .forEach((filename) => { let key = filename.slice(0, -3); diff --git a/features/template-only-glimmer-components.js b/features/template-only-glimmer-components.js index 171d6ae..56fefa7 100644 --- a/features/template-only-glimmer-components.js +++ b/features/template-only-glimmer-components.js @@ -3,7 +3,7 @@ const { styleText } = require('node:util'); const fs = require('fs'); -const globSync = require('glob').globSync; +const { globSync } = require('tinyglobby'); const { mkdirSync } = require('node:fs'); const p = require('util').promisify; const path = require('path'); diff --git a/package.json b/package.json index 8a945d0..56ba100 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,9 @@ }, "dependencies": { "ember-cli-version-checker": "^5.1.2", - "glob": "^13.0.1", "inquirer": "^13.2.2", - "silent-error": "^1.1.1" + "silent-error": "^1.1.1", + "tinyglobby": "^0.2.15" }, "devDependencies": { "broccoli-test-helper": "^2.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f8ee51a..35e9ef3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,15 +11,15 @@ importers: ember-cli-version-checker: specifier: ^5.1.2 version: 5.1.2 - glob: - specifier: ^13.0.1 - version: 13.0.1 inquirer: specifier: ^13.2.2 version: 13.2.2(@types/node@25.2.2) silent-error: specifier: ^1.1.1 version: 1.1.1 + tinyglobby: + specifier: ^0.2.15 + version: 0.2.15 devDependencies: broccoli-test-helper: specifier: ^2.0.0 @@ -7066,7 +7066,7 @@ snapshots: humanize-ms@1.2.1: dependencies: - ms: 2.1.3 + ms: 2.0.0 iconv-lite@0.4.24: dependencies: