Skip to content

Commit 803c86f

Browse files
committed
Fix package.json
1 parent ada2826 commit 803c86f

File tree

1 file changed

+45
-13
lines changed

1 file changed

+45
-13
lines changed

package.json

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,59 @@
44
"author": "Roger Qiu",
55
"description": "Python-like JavaScript Logger",
66
"license": "Apache-2.0",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/MatrixAI/js-logger.git"
10+
},
711
"type": "module",
8-
"bin": {
9-
"js-logger": "./src/bin/cli.tsx",
10-
"js-logger-simple": "./src/bin/simple-cli.ts"
12+
"exports": {
13+
"./package.json": "./package.json",
14+
".": {
15+
"types": "./dist/index.d.ts",
16+
"import": "./dist/index.js"
17+
},
18+
"./*.js": {
19+
"types": "./dist/*.d.ts",
20+
"import": "./dist/*.js"
21+
},
22+
"./*": "./dist/*"
23+
},
24+
"imports": {
25+
"#*": "./dist/*"
1126
},
1227
"scripts": {
1328
"prepare": "tsc -p ./tsconfig.build.json",
1429
"build": "shx rm -rf ./dist && tsc -p ./tsconfig.build.json",
15-
"start": "npx ts-node src/bin/cli.tsx",
16-
"start:simple": "npx ts-node src/bin/simple-cli.ts",
30+
"postversion": "npm install --package-lock-only --ignore-scripts --silent",
31+
"tsx": "tsx",
1732
"test": "node ./scripts/test.mjs",
1833
"lint": "eslint '{src,tests,scripts,benches}/**/*.{js,mjs,ts,mts,jsx,tsx}'",
1934
"lintfix": "eslint '{src,tests,scripts,benches}/**/*.{js,mjs,ts,mts,jsx,tsx}' --fix",
20-
"docs": "shx rm -rf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src"
21-
},
22-
"dependencies": {
23-
"ink": "^5.1.0",
24-
"typescript": "^5.8.2"
35+
"lint-shell": "find ./src ./tests ./scripts -type f -regextype posix-extended -regex '.*\\.(sh)' -exec shellcheck {} +",
36+
"docs": "shx rm -rf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src",
37+
"bench": "tsc -p ./tsconfig.build.json && shx rm -rf ./benches/results && tsx ./benches/index.ts"
2538
},
2639
"devDependencies": {
27-
"@types/node": "^22.13.10",
28-
"tsx": "^4.19.3"
40+
"@swc/core": "1.3.82",
41+
"@swc/jest": "^0.2.29",
42+
"@types/jest": "^29.5.2",
43+
"@types/node": "^20.5.7",
44+
"@typescript-eslint/eslint-plugin": "^5.61.0",
45+
"@typescript-eslint/parser": "^5.61.0",
46+
"benny": "^3.7.1",
47+
"common-tags": "^1.8.2",
48+
"eslint": "^8.44.0",
49+
"eslint-config-prettier": "^8.8.0",
50+
"eslint-plugin-import": "^2.27.5",
51+
"eslint-plugin-prettier": "^5.0.0-alpha.2",
52+
"jest": "^29.6.2",
53+
"jest-extended": "^4.0.0",
54+
"jest-junit": "^16.0.0",
55+
"prettier": "^3.0.0",
56+
"shx": "^0.3.4",
57+
"systeminformation": "^5.18.5",
58+
"tsx": "^3.12.7",
59+
"typedoc": "^0.24.8",
60+
"typescript": "^5.1.6"
2961
}
30-
}
62+
}

0 commit comments

Comments
 (0)