|
1 | 1 | { |
2 | 2 | "name": "ixixx", |
3 | 3 | "version": "2.2.3", |
4 | | - "main": "dist/index.js", |
| 4 | + "description": "JavaScript implementation of trix text indexing", |
| 5 | + "license": "MIT", |
5 | 6 | "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 | + }, |
7 | 22 | "files": [ |
8 | 23 | "dist", |
9 | 24 | "esm", |
10 | 25 | "src" |
11 | 26 | ], |
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 | + }, |
13 | 48 | "devDependencies": { |
14 | 49 | "@eslint/js": "^9.8.0", |
15 | 50 | "@types/command-exists": "^1.2.1", |
|
24 | 59 | "typescript-eslint": "^8.0.1", |
25 | 60 | "vitest": "^4.0.15" |
26 | 61 | }, |
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 | | - }, |
40 | 62 | "publishConfig": { |
41 | 63 | "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" |
48 | 64 | } |
49 | 65 | } |
0 commit comments