0.1.14 • Published 1 year ago

@perp/common v0.1.14

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
1 year ago

common

Run all tests

  1. Add .env to the local dir
L2_WEB3_ENDPOINT=
SUBGRAPH_ENDPOINTS=
SUBGRAPH_NAME=
  1. Run
npm run clean | npm run build | npm run test

Publish NPM package

  1. 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
  1. 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