serialport-tool 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "serialport-tool",
3
+ "version": "1.0.0",
4
+ "description": "串口调试助手 Web 版 - 基于 Node.js + serialport,浏览器端操作串口",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "serialport-tool": "bin/cli.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "bin",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "scripts": {
17
+ "build": "tsup src/index.ts --format esm --target node18 --out-dir dist --clean --no-config && mkdir -p dist/public && cp src/public/index.html dist/public/index.html",
18
+ "start": "node --import tsx src/index.ts",
19
+ "dev": "node --import tsx --watch src/index.ts",
20
+ "test": "npx playwright test",
21
+ "test:ui": "npx playwright test --ui",
22
+ "test:headed": "npx playwright test --headed",
23
+ "prepublishOnly": "npm run build"
24
+ },
25
+ "keywords": [
26
+ "serial",
27
+ "serial-port",
28
+ "uart",
29
+ "debug",
30
+ "串口",
31
+ "serial-debug"
32
+ ],
33
+ "engines": {
34
+ "node": ">=18"
35
+ },
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/hbysgx/serialport-tool.git"
39
+ },
40
+ "homepage": "https://github.com/hbysgx/serialport-tool#readme",
41
+ "bugs": {
42
+ "url": "https://github.com/hbysgx/serialport-tool/issues"
43
+ },
44
+ "license": "MIT",
45
+ "dependencies": {
46
+ "serialport": "^13.0.0",
47
+ "ws": "^8.21.0"
48
+ },
49
+ "devDependencies": {
50
+ "@playwright/test": "^1.61.0",
51
+ "@types/node": "latest",
52
+ "@types/ws": "^8.18.1",
53
+ "tsup": "^8.5.1",
54
+ "tsx": "^4.0.0",
55
+ "typescript": "^6.0.3"
56
+ }
57
+ }