primer / octicons

A scalable set of icons handcrafted with <3 by GitHub
https://primer.style/foundations/icons
MIT License
8.28k stars 826 forks source link

How to build @primer/octicons-react@9.0.0 #642

Closed varunmankal closed 2 years ago

varunmankal commented 3 years ago

I am trying to build and create NPM package of @primer/octicons-react@9.0.0 locally. I have cloned the repo and switched to 9.0.0 tag version of the code.

I ran the following steps to build it:

When I run npm run build it returns Error: Cannot find module '../../build/data.json' since there is no such file in the repo.

can I know how can I build this package locally ?

colebemis commented 2 years ago

You'll need to run the build script in the root directory as well:

npm install
npm run build
cd lib/octicons_react
npm install
npm run build