feat(package): modernize package metadata, exports, and typed country dataset coverage

This commit is contained in:
2026-05-01 22:10:01 +00:00
parent bea77e8672
commit 1aba288d2b
14 changed files with 7650 additions and 5000 deletions
+15 -12
View File
@@ -3,30 +3,31 @@
"version": "1.0.4",
"private": false,
"description": "A package for internationalization (i18n) that provides utilities for dealing with international phone number prefixes, country codes, and names.",
"exports": {
".": "./dist_ts/index.js"
},
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
"type": "module",
"author": "Task Venture Capital GmbH",
"author": "Task Venture Capital GmbH <hello@task.vc>",
"license": "MIT",
"scripts": {
"test": "(tstest test/ --web)",
"build": "(tsbuild --web --allowimplicitany)",
"buildDocs": "(tsdoc)"
"test": "tstest test/",
"build": "tsbuild --web",
"buildDocs": "tsdoc"
},
"devDependencies": {
"@git.zone/tsbuild": "^2.1.25",
"@git.zone/tsbundle": "^2.0.5",
"@git.zone/tsrun": "^1.2.46",
"@git.zone/tstest": "^1.0.44",
"@push.rocks/tapbundle": "^5.0.15",
"@types/node": "^20.8.7"
"@git.zone/tsbuild": "^4.4.0",
"@git.zone/tsdoc": "^2.0.3",
"@git.zone/tstest": "^3.6.3",
"@types/node": "^25.6.0"
},
"repository": {
"type": "git",
"url": "https://code.foss.global/push.rocks/smarti18n.git"
},
"bugs": {
"url": "https://gitlab.com/push.rocks/smarti18n/issues"
"url": "https://code.foss.global/push.rocks/smarti18n/issues"
},
"homepage": "https://code.foss.global/push.rocks/smarti18n",
"browserslist": [
@@ -41,6 +42,8 @@
"dist_ts_web/**/*",
"assets/**/*",
"cli.js",
".smartconfig.json",
"license",
"npmextra.json",
"readme.md"
],
@@ -56,4 +59,4 @@
"translation utilities",
"globalization"
]
}
}