- Add the new icon file(s) under the correct folder under
assets
- Add the icon name in the correct array in
src/IconLists
. - Run
npm run svgr
to generate the underlying icon components. - Run
npm run generate
to regenerate the icon components with added logic. The new icon will be included in the correct iconset and the corresponding index. - Update package.json to a new minor version
- Run
npm run build
to remove possible old dist folder and generate a new dist folder - Publish newly generated dist folder with
npm publish ./dist
The icon components are built by the createComponents.js
script, so making changes to the component structure is done there. Make necessary adjustments to the component template found in the script, run npm run generate
, check the generated components for any errors or warnings and finally build and publish as a major version upgrade.
IMPORTANT!
- Run
npm run build
to make sure to generate new dist folder, and - publish the
dist
folder instead of the root withnpm publish ./dist
See README.md for information of how semantic versioning is applied.
The default export warning during build is a known issue. It is due to the fact that SVGR CLI doesn't support named exports option unlike the regular version, and due to requirements of the library, we currently have to use the CLI. It seems to have no effect in regards of using the library.