-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
108 lines (108 loc) · 2.59 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"name": "@tidbcloud/serverless",
"version": "0.2.0",
"description": "TiDB Cloud Serverless Driver",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist"
],
"engines": {
"node": ">=16"
},
"type": "module",
"scripts": {
"clean": "rm -rf dist/",
"prebuild": "npm run clean",
"build": "tsup",
"lint": "eslint src/ integration-test/",
"pretest": "npm run build",
"test": "jest __tests__ --passWithNoTests",
"integrationTest": "npm run build && jest integration-test --passWithNoTests",
"version": "echo \"export const Version = '$npm_package_version'\" > src/version.ts",
"prepublishOnly": "npm run build"
},
"prettier": {
"semi": false,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 140,
"tabWidth": 2,
"bracketSpacing": true
},
"repository": {
"type": "git",
"url": "git+https://github.com/tidbcloud/serverless-js.git"
},
"author": "tidbcloud",
"license": "Apache-2.0",
"homepage": "https://github.com/tidbcloud/serverless-js#readme",
"devDependencies": {
"@types/jest": "^29.5.3",
"@types/node": "^20.4.9",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"dotenv": "^16.3.1",
"eslint": "^8.20.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.2",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.6.3",
"undici": "^5.26.2",
"tsup": "^7.1.0"
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-control-regex": "off",
"prettier/prettier": [
"error",
{},
{
"usePrettierrc": true
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
},
"root": true,
"env": {
"browser": true,
"node": true
}
},
"keywords": [
"TiDB",
"TiDB Cloud",
"serverless",
"MySQL",
"edge",
"Vercel",
"Cloudflare",
"Netlify",
"Bun",
"Deno",
"database",
"SQL"
]
}