Skip to content

Commit ca39ebf

Browse files
committed
fix: updates
1 parent a2a5d54 commit ca39ebf

File tree

14 files changed

+474
-712
lines changed

14 files changed

+474
-712
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib
2+
pnpm-lock.yaml

.gitignore

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
lib
2-
3-
.DS_Store
4-
.awcache
5-
.idea
6-
.manage_modules
7-
.rpt2_cache
8-
.vscode
1+
# NOTE: Don't modify this file. Place .gitignore files in relevant subdirectories.
92

10-
# Editor directories and files
11-
.idea
12-
*.suo
13-
*.ntvs*
14-
*.njsproj
15-
*.sln
3+
lib
164

175
# Logs
186
logs
@@ -70,6 +58,9 @@ web_modules/
7058
# Optional eslint cache
7159
.eslintcache
7260

61+
# Optional stylelint cache
62+
.stylelintcache
63+
7364
# Microbundle cache
7465
.rpt2_cache/
7566
.rts2_cache_cjs/
@@ -85,10 +76,12 @@ web_modules/
8576
# Yarn Integrity file
8677
.yarn-integrity
8778

88-
# dotenv environment variables file
79+
# dotenv environment variable files
8980
.env
90-
.env.test
91-
.env.production
81+
.env.development.local
82+
.env.test.local
83+
.env.production.local
84+
.env.local
9285

9386
# parcel-bundler cache (https://parceljs.org/)
9487
.cache
@@ -111,6 +104,13 @@ dist
111104
# vuepress build output
112105
.vuepress/dist
113106

107+
# vuepress v2.x temp and cache directory
108+
.temp
109+
.cache
110+
111+
# Docusaurus cache and generated files
112+
.docusaurus
113+
114114
# Serverless directories
115115
.serverless/
116116

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# NOTE: Don't modify this file. Place .prettierignore files in relevant subdirectories.
2+
3+
lib
14
pnpm-lock.yaml

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ Exhibit A - Source Code Form License Notice
357357

358358
This Source Code Form is subject to the terms of the Mozilla Public
359359
License, v. 2.0. If a copy of the MPL was not distributed with this
360-
file, You can obtain one at http://mozilla.org/MPL/2.0/.
360+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
361361

362362
If it is not possible or desirable to put the notice in a particular
363363
file, then You may include the notice in a location (such as a LICENSE

knip.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
{
22
"$schema": "https://unpkg.com/knip@5/schema.json",
33
"entry": [
4-
"src/index.ts!",
4+
"eslint.config.mjs",
55
"src/**/*.spec.ts",
6-
"scripts/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}",
7-
"eslint.config.mjs"
6+
"src/**/example*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,vue}",
7+
"src/cli.ts!",
8+
"src/index.ts!",
9+
"src/types.ts",
10+
"{scripts,perf}/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}"
811
],
912
"ignoreDependencies": ["@commitlint/cli", "prettier", "syncpack"],
13+
"ignoreExportsUsedInFile": {
14+
"interface": true,
15+
"type": true
16+
},
1017
"lefthook": {
1118
"config": []
1219
}

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,43 @@
1212
"@commitlint/config-conventional": "19.2.2",
1313
"@escapace/pnpm-pack": "0.2.0",
1414
"@ls-lint/ls-lint": "2.2.3",
15-
"@types/node": "20.12.7",
1615
"@vitest/coverage-v8": "1.5.2",
1716
"eslint": "9.1.1",
18-
"eslint-config-escapace": "5.0.5",
17+
"eslint-config-escapace": "5.0.9",
18+
"esroll": "0.1.0",
1919
"knip": "5.11.0",
2020
"lefthook": "1.6.10",
2121
"prettier": "3.2.5",
2222
"prettier-config-escapace": "1.2.0",
2323
"syncpack": "12.3.2",
24-
"tsup": "8.0.2",
24+
"tsx": "4.9.1",
2525
"typescript": "5.4.5",
2626
"vitest": "1.5.2"
2727
},
2828
"engines": {
29-
"node": ">=20.12.0",
3029
"pnpm": ">=9.0.6"
3130
},
3231
"exports": {
3332
".": {
3433
"types": "./lib/types/index.d.ts",
35-
"import": "./lib/esm/index.mjs"
34+
"import": "./lib/neutral/index.js"
3635
}
3736
},
3837
"files": [
39-
"lib/esm",
38+
"lib/neutral",
4039
"lib/types"
4140
],
42-
"homepage": "https://github.com/escapace/accept-language-parser",
41+
"homepage": "https://github.com/escapace/accept-language-parser#readme",
4342
"license": "MPL-2.0",
44-
"module": "lib/esm/index.mjs",
43+
"module": "lib/neutral/index.js",
4544
"private": false,
4645
"publishConfig": {
4746
"access": "public",
4847
"provenance": true
4948
},
5049
"repository": "escapace/accept-language-parser",
5150
"scripts": {
52-
"build": "tsup",
51+
"build": "tsx scripts/build.ts",
5352
"lint": "ls-lint --config .ls-lint.yaml && knip && eslint",
5453
"pack": "pnpm-pack package --pack-destination lib",
5554
"prepare": "lefthook install",

0 commit comments

Comments
 (0)