Skip to content

Commit faf9863

Browse files
committed
Modernize
1 parent 1ee9b51 commit faf9863

1 file changed

Lines changed: 38 additions & 22 deletions

File tree

package.json

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,50 @@
11
{
22
"name": "ixixx",
33
"version": "2.2.3",
4-
"main": "dist/index.js",
4+
"description": "JavaScript implementation of trix text indexing",
5+
"license": "MIT",
56
"repository": "GMOD/ixixx-js",
6-
"author": "Colin",
7+
"type": "module",
8+
"types": "./dist/index.d.ts",
9+
"exports": {
10+
"import": {
11+
"import": "./esm/index.js"
12+
},
13+
"require": {
14+
"require": "./dist/index.js"
15+
}
16+
},
17+
"author": {
18+
"name": "Colin Diesh",
19+
"email": "colin.diesh@gmail.com",
20+
"url": "https://github.com/cmdcolin"
21+
},
722
"files": [
823
"dist",
924
"esm",
1025
"src"
1126
],
12-
"license": "MIT",
27+
"bin": {
28+
"ixixxjs": "./dist/bin.js"
29+
},
30+
"scripts": {
31+
"lint": "eslint --report-unused-disable-directives --max-warnings 0",
32+
"clean": "rimraf dist esm",
33+
"prebuild": "yarn clean",
34+
"build:esm": "tsc --outDir esm",
35+
"build:es5": "tsc --module commonjs --outDir dist",
36+
"build": "yarn build:esm && yarn build:es5",
37+
"postbuild:es5": "echo '{\"type\": \"commonjs\"}' > dist/package.json",
38+
"test": "vitest",
39+
"preversion": "yarn lint && yarn test --run && yarn build",
40+
"postversion": "git push --follow-tags"
41+
},
42+
"dependencies": {
43+
"command-exists": "^1.2.9",
44+
"external-sorting": "^1.3.1",
45+
"split2": "^4.1.0",
46+
"tmp": "^0.2.1"
47+
},
1348
"devDependencies": {
1449
"@eslint/js": "^9.8.0",
1550
"@types/command-exists": "^1.2.1",
@@ -24,26 +59,7 @@
2459
"typescript-eslint": "^8.0.1",
2560
"vitest": "^4.0.15"
2661
},
27-
"scripts": {
28-
"lint": "eslint --report-unused-disable-directives --max-warnings 0",
29-
"prebuild": "rimraf dist esm",
30-
"build:esm": "tsc --target es2018 --outDir esm",
31-
"build:es5": "tsc --target es2018 --module commonjs --outDir dist",
32-
"build": "npm run build:esm && npm run build:es5",
33-
"test": "vitest",
34-
"preversion": "npm run build",
35-
"postversion": "git push --follow-tags"
36-
},
37-
"bin": {
38-
"ixixxjs": "./dist/bin.js"
39-
},
4062
"publishConfig": {
4163
"access": "public"
42-
},
43-
"dependencies": {
44-
"command-exists": "^1.2.9",
45-
"external-sorting": "^1.3.1",
46-
"split2": "^4.1.0",
47-
"tmp": "^0.2.1"
4864
}
4965
}

0 commit comments

Comments
 (0)