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-showdown
into apokemon-showdown
directory which sits in the same parent directory as your clone ofsmogon/damage-calc
. - run
npm install
andnode build
- clone
- Ensure your
pokemon-showdown
anddamage-calc
branches are fully up to date, make sure to have runnode build
in thepokemon-showdown
directory after syncing. cd import/
and runncu -u
to update to the latest@smogon/sets
package (or manually update the versionpackage.json
).npm install
from withinimport/
, then runnpm run compile
.- Run
./ps-import
(ornode ps-import
if you're on a Windows OS) to pull in tiers frompokemon-showdown
- Run
./import
(ornode import
if you're on a Windows OS) - Run
node build
in the top level and open up the calc UI in the browser and sanity check that the sets generated in../src/js/data
look 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 test
to ensurecalc/
is in a good state. - Update the the
version
field incalc/package.json
to 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 public
from within thecalc/
subdirectory.