• N
    Implement expandGlob() and expandGlobSync() (denoland/deno_std#617) · 2f90225c
    Nayeem Rahman 提交于
    fs/glob.ts:
    - Improve prototypes for expandGlob() and expandGlobSync() from denoland/deno_std#604.
    - Rename glob() to globToRegExp().
    - Add normalizeGlob() and joinGlobs().
    - Extract GlobToRegExpOptions from GlobOptions, remove the strict
      and filepath options.
    
    fs/globrex.ts:
    - Add GlobrexOptions.
    
    fs/path/constants.ts:
    - Add SEP_PATTERN.
    
    fs/walk.ts:
    - Add WalkOptions::includeFiles
    - Default WalkOptions::includeDirs to true.
    - Don't traverse directories matching a skip pattern.
    - Remove walkSync()'s default root value.
    
    prettier:
    - Refactor to use expandGlob().
    
    testing:
    - Make findTestModules() an async generator.
    Original: https://github.com/denoland/deno_std/commit/8c90bd9d0b1c78b023d36462ffaa9446ef22490c
    2f90225c
globrex.ts 7.5 KB