Commit Graph

8 Commits

Author SHA1 Message Date
Ben McLean
c3b113d7a9
refactor(path): make isWindows check compatible with Node and Bun (#4961)
* Refactored to get rid of unnecessary function.

All that needs to be done here is to check if
the version is windows. Handling each combination
of runtime and operating system will make
the existing osType difficult to test and maintain.

* Changed browser version of isWindows.

It was using a deprecated web API.

* Refactored getIsWindows.

* Added node/bun version of isWindows.

* Got cross platform os module working.

* Handled Deno error.

* Fixed type errors.

* Removed node:os import.

This is how NodeJS checks to see
if the underlying OS is windows.

* tweaks

* fix

* cleanup

* tweak

* fix

* Added support for node.

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-30 08:39:59 +10:00
Yoshiya Hinosawa
db9d4ec70b
fix(path): support use in dnt (#5478) 2024-07-18 14:38:06 +09:00
Asher Gomez
cda6714c5e
refactor(path): clean isWindows logic (#4972)
* refactor(path): clean `isWindows` logic

* fix
2024-06-06 07:27:59 +10:00
Asher Gomez
1ac89853f5
BREAKING(path): remove GlobToRegExpOptions.os and OSType export (#4928)
* BREAKING(fs): remove `GlobToRegExpOptions.os`

* fix
2024-06-04 14:03:48 +10:00
Yoshiya Hinosawa
388800f301
docs(path): improve API docs (#4900)
Co-authored-by: Nathan Whitaker <nathan@deno.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-06-02 11:46:36 +09:00
Lino Le Van
c46143f0ac
chore: update copyright year (#4046)
* chore: update copyright year

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 08:11:32 +11:00
Lino Le Van
63bc0d3569
chore(path): update _os.ts (#3637) 2023-09-13 22:10:12 +09:00
Yoshiya Hinosawa
6facda630a
refactor(_util): remove _util/os (#3564) 2023-08-25 18:07:43 +09:00