Replies: 1 comment
-
Try --copy-files |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm migrating one of my projects using NestJS to use vitest. One of the requirements for vitest is to add swc as the compiler to my NestJS project.
In my codebase, there are some code relying on the
version
andname
declared inpackage.json
, but using swc the package.json file is not available in thedist
folder.Any ideas on how to proceed to get the name and version props from package.json in the compiled code using swc?
I tried
process.env.npm_package_name
andprocess.env.npm_package_version
, but they don't work in the compiled code as well.Beta Was this translation helpful? Give feedback.
All reactions