-
Notifications
You must be signed in to change notification settings - Fork 36
/
package.json
104 lines (104 loc) · 2.67 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
{
"name": "@planetscale/database",
"version": "1.19.0",
"description": "A Fetch API-compatible PlanetScale database driver",
"files": [
"dist"
],
"engines": {
"node": ">=16"
},
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"import": "./dist/index.js",
"require": "./dist/cjs/index.js"
},
"prettier": {
"semi": false,
"trailingComma": "none",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": true
},
"scripts": {
"clean": "rm -rf dist/",
"prebuild": "npm run clean",
"build": "tsc && tsc --module commonjs --outDir dist/cjs",
"postbuild": "echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
"lint": "eslint src/ __tests__/",
"pretest": "npm run build",
"test": "jest",
"version": "echo \"export const Version = '$npm_package_version'\" > src/version.ts && git add src/version.ts && npm run build",
"prepublishOnly": "npm run build",
"postpublish": "npm publish --ignore-scripts --@planetscale:registry='https://npm.pkg.github.com'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/planetscale/database-js.git"
},
"keywords": [
"planetscale",
"database",
"mysql",
"vitess",
"serverless",
"vercel",
"lambda"
],
"author": "PlanetScale",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/planetscale/database-js/issues"
},
"homepage": "https://github.com/planetscale/database-js#readme",
"devDependencies": {
"@types/jest": "^29.5.3",
"@types/sqlstring": "^2.3.0",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.1",
"prettier": "^3.0.0",
"sqlstring": "^2.3.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"undici": "^5.8.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"
},
"root": true,
"env": {
"browser": true,
"node": true
}
}
}