is-language-code 5.1.3 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "is-language-code",
3
- "version": "5.1.3",
3
+ "version": "5.2.1",
4
4
  "description": "Is given string a language code (as per IANA)",
5
5
  "keywords": [
6
6
  "check",
@@ -40,43 +40,39 @@
40
40
  },
41
41
  "types": "types/index.d.ts",
42
42
  "scripts": {
43
- "build": "node '../../ops/scripts/esbuild.js' && npm run dts",
44
- "cjs-off": "exit 0",
45
- "cjs-on": "exit 0",
46
- "dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
43
+ "build": "node ../../ops/scripts/esbuild.js && npm run dts",
44
+ "coverage": "c8 uvu test",
45
+ "dev": "node ../../ops/scripts/esbuild.js --dev && npm run dts",
47
46
  "devtest": "c8 npm run unit && npm run examples && npm run lint",
48
- "dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --log-level 'silent'",
47
+ "dts": "rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts",
49
48
  "examples": "node '../../ops/scripts/run-examples.js'",
50
- "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
51
- "letspublish": "npm publish --provenance || :",
52
- "lint": "eslint . --fix --concurrency=auto --cache",
49
+ "lect": "node '../../ops/lect/lect.js'",
50
+ "lect:check": "node '../../ops/lect/lect.js' --check",
51
+ "lint": "biome lint --error-on-warnings . && npm run typecheck",
52
+ "lint:fix": "biome lint --write --error-on-warnings . && npm run typecheck",
53
53
  "perf": "node perf/check.js",
54
54
  "prep": "echo 'ready'",
55
- "prettier": "prettier",
56
- "prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --log-level 'silent'",
57
- "pretest": "npm run lect && npm run build",
55
+ "prettier": "biome format",
56
+ "prettier:format": "biome format --write .",
57
+ "pretest": "npm run lect:check && npm run build",
58
58
  "test": "npm run devtest",
59
+ "typecheck": "tsc --noEmit --pretty false --project tsconfig.json",
59
60
  "unit": "uvu test"
60
61
  },
61
- "engines": {
62
- "node": ">=14.18.0"
63
- },
64
62
  "c8": {
63
+ "all": true,
65
64
  "check-coverage": true,
66
- "exclude": [
67
- "**/test/**/*.*"
68
- ],
65
+ "exclude": ["**/test/**/*.*"],
66
+ "include": ["dist/*.esm.js"],
69
67
  "lines": 100
70
68
  },
71
69
  "lect": {
72
70
  "licence": {
73
- "extras": [
74
- ""
75
- ]
71
+ "extras": [""]
76
72
  }
77
73
  },
78
- "dependencies": {
79
- "codsen-utils": "^1.7.3"
74
+ "engines": {
75
+ "node": ">=18.20.8"
80
76
  },
81
77
  "publishConfig": {
82
78
  "registry": "https://registry.npmjs.org/"