wooorm / franc

Natural language detection
https://wooorm.com/franc/
MIT License
4.12k stars 173 forks source link

How to generate data.js in franc packages #104

Closed vuongnv-0085 closed 2 years ago

vuongnv-0085 commented 2 years ago

Hi @wooorm, Thanks for create greate packages I have a question: How to generate https://github.com/wooorm/franc/blob/main/packages/franc/data.js file ? Can you tell me the way to do it ? Where the data base is also OK 🙇

Thanks

gaborcsardi commented 2 years ago

I would try

npm run build-packages

Cf. https://github.com/wooorm/franc/blob/ee64d1ffd9d83c3cc8a4cd76cfaa063d1bec24d6/package.json#L44-L52

wooorm commented 2 years ago

Yup, as Gábor explains, use the npm scripts!