The following documentation is for the maintainers of this repository.
This project uses PNPM, therefore, you must install PNPM:
To install the project, open a terminal at the root of the workspace and execute the following command:
pnpm installTo build it for development, from the root folder, run
pnpm devThis will build the project in development mode and link the binary locally. Once done, you will be able to run it from a terminal:
create-schemas [path_to_openapi_documents] -o [output-path]- Execute the command
pnpm devto have hot-reload of changes - Add breakpoints
- In VSCode use the launch settings
Debug Create-Schemas
This is a very basic and soon to be improved flow:
- Update package.json version
- Merge in main
- Create Release with a tag with the same version as package.json
From the project root, you have access to many commands, the main ones are:
Build the packages for development and link them to be called from the local terminal.
pnpm devBuild the packages for release.
pnpm buildBuild and release the packages inside ./packages
pnpm releaseLint the packages files.
pnpm lintIf you got linting error, most of the time, they can be fixed automatically using pnpm eslint-fix, if not, follow the report provided by pnpm lint.
Clean the packages (delete dist folders, clear caches, etc..) and reset monorepo installation (delete dist folders, clear caches, delete node_modules folders, etc..)
Recommended when switching branches.
pnpm reset