TypeScript Config
Factory functions for creating preset TypeScript configurations. Primarily used in unison with the Lumos CLI.
Extending config
Update package.json:
Create file in configs folder:
configs/typescript.js
modulesexports = allowSyntheticDefaultImports: true;
Settings
Main settings
Default values
CLI Options
--[no-]clean
- clean the target
outDir
before transpiling. Defaults totrue
.
- clean the target
--reference-workspaces
/--reference-workspaces=<string>
- automatically generate project references based on workspace dependency graph. Defaults to
false
.
- automatically generate project references based on workspace dependency graph. Defaults to
--emitDeclarationOnly
- emit d.ts files only
--noEmit
- include tests
--buildFolder=<string>
- sets build folder
--srcFolder=<string>
- sets src folder
--testsFolder=<string>
- sets tests folder
--typesFolder=<string>
- sets types folder
Example:
lumos typescript --emitDeclarationOnly --typesFolder=types