Closed addun closed 1 month ago
e19c2d3b58aed6d38e0e2109e5a378a25256b9d1
9 -> 10
Assets are not copied when files start with .
.
app/config/envs/.development
"compilerOptions": { "assets": ["config/envs/*"] }
https://stackblitz.com/edit/nestjs-typescript-starter-dhma8x?file=README.md
In v9 (@nestjs/cli@9) all files inside config/envs/* were copied to /dist file. After migration to v10 they didn't. To fix this problem you need to explicitly add . prefix.
config/envs/*
/dist
"compilerOptions": { "assets": ["config/envs/.*"] // with `.` is works }
Glob by default do NOT copy hidden files https://stackoverflow.com/questions/77509905/the-glob-npm-package-does-not-matches-the-file-which-name-begins-from-dot
We could expose a configuration attribute to control that behavior - would you like to create a PR for this?
Let's track this here https://github.com/nestjs/nest-cli/pull/2660
Did you read the migration guide?
Is there an existing issue that is already proposing this?
Potential Commit/PR that introduced the regression
e19c2d3b58aed6d38e0e2109e5a378a25256b9d1
Versions
9 -> 10
Describe the regression
Assets are not copied when files start with
.
Minimum reproduction code
app/config/envs/.development
https://stackblitz.com/edit/nestjs-typescript-starter-dhma8x?file=README.md
Expected behavior
In v9 (@nestjs/cli@9) all files inside
config/envs/*
were copied to/dist
file. After migration to v10 they didn't. To fix this problem you need to explicitly add.
prefix.Other
Glob by default do NOT copy hidden files https://stackoverflow.com/questions/77509905/the-glob-npm-package-does-not-matches-the-file-which-name-begins-from-dot