-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
85 lines (85 loc) · 2.43 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"name": "isotolanguage",
"version": "1.3.1",
"description": "light and fast module to convert iso country and languages codes into country names, there is no unnecessary stuff only the bare essentials",
"license": "ISC",
"type": "module",
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"unpkg": "lib/browser/isoToLanguage.js",
"jsdelivr": "lib/browser/isoToLanguage.js",
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": {
"default": "./lib/index.cjs",
"types": "./lib/index.d.cts"
},
"import": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
},
"browser": "./lib/browser/isoToLanguage.js"
}
},
"keywords": [
"iso",
"language",
"country",
"country code",
"locale format",
"IETF",
"ISO 3166-1",
"language tag"
],
"files": ["lib/", "tests/", "*.json", ".gitignore", "LICENSE", "*.md"],
"author": "Erik Golinelli <https://github.com/erikyo>",
"repository": {
"type": "git",
"url": "https://github.com/wp-blocks/isotolanguage.git"
},
"bugs": {
"url": "https://github.com/wp-blocks/isotolanguage/issues"
},
"sideEffects": false,
"devDependencies": {
"@types/node": "^20.13.0",
"@vitest/coverage-v8": "^1.6.0",
"concurrently": "^8.2.2",
"esbuild": "^0.21.4",
"husky": "^9.0.11",
"tsup": "^8.0.2",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
},
"lint-staged": {
"tests/**/*.{ts}": ["npx @biomejs/biome check --apply tests"],
"src/**/*.{ts}": ["npx @biomejs/biome check --apply src", "tsc --build"]
},
"scripts": {
"prepare": "husky install",
"lint": "npx @biomejs/biome check --apply src tests/*.ts",
"clean": "node bin/clean.mjs",
"watch": "npx esbuild src/index.ts --outfile=lib/browser/isoToLanguage.js --global-name=isoToLanguage --allow-overwrite --watch --bundle --sourcemap",
"build": "pnpm run clean && concurrently pnpm:build-*",
"build-node": "tsup",
"build-dataset": "esbuild src/data/*.ts --outdir=lib/data/ --minify",
"build-browser": "esbuild src/index.ts --outfile=lib/browser/isoToLanguage.js --global-name=isoToLanguage --allow-overwrite --bundle --minify --sourcemap",
"test": "vitest --coverage"
},
"tsup": {
"skipNodeModulesBundle": true,
"dts": true,
"bundle": false,
"treeshake": true,
"minify": true,
"shims": true,
"cjsInterop": true,
"target": "node16",
"moduleName": "isoToLanguage",
"format": ["esm", "cjs"],
"tsconfig": "./tsconfig.json",
"entry": ["src/*.ts"],
"outDir": "lib"
}
}