Comments (7)
Why do you have src
dir in dist
while compiling with tsc in the first place?
Do you have any ts files outside src you wish to compile?
from nest-cli.
any progress?
from nest-cli.
Same Issue. (Different dist
structure when using SWC)
from nest-cli.
I want to point out that if you take Nest's default .swcrc
.swcrc
{
"module": {
"type": "commonjs"
},
"jsc": {
"target": "es2021",
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true,
"useDefineForClassFields": false
},
"keepClassNames": true,
"baseUrl": "./"
},
"minify": false
}
And then run swc ./ -d dist-swc --source-root ./
to mimic the rootDir
option (unless there's another swc option I missed) it still outputs directly to dist-swc
, not dist-swc/src
from nest-cli.
Yup exactly, we have files outside src we wish to compile
from nest-cli.
We also have folders like scripts
that contain some TypeScript code. To clarify, I believe this issue is to suggest making it configurable through tsconfig.json
instead of enforcing a specific folder structure. This will make the transition to SWC easier for most projects.
from nest-cli.
Related Issues (20)
- Nest start failling when path has spaces HOT 4
- Integrate Docker Support in NestJS CLI through --with-docker Flag HOT 1
- Nest CLI Assets Property Fails to Copy Files on Windows Due to Path Format HOT 8
- Unknown OS Version on newer os versions HOT 16
- The application won't reload after compiled OS X HOT 5
- Errors in default webpack config file (webpack.config.json) are silently ignored HOT 1
- Regression > Copying assets is broken on Windows devices
- Facing module unavailability error on changing the bundler to swc HOT 1
- odd behavior when the config file can't be read HOT 5
- Add remove command to delete a non-root project from monorepo and auto-update nest-cli.json HOT 2
- false-positive warning message for `@nestjs/schematics` HOT 1
- [Feature] - nestCLI option to generate Command and Events HOT 1
- Update gitignore to include more common files or folders HOT 5
- add "compilerOptions.sourceMaps" option is nest-cli-json HOT 1
- Assets only works on top level project. HOT 1
- Clean up dependencies HOT 1
- Listing all the routes/endpoints with their types and middleware in project HOT 2
- Error cause is not logged in dev:watch mode HOT 1
- broken path in build output HOT 4
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.