Comments (7)
Thanks, this works like expected with the /*
. We used this one in nestjs version 9 all the time successfully:
{"include": "../certs", "outDir": "./dist/certs2"}
After upgrade to nestjs 10 we figured out, that the behavior is different. All our certificates where not copied anymore.
But the main issue/confusion persist. Why nestcli produces different outputs depending on the flag watchAssets
true / false. It should not have an effect after running nest build
.
from nest-cli.
After upgrade to nestjs 10 we figured out, that the behavior is different. All our certificates where not copied anymore.
I just did this upgrade today and it took a while to also uncover this.
Previously ../someDir/
would add all the files and directories to the appropriate location in the dist
, but now the glob requires ../someDir/*
, or ../someDir/**
if we're adding child folders too.
Was this change in behaviour intentional or documented? I couldn't find anything.
from nest-cli.
Thanks for the quick feedback @andreasvh-conceto. It seems that these are 2 different bugs and only one of them was solved in the new release.
I just pushed a quick hotfix and published a new version (10.4.4). Let me know if you're still running into this issue.
from nest-cli.
Why if you change this
{"include": "../certs/*", "outDir": "./dist/certs1"},
{"include": "../certs", "outDir": "./dist/certs2"}
to this
{"include": "../certs/*", "outDir": "./dist/certs1"},
{"include": "../certs/*", "outDir": "./dist/certs2"}
from nest-cli.
This should be fixed in 10.4.3
from nest-cli.
Hi @kamilmysliwiec ,
i increased the nest-cli version to 10.4.3 and the issue still persist. The behaviour is still different. You can try it out with the steps to reproduce from my initial post.
Best regards
Andreas
from nest-cli.
Hi @kamilmysliwiec ,
thank you very much. It is working now as expected! :)
Thanks for the quick fix.
Best regards :)
from nest-cli.
Related Issues (20)
- Ability to use node cli parameters in nest cli commands HOT 4
- Nest CLI Project version issue HOT 1
- Add option to restart Application on Asset change HOT 2
- Remove 'source-map-support' package in favor of Nodejs built-in source mapping feature HOT 1
- [discussion] Duplicates and rename resource structure command HOT 2
- aviod compilation with swc + type-checking when there are type errors HOT 2
- NestJS with SWC has a different behavior than with TSC on monorepos HOT 1
- Faster startup with -w parameter on Windows platform in monorepo mode HOT 1
- Hidden assets are not copied HOT 2
- Unblocking TypeScript project reference builds HOT 1
- nest generate command not working on [email protected] HOT 15
- nest generate command not working on node v22.5.1 and typescript v5.5.3 HOT 3
- Error building app when including file asset from nestjs root folder in nest-cli.json HOT 3
- --enable-source-maps native binding doesn't work with ts-node HOT 5
- How can I delete resources automatically created by nestjs? HOT 1
- Error Cannot find module 'webpack' HOT 1
- Generate options has no effect when executing nest generate in a subfolder HOT 1
- use rspack by default HOT 3
- nest-cli cannot move assets to dist in some cases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nest-cli.