UNPKG

2.43 kBJSONView Raw
1{
2 "name": "@line/bot-sdk",
3 "version": "9.5.3",
4 "description": "Node.js SDK for LINE Messaging API",
5 "type": "module",
6 "engines": {
7 "node": ">=18"
8 },
9 "main": "./dist/cjs/index.js",
10 "types": "./dist/index.d.ts",
11 "module": "./dist/index.js",
12 "exports": {
13 ".": {
14 "import": {
15 "types": "./dist/index.d.ts",
16 "default": "./dist/index.js"
17 },
18 "require": {
19 "types": "./dist/cjs/index.d.ts",
20 "default": "./dist/cjs/index.js"
21 },
22 "default": "./dist/cjs/index.js"
23 },
24 "./package.json": "./package.json"
25 },
26 "sideEffects": false,
27 "files": [
28 "dist",
29 "lib",
30 "!lib/**/tests",
31 "!dist/*/tests",
32 "!dist/cjs/*/tests"
33 ],
34 "scripts": {
35 "pretest": "npm run format && npm run build",
36 "test": "vitest run",
37 "covtest": "vitest run --coverage",
38 "prettier": "prettier \"{lib,test}/**/*.ts\"",
39 "format": "npm run prettier -- --write",
40 "format:check": "npm run prettier -- -l",
41 "clean": "rm -rf dist/*",
42 "copy-rollup": "node ./scripts/workaround-for-rollup.mjs",
43 "prebuild": "npm run format:check && npm run clean && npm run copy-rollup",
44 "build": "tsc -p . && tsc -p ./tsconfig.cjs.json && echo \"{\\\"type\\\": \\\"commonjs\\\"}\" > dist/cjs/package.json",
45 "docs": "vitepress dev docs",
46 "docs:build": "vitepress build docs",
47 "docs:preview": "vitepress preview docs",
48 "apidocs": "typedoc --excludePrivate --plugin typedoc-plugin-markdown --out docs/apidocs lib/index.ts",
49 "release": "npm run build && npm publish --access public"
50 },
51 "repository": {
52 "type": "git",
53 "url": "git@github.com:line/line-bot-sdk-nodejs.git"
54 },
55 "keywords": [
56 "node",
57 "line",
58 "sdk"
59 ],
60 "dependencies": {
61 "@types/node": "^22.0.0"
62 },
63 "optionalDependencies": {
64 "axios": "^1.7.4"
65 },
66 "devDependencies": {
67 "@types/express": "5.0.0",
68 "@types/finalhandler": "1.2.3",
69 "@vitest/coverage-v8": "^3.0.0",
70 "express": "4.21.2",
71 "finalhandler": "1.3.1",
72 "husky": "9.1.7",
73 "msw": "2.7.0",
74 "prettier": "3.4.2",
75 "typedoc": "^0.27.1",
76 "typedoc-plugin-markdown": "^4.3.0",
77 "typescript": "^5.5.4",
78 "vitepress": "^1.0.1",
79 "vitest": "^3.0.0"
80 },
81 "husky": {
82 "hooks": {
83 "pre-commit": "npm run format:check",
84 "pre-push": "npm run format:check && npm run build && npm run test"
85 }
86 },
87 "license": "Apache-2.0"
88}