Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows @reskript/init 无法初始化 #239

Closed
berwin0415 opened this issue Jan 19, 2022 · 9 comments
Closed

windows @reskript/init 无法初始化 #239

berwin0415 opened this issue Jan 19, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@berwin0415
Copy link

看了下是globby的问题

const files = await globby(${templateDirectory}/**, {dot: true});

这段代码, windows下返回为空

see: sindresorhus/globby#179

@otakustay otakustay added the bug Something isn't working label Jan 20, 2022
@otakustay
Copy link
Member

要改的地方还不止这一处……

@otakustay
Copy link
Member

帮忙试一下3.0.3是不是在Windows下可用

@otakustay
Copy link
Member

3.0.3的实现应该是错的,试一下3.0.4吧,我对所有的globby()调用都做了处理

@berwin0415
Copy link
Author

还有点问题, 路径无法跨盘符

@otakustay
Copy link
Member

这就有点很麻烦了,看来不能用glob相关的库了……

@otakustay
Copy link
Member

关于跨盘符的问题,我打算在下个大版本中再修复。当前至少cd到目录后再npx @reskript/init .是能用的吧?

@berwin0415
Copy link
Author

也不行, 目标目录得和npx临时目录同一盘符

@otakustay
Copy link
Member

OK,我再处理一下

@otakustay
Copy link
Member

3.0.6应该修复了问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants