@perp/common
TypeScript icon, indicating that this package has built-in type declarations

0.1.14 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i @perp/common

Homepage

perp.com/

Weekly Downloads

1

Version

0.1.14

License

GPL-3.0-or-later

Unpacked Size

4.87 MB

Total Files

790

Last publish

Collaborators

  • miyachen
  • perp_dev
  • yurenju
  • wraecca
  • kimiwu
  • detoo
  • vinta