A member of the @smogon org on npm should update the @smogon/sets package monthly after usage stats are published, though they may also create patch releases on demand. After a new sets package has been released:
- If you haven't done so already:
- clone
smogon/pokemon-showdowninto apokemon-showdowndirectory which sits in the same parent directory as your clone ofsmogon/damage-calc. - run
npm installandnode build
- clone
- Ensure your
pokemon-showdownanddamage-calcbranches are fully up to date, make sure to have runnode buildin thepokemon-showdowndirectory after syncing. cd import/and runncu -uto update to the latest@smogon/setspackage (or manually update the versionpackage.json).npm installfrom withinimport/, then runnpm run compile.- Run
./ps-import(ornode ps-importif you're on a Windows OS) to pull in tiers frompokemon-showdown - Run
./import(ornode importif you're on a Windows OS) - Run
node buildin the top level and open up the calc UI in the browser and sanity check that the sets generated in../src/js/datalook OK (viewing them in your text editor is also recommend). - Commit the changes and push them to master. Only JSON files in
import/(alwayspackage.json, sometimessrc/tiers.json) should have changes as well as the files insrc/js/data.
You must be part of the @smogon org on npm to be able to release this package.
- Ensure your branch is fully up to date
- Run
npm testto ensurecalc/is in a good state. - Update the the
versionfield incalc/package.jsonto correctly reflect the new version according to the guidance around semantic versioning. - Be very sure everything is correct - you can not unpublish a version.
- Run
npm publish --access publicfrom within thecalc/subdirectory.