typescript-config-voys
v1.0.6
Published
The typescript configuration for our frontend projects
Readme
Typescript configuration
Installation in another project
- Install Package:
npm i -D typescript-config-voys- Add to the tsconfig.json file of the consuming project:
{
"extends": "typescript-config-voys",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*", "./*"],
}
},
// ...rest of your tsconfig
}Development
- You can test this configuration in a consuming project by cloning this project and installing said local repository into the consuming project:
cd consuming-project
npm link ../typescript-config-voys- Add to the tsconfig.json of the consuming project:
{
"extends": "typescript-config-voys",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*", "./*"],
}
},
// ...rest of your tsconfig
}Publish a new version
Make sure you are logged in, use the spindle user within KeyHub to authenticate:
npm loginBump the version accordingly and publish it to the NPM registry, make sure to git push the new version as well:
npm version <major | minor | patch>
npm publish
git pushInstall the new version within the consuming project:
npm i -D typescript-config-voys@latest