pnpm deploy
Deploy a package from a workspace. During deployment, the files of the deployed package are copied to the target directory. All dependencies of the deployed package, including dependencies from the workspace, are installed inside an isolated node_modules
directory at the target directory. The target directory will contain a portable package that can be copied to a server and executed without additional steps.
사용법:
pnpm --filter=<deployed project name> deploy <target directory>
배포 전에 프로젝트를 빌드하는 경우 --prod
옵션을 사용하여 devDependencies
설치를 건너뜁니다.
pnpm --filter=<deployed project name> --prod deploy <target directory>