1 |
|
2 |
|
3 |
|
4 |
|
5 | import type { PackageJsonWechaty } from './config'
|
6 |
|
7 | export const GIT_COMMIT_HASH: string = '6d6390eee166420349545a91eae18c634ae70574'
|
8 | export const packageJson: PackageJsonWechaty = {
|
9 | "name": "wechaty",
|
10 | "version": "1.13.26",
|
11 | "description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
12 | "type": "module",
|
13 | "exports": {
|
14 | ".": {
|
15 | "import": "./dist/esm/src/mods/mod.js",
|
16 | "require": "./dist/cjs/src/mods/mod.js"
|
17 | },
|
18 | "./impls": {
|
19 | "import": "./dist/esm/src/mods/impls.js",
|
20 | "require": "./dist/cjs/src/mods/impls.js"
|
21 | },
|
22 | "./users": {
|
23 | "import": "./dist/esm/src/mods/users.js",
|
24 | "require": "./dist/cjs/src/mods/users.js"
|
25 | }
|
26 | },
|
27 | "typesVersions": {
|
28 | "*": {
|
29 | "users": [
|
30 | "./dist/esm/src/mods/users.d.ts"
|
31 | ],
|
32 | "impls": [
|
33 | "./dist/esm/src/mods/impls.d.ts"
|
34 | ]
|
35 | }
|
36 | },
|
37 | "types": "./dist/esm/src/mods/mod.d.ts",
|
38 | "engines": {
|
39 | "node": ">=16",
|
40 | "npm": ">=7"
|
41 | },
|
42 | "wechaty": {
|
43 | "DEFAULT_PORT": 8080,
|
44 | "DEFAULT_PROTOCOL": "io|0.0.1",
|
45 | "DEFAULT_APIHOST": "api.chatie.io"
|
46 | },
|
47 | "scripts": {
|
48 | "build": "tsc && tsc -p tsconfig.cjs.json",
|
49 | "changelog": "docker run -it --rm -e CHANGELOG_GITHUB_TOKEN -v \"$(pwd)\":/usr/local/src/your-app ferrarimarco/github-changelog-generator -u wechaty -p wechaty && sed -i'.bak' /greenkeeper/d CHANGELOG.md && sed -i'.bak' /Snyk/d CHANGELOG.md && sed -i'.bak' '/An in-range update of/d' CHANGELOG.md && node --no-warnings --loader=ts-node/esm scripts/sort-contributiveness.ts < CHANGELOG.md > CHANGELOG.new.md 2>/dev/null && cat CHANGELOG.md >> CHANGELOG.new.md && mv CHANGELOG.new.md CHANGELOG.md",
|
50 | "clean": "shx rm -fr dist/*",
|
51 | "coverage": "nyc report --reporter=lcov",
|
52 | "cli": "node --no-warnings --loader ts-node/esm bin/cli.ts",
|
53 | "demo": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" node examples/ding-dong-bot.ts",
|
54 | "dist": "npm-run-all clean build dist:commonjs",
|
55 | "dist:commonjs": "jq -n \"{ type: \\\"commonjs\\\" }\" > dist/cjs/package.json",
|
56 | "docs": "bash -x scripts/generate-docs.sh",
|
57 | "doctor": "node --no-warnings --loader=ts-node/esm bin/doctor.ts",
|
58 | "io-client": "node --no-warnings --loader=ts-node/esm bin/io-client.ts",
|
59 | "lint:es": "eslint --ignore-pattern node_modules/ --ignore-pattern fixtures/ \"{bin,examples,src,scripts,tests}/**/*.ts\"",
|
60 | "lint:md": "markdownlint README.md",
|
61 | "lint:sh": "bash -n bin/*.sh",
|
62 | "lint:ts": "tsc --isolatedModules --noEmit",
|
63 | "lint": "npm-run-all lint:es lint:ts lint:sh lint:md",
|
64 | "puppet-install": "node --no-warnings --loader=ts-node/esm bin/puppet-install.ts",
|
65 | "sloc": "sloc bin examples scripts src tests --details --format cli-table --keys total,source,comment && sloc bin examples scripts src tests",
|
66 | "start": "npm run demo",
|
67 | "test:pack": "bash -x scripts/npm-pack-testing.sh",
|
68 | "test:shell": "shellcheck bin/*.sh scripts/*.sh",
|
69 | "test:unit": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" TAP_TIMEOUT=600 tap \"src/**/*.spec.ts\" \"tests/**/*.spec.ts\"",
|
70 | "test": "npm run lint && nyc npm run test:unit",
|
71 | "typedoc": "bash scripts/typedoc.sh"
|
72 | },
|
73 | "repository": {
|
74 | "type": "git",
|
75 | "url": "git+https://github.com/wechaty/wechaty.git"
|
76 | },
|
77 | "bin": {
|
78 | "wechaty": "dist/esm/bin/cli.js",
|
79 | "wechaty-doctor": "dist/esm/bin/doctor.js",
|
80 | "wechaty-io-client": "dist/esm/bin/io-client.js",
|
81 | "wechaty-puppet-install": "dist/esm/bin/puppet-install.js",
|
82 | "wechaty-version": "dist/esm/bin/version.js"
|
83 | },
|
84 | "keywords": [
|
85 | "ai",
|
86 | "bot",
|
87 | "chatbot",
|
88 | "chatie",
|
89 | "conversational",
|
90 | "framework",
|
91 | "robotics",
|
92 | "robot",
|
93 | "rpa",
|
94 | "sdk",
|
95 | "wechat",
|
96 | "wecom",
|
97 | "wxwork",
|
98 | "lark",
|
99 | "TikTok",
|
100 | "weixin",
|
101 | "whatsapp",
|
102 | "微信"
|
103 | ],
|
104 | "author": {
|
105 | "name": "Huan LI (李卓桓)",
|
106 | "email": "zixia@zixia.net",
|
107 | "url": "https://linkedin.com/in/zixia/"
|
108 | },
|
109 | "license": "Apache-2.0",
|
110 | "bugs": {
|
111 | "url": "https://github.com/wechaty/wechaty/issues"
|
112 | },
|
113 | "funding": {
|
114 | "type": "opencollective",
|
115 | "url": "https://opencollective.com/wechaty"
|
116 | },
|
117 | "homepage": "https://github.com/wechaty/",
|
118 | "dependencies": {
|
119 | "clone-class": "^1.1.1",
|
120 | "cmd-ts": "^0.9.0",
|
121 | "cockatiel": "^2.0.2",
|
122 | "cross-spawn": "^7.0.3",
|
123 | "dotenv": "^10.0.0",
|
124 | "file-box": "^1.4.15",
|
125 | "fp-ts": "^2.11.5",
|
126 | "gerror": "^1.0.16",
|
127 | "get-port": "^6.0.0",
|
128 | "json-rpc-peer": "^0.17.0",
|
129 | "memory-card": "^1.1.2",
|
130 | "open-graph": "^0.2.6",
|
131 | "rx-queue": "^1.0.4",
|
132 | "state-switch": "^1.6.3",
|
133 | "uuid": "^8.3.2",
|
134 | "wechaty-puppet": "^1.13.13",
|
135 | "wechaty-puppet-service": "^1.11.2",
|
136 | "wechaty-puppet-wechat4u": "^1.11.1",
|
137 | "wechaty-token": "^1.1.1",
|
138 | "ws": "^8.4.0"
|
139 | },
|
140 | "devDependencies": {
|
141 | "@chatie/eslint-config": "^1.0.4",
|
142 | "@chatie/git-scripts": "^0.6.2",
|
143 | "@chatie/semver": "^0.4.7",
|
144 | "@chatie/tsconfig": "^4.6.2",
|
145 | "@swc/core": "^1.2.124",
|
146 | "@swc/helpers": "^0.3.2",
|
147 | "@types/cross-spawn": "^6.0.2",
|
148 | "@types/dotenv": "^8.2.0",
|
149 | "@types/glob": "^7.2.0",
|
150 | "@types/open-graph": "^0.2.2",
|
151 | "@types/qrcode-terminal": "^0.12.0",
|
152 | "@types/raven": "^2.5.4",
|
153 | "@types/uuid": "^8.3.3",
|
154 | "@types/ws": "^8.2.2",
|
155 | "coveralls": "^3.1.1",
|
156 | "glob": "^7.2.0",
|
157 | "jsdoc-to-markdown": "^7.1.0",
|
158 | "nyc": "^15.1.0",
|
159 | "qrcode-terminal": "^0.12.0",
|
160 | "raven": "^2.6.4",
|
161 | "regenerator-runtime": "^0.13.9",
|
162 | "sloc": "^0.2.1",
|
163 | "typed-emitter": "^1.5.0-from-event",
|
164 | "typedoc": "^1.0.0-dev.4 ",
|
165 | "wechaty-puppet-mock": "^1.10.2",
|
166 | "wechaty-puppet-padlocal": "^0.4.2"
|
167 | },
|
168 | "files": [
|
169 | "bin/",
|
170 | "dist/",
|
171 | "src/"
|
172 | ],
|
173 | "publishConfig": {
|
174 | "access": "public",
|
175 | "tag": "next"
|
176 | },
|
177 | "collective": {
|
178 | "type": "opencollective",
|
179 | "url": "https://opencollective.com/wechaty"
|
180 | },
|
181 | "git": {
|
182 | "scripts": {
|
183 | "pre-push": "npx git-scripts-pre-push"
|
184 | }
|
185 | }
|
186 | } as any
|