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

feat: add async transform support #866

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

makamekm
Copy link
Contributor

No description provided.

@makamekm makamekm force-pushed the add-async-transform-support branch 2 times, most recently from 2843e41 to 15931eb Compare October 30, 2024 14:23
shell.mkdir('-p', outputDir);
}

await copyFile(from, to);
Copy link
Member

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 {
Copy link
Member

@3y3 3y3 Nov 4, 2024

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) {
Copy link
Member

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants