PATH:
opt
/
bitninja-dispatcher
/
node_modules
/
libphonenumber-js
/
runnable
import metadata from '../metadata.min.json' assert { type: 'json' } import fs from 'fs' const countryCodes = Object.keys(metadata.countries) fs.writeFileSync( './types.d.ts', fs.readFileSync('./types.d.ts', 'utf-8').replace( /export type CountryCode = .*;/, `export type CountryCode = ${countryCodes.map(_ => `'${_}'`).join(' | ')};` ), 'utf-8' )
[-] generate.js
[edit]
[+]
..
[-] metadata-update-and-release.js
[edit]
[-] create-commonjs-package-json.js
[edit]
[+]
modules
[-] metadata-branch.js
[edit]
[-] metadata-update-and-push-and-pull-request.js
[edit]
[-] metadata-update-and-push.js
[edit]
[-] download.js
[edit]
[-] json-to-js.js
[edit]
[-] generate-country-codes.js
[edit]