Skip to content

Issue globbing from root directory #94

@benmccann

Description

@benmccann
$ ls /dist/shared/crud/
base.entity.d.ts  crud.entity.d.ts
$ cat index.js
import { globSync } from 'tinyglobby';

const files = globSync('/dist/shared/crud/crud.entity.d.ts',
{
    debug: true,
    expandDirectories: false,
    cwd: '/',
    absolute: true,
});

console.log(JSON.stringify(files));
$ node .
[tinyglobby 12:26:13] globbing with options: {
  debug: true,
  expandDirectories: false,
  cwd: '/',
  absolute: true,
  patterns: '/dist/shared/crud/crud.entity.d.ts'
} cwd: /
[tinyglobby 12:26:13] internal processing patterns: { match: [ 'dist/shared/crud/crud.entity.d.ts' ], ignore: [] }
[tinyglobby 12:26:13] internal properties: {
  root: '//dist/shared/crud',
  commonPath: [ 'dist', 'shared', 'crud' ],
  depthOffset: 3
}
[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions