# Publish
# Versions
Set the same version number in all the following files.
ipychart/src/package.json
ipychart/_version.py
WARNING
This is a manual sync.
# Node
Build the Javascript files and publish the node package to npmjs.org (opens new window). For more info on how to proceed, see the official doc (opens new window).
# build Javascript extension
$ cd src
$ jlpm install
$ jlpm build
# test run to see what you will publish
# npm pack
# login npm if necessary
npm login
# publish npm package to npmjs.org - using ~/.npmrc
$ npm publish --access=public
# if you made a mistake you can unpublish in the first 24h
# Python
Publish the Python package to PyPI. For more info on how to proceed, see the official doc (opens new window).
# clear dist/ from previous bundles
rm -rf dist
# build Python package
$ pip install build twine
$ python -m build
$ python3 -m twine upload dist/*