Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
115 lines (115 loc) · 2.89 KB
/
Copy pathpackage.json
File metadata and controls
115 lines (115 loc) · 2.89 KB
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
109
110
111
112
113
114
115
{
"name": "@shelf/jest-postgres",
"version": "1.2.3",
"private": false,
"description": "Run Jest tests with a local PostgreSQL instance",
"keywords": [
"jest",
"jest environment",
"jest preset",
"postgres",
"postgres local"
],
"repository": "shelfio/jest-postgres",
"license": "MIT",
"author": {
"name": "Dmytro Harazdovskyi",
"email": "dmytro.harazdovskyi@shelf.io",
"url": "shelf.io"
},
"type": "module",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.cjs",
"require": "./lib/index.cjs",
"default": "./lib/index.cjs"
},
"./jest-preset": {
"types": "./lib/index.d.ts",
"import": "./lib/index.cjs",
"require": "./lib/index.cjs",
"default": "./lib/index.cjs"
},
"./package.json": "./package.json"
},
"main": "./lib/index.cjs",
"files": [
"jest-preset.cjs",
"lib/"
],
"scripts": {
"build": "rm -rf lib/ && pnpm build:types && esbuild src/index.ts src/setup.ts src/teardown.ts --bundle --platform=node --format=cjs --packages=external --outdir=lib --out-extension:.js=.cjs",
"build:types": "tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib",
"find-deadcode": "knip --no-progress",
"lint": "oxfmt && eslint . --ext .js,.ts,.json --fix",
"lint:ci": "oxfmt --check && eslint . --ext .js,.ts,.json",
"prepack": "pnpm build",
"prepare": "husky",
"test": "jest",
"type-check": "tsc --noEmit",
"type-check:watch": "pnpm type-check -- --watch"
},
"packageManager": "pnpm@12.6.0",
"jest": {
"preset": "./jest-preset.cjs",
"transform": {
"^.+\\.(t|j)sx?$": [
"@swc/jest",
{
"jsc": {
"parser": {
"syntax": "typescript"
}
},
"sourceMaps": false
}
]
}
},
"dependencies": {
"cwd": "0.10.0",
"debug": "4.3.4",
"postgres": "3.4.3"
},
"devDependencies": {
"@shelf/eslint-config": "9.0.0",
"@shelf/tsconfig": "0.2.0",
"@swc/core": "1.15.47",
"@swc/jest": "0.2.39",
"@types/cwd": "0.10.2",
"@types/debug": "4.1.12",
"@types/jest": "30.0.0",
"@types/node": "25",
"@typescript/native": "npm:typescript@7.0.2",
"esbuild": "0.28.2",
"eslint": "10.1.0",
"husky": "9.1.7",
"jest": "30.3.0",
"knex": "3.2.6",
"knip": "6.38.0",
"lint-staged": "16.4.0",
"oxfmt": "0.70.0",
"pg": "8.20.0",
"typescript": "npm:@typescript/typescript6@6.0.2"
},
"peerDependencies": {
"jest-environment-node": "27.x.x || 28.x || 29.x",
"pg": "*"
},
"engines": {
"node": ">=18"
},
"publishConfig": {
"access": "public"
},
"lint-staged": {
"*.{html,md,yml}": [
"oxfmt --no-error-on-unmatched-pattern"
],
"*.{ts,js,json}": [
"eslint --fix",
"oxfmt --no-error-on-unmatched-pattern"
]
}
}