Welcome to the world of shared types
- Create a new type anywhere within the
/srcdirectory. This can be in an existing directory/file or a new one.
- If creating a new file, export everything from an
- Make sure that is is exported from
- Increment the pacakge version
- Push to remote and open a PR here
For example: If a new directory
experimentGroupis created. Use
/experimentGroup/index.tsto define and export your type/interface/etc. Then in
export * from './experimentGroup'.
On push to main, if the above was done correctly, a github action will trigger and publish the latest version of the package to be used.
Until future notice, always increment the "minor minor" or "bug fix" version of the package.
To publish a beta version of the package, increment the version in package.json, and then run
npm publish --tag beta. This will allow you to install the beta version of the package by running
npm install shypes@beta. Note: Users will need to run
npm install shypes@latest to get the latest stable version of the package.