tiktok / rush-plugins Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Running the rush update
on MacOS causes the command-line.json
file in autoinstallers
directory to change the line format to Windows lines (CRLF).
rush update
*/autoinstallers/*/rush-plugins/rush-init-project-plugin/rush-init-project-plugin/command-line.json
Expected result: These files should use Unix (LF) style newlines (i.e. \n)
Actual result: These files use Windows (CRLF) style newlines (i.e. \r\n)
Question | Answer |
---|---|
@microsoft/rush version | 5.90.2 |
rushVersion | 5.90.2 |
Operating system | MacOS 14.1.1 |
Node.js version | 18.18.2 |
If you use the documented setup for init.config.ts
, the plugins internal ts-node build fails with the following error:
Starting "rush init-project"
? Please select a template node-lib
Hello from template configuration! "node-lib" /Users/michaelsitter/dev/web-projects/common/_templates/node-lib
⨯ Unable to compile TypeScript:
error TS5109: Option 'moduleResolution' must be set to 'Node16' (or left unspecified) when option 'module' is set to 'Node16'.
I think I managed to track the failure down to this line in TemplateConfiguration. I experimentally added module: 'none'
& it resolves this issue, but it's not clear to me what should actually be happening here. Is ts-node supposed to be discovering a tsconfig file at this step, or is this intentionally hardcoded in the plugin?
I have a branch which reproduces this issue here: https://github.com/MichaelSitter/web-projects/tree/rush-init-project-ts-config-repro
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.