- 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
}
- 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
}
Make sure you are logged in, use the spindle user within KeyHub to authenticate:
npm login
Bump 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 push
Install the new version within the consuming project:
npm i -D typescript-config-voys@latest