1 | {
|
2 | "name": "@line/bot-sdk",
|
3 | "version": "9.4.1",
|
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 | "docs:deploy": "./scripts/deploy-docs.sh",
|
49 | "apidocs": "typedoc --excludePrivate --plugin typedoc-plugin-markdown --out docs/apidocs lib/index.ts",
|
50 | "release": "npm run build && npm publish --access public"
|
51 | },
|
52 | "repository": {
|
53 | "type": "git",
|
54 | "url": "git@github.com:line/line-bot-sdk-nodejs.git"
|
55 | },
|
56 | "keywords": [
|
57 | "node",
|
58 | "line",
|
59 | "sdk"
|
60 | ],
|
61 | "dependencies": {
|
62 | "@types/node": "^20.0.0"
|
63 | },
|
64 | "optionalDependencies": {
|
65 | "axios": "^1.7.4"
|
66 | },
|
67 | "devDependencies": {
|
68 | "@types/express": "5.0.0",
|
69 | "@types/finalhandler": "1.2.3",
|
70 | "@types/mocha": "10.0.9",
|
71 | "@vitest/coverage-v8": "^2.0.0",
|
72 | "express": "4.21.0",
|
73 | "finalhandler": "1.3.1",
|
74 | "husky": "9.1.6",
|
75 | "msw": "2.4.9",
|
76 | "prettier": "3.3.3",
|
77 | "ts-node": "10.9.2",
|
78 | "typedoc": "^0.26.6",
|
79 | "typedoc-plugin-markdown": "^4.2.6",
|
80 | "typescript": "^5.5.4",
|
81 | "vitepress": "^1.0.1",
|
82 | "vitest": "^2.0.0"
|
83 | },
|
84 | "husky": {
|
85 | "hooks": {
|
86 | "pre-commit": "npm run format:check",
|
87 | "pre-push": "npm run format:check && npm run build && npm run test"
|
88 | }
|
89 | },
|
90 | "license": "Apache-2.0"
|
91 | }
|