Commit Graph

70 Commits

Author SHA1 Message Date
dubiousjim
28eb11d848 Rename readDir -> readdir (denoland/deno#4225) 2021-02-01 10:46:57 +00:00
Maximilien Mellen
623a601fd5 Enable TS strict mode by default (denoland/deno#3899)
Fixes denoland/deno#3324 

Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-02-01 10:46:57 +00:00
Yusuke Sakurai
ee8ec4b053 remove non-null assertion operator from std (part1) (denoland/deno#3900) 2021-02-01 10:46:57 +00:00
Nayeem Rahman
0a92976bb0 fix: error handling in fs/walk() (denoland/deno#3318)
- Make assertThrows() return the Error
- Remove WalkOptions::onError()
2021-02-01 10:46:56 +00:00
Kitson Kelly
1c5db631f7 Update to TypeScript 3.7 (denoland/deno#3275)
and update to prettier 1.19

Also, update `assert()` and remove not null assertions where possibly
in `cli`.

Closes denoland/deno#3273
2021-02-01 10:46:56 +00:00
Nayeem Rahman
5b2aec7a62 std: Move fs/path to the top-level (denoland/deno#3100) 2021-02-01 10:46:56 +00:00
Ryan Dahl
d491d2e747 Run deno_std tests in github actions 2021-02-01 10:46:56 +00:00
Yoshiya Hinosawa
c3fe858f98 Update eslint and @typescript-eslint (#621) 2019-10-05 12:02:34 -04:00
Nayeem Rahman
8c90bd9d0b Implement expandGlob() and expandGlobSync() (#617)
fs/glob.ts:
- Improve prototypes for expandGlob() and expandGlobSync() from #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.
2019-10-02 13:59:27 -04:00
Nayeem Rahman
de8d0ab4a1 Add includeDirs to WalkOptions (#601) 2019-09-18 11:37:37 -04:00
Axetroy
06958a4ada bump prettier to 1.18.2 (#592) 2019-09-11 23:31:23 -04:00
Bartek Iwańczuk
be24677d15 chore: Implement strict mode (#453) 2019-05-30 08:59:30 -04:00
Ryan Dahl
07ca4f9629
walk() should not use deprecated FileInfo.path (#398)
The walk() interface is change to return a WalkInfo object which
contains both the resolved filename and FileInfo object from stat.

The followSymlinks feature is disabled for now.
2019-05-14 17:14:08 -04:00
Vincent LE GOFF
4543b563a9 Eslint fixes (#356)
Make warnings fail
2019-04-24 07:41:22 -04:00
Yoshiya Hinosawa
61af419bbc fix: eslint errors (#265) 2019-03-12 01:51:51 -04:00
Yoshiya Hinosawa
395392912d Use Deno global var instead of built-in "deno" module (#247) 2019-03-07 19:25:16 -05:00
Vincent LE GOFF
ccb452f775 fs.walk performance improvement (#221) 2019-03-02 14:57:37 -05:00
Vincent LE GOFF
0c3ba838fa Glob integration for the FS walker (#219) 2019-03-02 14:56:19 -05:00
Bert Belder
6063378a92 Change import { x } from "deno" to const { x } = Deno (#218) 2019-02-26 00:35:50 -05:00
Andy Hayden
3be908facd Add fs.walk (#192) 2019-02-15 11:20:59 -05:00