StrongVault shared library
Use this library to reuse code in admin
, client
, server
and web
.
Usage
After changes in shared
folder, run
yarn prepack
to export changes to shared/lib
.
To import shared
to project, check if package.json
contains
"dependencies": {
...
"shared": "file:../shared/lib",
...
}
In case it is missing add it and run
yarn install
Otherwise run
yarn upgrade shared
to update changes.
Import example:
import {EVENT_ACTION} from 'shared'
import type {Event} from 'shared'