@perp/common
v0.1.14
Published
Perpetual Protocol Curie (v2) backend common library
Downloads
35
Readme
common
Run all tests
- Add
.env
to the local dir
L2_WEB3_ENDPOINT=
SUBGRAPH_ENDPOINTS=
SUBGRAPH_NAME=
- Run
npm run clean | npm run build | npm run test
Publish NPM package
- Make sure
privateConstants
files won't be included
npm run clean
npm run build
# Following command should output nothing
npm pack --dry-run 2>&1 > /dev/null | grep privateConstants
npm run release
Using NPM >= v8.11.0
If your npm >= v8.11.0, running npm pack
packs almost no files in package. This is because npm follows .gitignore
in workspace directory and excludes the /build
directory. A workaround might be removing /build
from .gitignore
before run npm pack
, or using leagcy npm version.
https://github.com/npm/cli/issues/5001