0.1.14 • Published 3 years ago
@perp/common v0.1.14
common
Run all tests
- Add
.envto the local dir
L2_WEB3_ENDPOINT=
SUBGRAPH_ENDPOINTS=
SUBGRAPH_NAME=- Run
npm run clean | npm run build | npm run testPublish NPM package
- Make sure
privateConstantsfiles won't be included
npm run clean
npm run build
# Following command should output nothing
npm pack --dry-run 2>&1 > /dev/null | grep privateConstantsnpm 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.