8000 feat: re-export `glob.globbySync` as `glob.sync` by bytemain · Pull Request #1135 · google/zx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: re-export glob.globbySync as glob.sync #1135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension 8000

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .size-limit.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
{
"name": "dts libdefs",
"path": "build/*.d.ts",
"limit": "39.4 kB",
"limit": "39.42 kB",
"brotli": false,
"gzip": false
},
{
"name": "vendor",
"path": "build/vendor-*",
"limit": "767.1 kB",
"limit": "767.12 kB",
"brotli": false,
"gzip": false
},
Expand Down
1 change: 1 addition & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ The [globby](https://github.com/sindresorhus/globby) package.

```js
const packages = await glob(['package.json', 'packages/*/package.json'])
const markdowns = glob.sync('*.md') // sync API shortcut
```

## `which()`
Expand Down
1 change: 1 addition & 0 deletions src/vendor-extra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const createRequire = _createRequire as unknown as (
export const globbyModule = {
convertPathToPattern,
globby,
sync: globbySync,
globbySync,
globbyStream,
generateGlobTasksSync,
Expand Down
1 change: 1 addition & 0 deletions test/vendor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ describe('vendor API', () => {

test('globby() works', async () => {
assert.deepEqual(await glob('*.md'), ['README.md'])
assert.deepEqual(glob.sync('*.md'), ['README.md'])
})

test('fetch() works', async () => {
Expand Down
0