Skip to content

Instantly share code, notes, and snippets.

@GregOnNet
Created February 1, 2018 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GregOnNet/5f4391af476cfd6bc8dd4b07c0216fc1 to your computer and use it in GitHub Desktop.
Save GregOnNet/5f4391af476cfd6bc8dd4b07c0216fc1 to your computer and use it in GitHub Desktop.
using typescript paths in @angular/cli projects
{
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@utilities/*": ["./app/utilities/*"]
},
"outDir": "../out-tsc/app",
"module": "es2015",
"types": []
},
"exclude": ["test.ts", "**/*.spec.ts"]
}
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@utilities/*": ["./src/app/utilities/*"]
},
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment