sindresorhus / cpy

Copy files
MIT License
425 stars 63 forks source link

Can commonjs be supported #108

Closed Jeffrey-mu closed 1 year ago

Jeffrey-mu commented 1 year ago

My project environment is commonjs. I found that this package can solve my needs, but it doesn't seem to support cjs

If I can support it, I can submit pr

Thank you.

sindresorhus commented 1 year ago

No plans for that. You can use it with CommonJS by using await import().

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

Jeffrey-mu commented 1 year ago

Okay, I'll try it. Thank you very much, sindresorhus @sindresorhus