Skip to content

prefabs-tech/stateful

Repository files navigation

@prefabs.tech/state-machine

Packages

Installation & Usage

Install dependencies

Install dependencies recursively with this command

make install

Build all packages

make build

Lint code

make lint

Typecheck code

make typecheck

Test

make test

Developing locally & testing

You can test these libraries locally without releasing using the pnpm link command. This allows your application to use the local version of the library instead of the published one. More on pnpm link.

To link a library locally, run this command from the respective app directory:

pnpm link ./<path_to_libraries_monorepo>/packages/<library_name>

To unlink the library:

pnpm unlink ./<path_to_libraries_monorepo>/packages/<library_name>

Troubleshooting

  • Make sure that package.json and pnpm-lock.yml are synchronized.
  • You may need to restart your apps before link and unlink to see the changes.
  • All the libraries that defines or uses context has to be linked in order to link one libraries that use the context or defines it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •