-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: add async transform support #866
base: master
Are you sure you want to change the base?
Conversation
2843e41
to
15931eb
Compare
60dbb57
to
2246641
Compare
shell.mkdir('-p', outputDir); | ||
} | ||
|
||
await copyFile(from, to); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Так нельзя. Это замедляет сборку.
В отличии от shall.cp, который делает новый hardlink, нода честно копирует контент файла, что намного медленнее.
} | ||
} | ||
|
||
export class FsContextCli implements FsContext { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем перепридумывать fs api?
Почему то, что было *Sync перешло в *, а то что было * перешло в *Async?
this.context = context; | ||
} | ||
|
||
getPaths(path: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это не может быть публичным АПИ.
fs должен быть совместим с import type * as fs from 'node:fs/promises'
No description provided.