usmanyunusov / nano-staged

Tiny tool to run commands for modified, staged, and committed files in a GIT repository.
https://npm.im/nano-staged
MIT License
468 stars 14 forks source link

Support windows #11

Closed usmanyunusov closed 2 years ago

iambumblehead commented 2 years ago

@usmanyunusov I'm lurking this package because it is one of the few to use esmock.

esmock was updated recently to support windows https://github.com/iambumblehead/esmock/issues/20

You may have simply lost interest in this package, but I'm letting you know the windows issue is resolved.

usmanyunusov commented 2 years ago

@iambumblehead I want to use esmock with a uvu (https://github.com/lukeed/uvu). Did not work out.

iambumblehead commented 2 years ago

@usmanyunusov thanks I'll try adding uvu tests the ava ones inside esmock

iambumblehead commented 2 years ago

@usmanyunusov uvu tests are passing here https://github.com/iambumblehead/esmock/pull/35

{
  "test-uvu": "node --no-warnings --loader=esmock ./node_modules/uvu/bin.js ./spec/uvu/"
}
usmanyunusov commented 2 years ago

@iambumblehead It works at OS Win is?

iambumblehead commented 2 years ago

@usmanyunusov yes windows filepaths fixed a few days ago here https://github.com/iambumblehead/esmock/issues/20 and esmock now includes windows-latest test pipeline

usmanyunusov commented 2 years ago

@iambumblehead Thanks! I will fix tests.