Skip to content

Commit 52d17d5

Browse files
committed
Switch to globStream
1 parent 088fc0e commit 52d17d5

5 files changed

Lines changed: 83 additions & 107 deletions

File tree

.config/rollup.dist.config.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { babel as babelPlugin } from '@rollup/plugin-babel'
88
import commonjsPlugin from '@rollup/plugin-commonjs'
99
import jsonPlugin from '@rollup/plugin-json'
1010
import { nodeResolve } from '@rollup/plugin-node-resolve'
11-
import { glob as tinyGlob } from 'tinyglobby'
11+
import fastGlob from 'fast-glob'
1212
import trash from 'trash'
1313

1414
import {
@@ -141,7 +141,7 @@ async function copyExternalPackages() {
141141
// Rewire 'blessed' inside 'blessed-contrib'.
142142
await Promise.all(
143143
(
144-
await tinyGlob(['**/*.js'], {
144+
await fastGlob.glob(['**/*.js'], {
145145
absolute: true,
146146
cwd: blessedContribPath,
147147
ignore: [NODE_MODULES_GLOB_RECURSIVE],
@@ -168,7 +168,7 @@ async function copyPackage(pkgName, options) {
168168
await fs.cp(pkgNmPath, pkgDestPath, { recursive: true })
169169
if (strict) {
170170
// Add 'use strict' directive to js files.
171-
const jsFiles = await tinyGlob(['**/*.js'], {
171+
const jsFiles = await fastGlob.glob(['**/*.js'], {
172172
absolute: true,
173173
cwd: pkgDestPath,
174174
ignore: [NODE_MODULES_GLOB_RECURSIVE],
@@ -292,7 +292,7 @@ async function updatePackageLockFile() {
292292
async function removeEmptyDirs(thePath) {
293293
await trash(
294294
(
295-
await tinyGlob(['**/'], {
295+
await fastGlob.glob(['**/'], {
296296
ignore: [NODE_MODULES_GLOB_RECURSIVE],
297297
absolute: true,
298298
cwd: thePath,
@@ -309,7 +309,7 @@ async function removeFiles(thePath, options) {
309309
const { exclude } = { __proto__: null, ...options }
310310
const ignore = Array.isArray(exclude) ? exclude : exclude ? [exclude] : []
311311
return await trash(
312-
await tinyGlob(['**/*'], {
312+
await fastGlob.glob(['**/*'], {
313313
absolute: true,
314314
onlyFiles: true,
315315
cwd: thePath,
@@ -465,7 +465,7 @@ export default async () => {
465465
// Bundle <root>/src/external/blessed-contrib/ files and output to
466466
// <root>/external/blessed-contrib/.
467467
...(
468-
await tinyGlob(['**/*.mjs'], {
468+
await fastGlob.glob(['**/*.mjs'], {
469469
absolute: true,
470470
cwd: blessedContribSrcPath,
471471
})

package-lock.json

Lines changed: 45 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"@socketregistry/is-interactive": "1.0.6",
112112
"@socketregistry/packageurl-js": "1.0.8",
113113
"@socketsecurity/config": "3.0.1",
114-
"@socketsecurity/registry": "1.0.250",
114+
"@socketsecurity/registry": "1.0.254",
115115
"@socketsecurity/sdk": "1.4.67",
116116
"@types/blessed": "0.1.25",
117117
"@types/cmd-shim": "5.0.2",
@@ -126,7 +126,7 @@
126126
"@types/which": "3.0.4",
127127
"@types/yargs-parser": "21.0.3",
128128
"@typescript-eslint/parser": "8.38.0",
129-
"@typescript/native-preview": "7.0.0-dev.20250731.1",
129+
"@typescript/native-preview": "7.0.0-dev.20250801.1",
130130
"@vitest/coverage-v8": "3.2.4",
131131
"blessed": "0.1.81",
132132
"blessed-contrib": "4.11.0",
@@ -142,6 +142,7 @@
142142
"eslint-plugin-n": "17.21.3",
143143
"eslint-plugin-sort-destructure-keys": "2.0.0",
144144
"eslint-plugin-unicorn": "56.0.1",
145+
"fast-glob": "3.3.3",
145146
"globals": "16.3.0",
146147
"hpagent": "1.2.0",
147148
"husky": "9.1.7",
@@ -153,7 +154,7 @@
153154
"meow": "13.2.0",
154155
"micromatch": "4.0.8",
155156
"mock-fs": "5.5.0",
156-
"nock": "14.0.7",
157+
"nock": "14.0.8",
157158
"npm-package-arg": "13.0.0",
158159
"npm-run-all2": "8.0.4",
159160
"open": "10.2.0",
@@ -166,7 +167,6 @@
166167
"synp": "1.9.14",
167168
"terminal-link": "2.1.1",
168169
"tiny-updater": "3.5.3",
169-
"tinyglobby": "0.2.14",
170170
"trash": "9.0.0",
171171
"type-coverage": "2.29.7",
172172
"typescript-eslint": "8.38.0",

patches/tinyglobby#0.2.14.patch

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)