| .. | ||
| cmds | ||
| test-parity | ||
| build.js | ||
| changelog.js | ||
| config.js | ||
| depgraph.js | ||
| git.js | ||
| github.js | ||
| index.js | ||
| local.js | ||
| log.js | ||
| npm.js | ||
| README.md | ||
| utils.js | ||
Admin Tool
This tool is meant for admin tasks related to ethers.js.
Workflow
After a new series of changes have been made and tested:
- Run
npm run update-versionsto update and build all packages - Make any human-necessary changes to the automatically updated
CHANGELOG.md - Run
git add . - Run
git commit -S -m "Updated dist files." - Run
git push - Wait for TravisCI to complete running test cases
- Run
npm run publish-allto publish changed packages to NPM and tag GitHub
Update Dependency Graph: admin/cmds/update-depgraph
This is run as part of npm run bootstrap before running lerna bootstrap.
It recomputes the dependency graph and writes out the ordered
tsconfig.project.json
Update Versions: admin/cmds/update-versions
Run using the npm run update-versions, which also cleans, bootstraps and
rebuilds the project before running the script.
For each package that has changed from the version in NPM (the published tarballs are compared):
- Update the
versionin the package.json - Update the
src.ts/_version.ts(matches the package.json) - Updates the
tarballHashin the package.json - Compiles the TypeScript (which updates the
_version.jsand_version.d.js) - Lists all changed files (highlighting src.ts files)
Then:
- Generate the distribution files
- Update the
CHANGELOG.md
Publish: admin/cmds/publish
Run using npm run publish-all. This requires a password for the secure
local config and the OTP for NPM.
- Publish (in dependency order) changed files to NPM
- The
gitHeadis updated in only the NPM package.json - @TODO: Cut a release on GitHub including the relevant CHANGELOG entry