wooorm / franc

Natural language detection

Home Page:https://wooorm.com/franc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to generate data.js in franc packages

vuongnv-0085 opened this issue · comments

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

I would try

npm run build-packages

Cf.

franc/package.json

Lines 44 to 52 in ee64d1f

"postinstall": "lerna bootstrap --no-ci",
"build-packages": "node script/build.js",
"build-workspace": "lerna run build",
"build-monorepo": "rimraf \"script/**/*.d.ts\" \"test/**/*.d.ts\" && tsc && type-coverage",
"build": "npm run build-packages && npm run build-workspace && npm run build-monorepo",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"test-api": "node --conditions development test/index.js",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
"test": "npm run build && npm run format && npm run test-coverage"

commented

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