How to make
npx polymath-worldavailable globally so anyone can run it.
If you don't have Node.js installed:
- Go to nodejs.org
- Download the LTS version (recommended)
- Run the installer — accept all defaults
- Restart your terminal
Verify the install:
node --version # should print v18.x.x or higher
npm --version # should print 9.x.x or higherIf you don't have one:
- Go to npmjs.com
- Click Sign Up
- Choose a username (this will appear on the package page)
- Verify your email
npm loginEnter your username, password, and email when prompted. You'll get a one-time password (OTP) sent to your email — paste it in.
Verify you're logged in:
npm whoami
# should print your npm usernameNavigate to the polymath-world project folder:
cd C:\Users\hitan\polymath-world
npm publishThat's it. The package is now live at:
https://www.npmjs.com/package/polymath-world
And anyone in the world can run:
npx polymath-worldWhen you make changes to the repo and want to publish a new version:
-
Update the version in
package.json(follow semver):- Bug fixes → bump patch:
0.1.0→0.1.1 - New features → bump minor:
0.1.0→0.2.0 - Breaking changes → bump major:
0.1.0→1.0.0
- Bug fixes → bump patch:
-
Commit your changes:
git add . git commit -m "release: v0.2.0 — [what changed]" git push
-
Publish to npm:
npm publish
After each release, tag it on GitHub so the version history is clear:
git tag v0.1.0
git push origin v0.1.0Then create a GitHub Release at:
https://github.com/Hi7anshu/polymath-vault/releases/new
- Node.js 18+ installed
-
npm logincompleted -
package.jsonversion is0.1.0 -
bin/setup.jshas#!/usr/bin/env nodeat the top -
README.mdis polished (this is what people see on npmjs.com) - Run
node bin/setup.jslocally to confirm the CLI works -
npm publish --dry-runto preview what gets published without actually publishing
Only the files listed in package.json under "files" are included in the npm package:
"files": [
"bin/",
"templates/",
"skills/",
"docs/"
]The .claude/ settings, .gitignore, and README.md are automatically included by npm regardless.