fix(license): correct JavaScript package license and metadata

- Change license from ISC to Apache-2.0 OR MIT
- Add files, engines, and exports fields
- Ensure LICENSE.md is included in npm package
This commit is contained in:
Alice39s 2026-06-29 23:39:13 +09:00
parent 8f444c240f
commit 6223563845
No known key found for this signature in database
GPG Key ID: 0E0AA11C3939DDDD
1 changed files with 19 additions and 1 deletions

View File

@ -31,11 +31,29 @@
"ipv6-search"
],
"author": "lionsoul2014",
"license": "ISC",
"license": "Apache-2.0 OR MIT",
"bugs": {
"url": "https://github.com/lionsoul2014/ip2region/issues"
},
"homepage": "https://github.com/lionsoul2014/ip2region#readme",
"files": [
"index.js",
"index.d.ts",
"searcher.js",
"util.js",
"README.md",
"README_zh.md",
"LICENSE.md"
],
"engines": {
"node": ">=14.0.0"
},
"exports": {
".": {
"types": "./index.d.ts",
"default": "./index.js"
}
},
"devDependencies": {
"@types/jest": "^30.0.0",
"argparse": "^2.0.1",