Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
105 lines (105 loc) · 3.3 KB
/
Copy pathpackage.json
File metadata and controls
105 lines (105 loc) · 3.3 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
{
"name": "@koa/is-json",
"version": "1.0.0",
"description": "Check if a koa body should be interpreted as JSON",
"keywords": [
"helpers",
"is-json",
"json",
"koa",
"utils"
],
"homepage": "https://github.com/koajs/is-json#readme",
"bugs": {
"url": "https://github.com/koajs/is-json/issues"
},
"license": "MIT",
"author": {
"name": "Jonathan Ong",
"email": "me@jongleberry.com",
"url": "http://jongleberry.com",
"twitter": "https://twitter.com/jongleberry"
},
"contributors": [
{
"name": "Haoxin",
"email": "haoxinst@gmail.com",
"url": "https://medium.com/@haoxin",
"twitter": "https://twitter.com/haoxins"
},
{
"name": "Imed Jaberi",
"email": "imed_jebari@hotmail.fr",
"url": "https://github.com/3imed-jaberi",
"twitter": "https://twitter.com/3imed_jaberi"
}
],
"repository": {
"type": "git",
"url": "git+https://github.com/koajs/is-json.git"
},
"files": [
"dist",
"LICENSE",
"README.md"
],
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"scripts": {
"prepare": "simple-git-hooks",
"lint": "oxlint --type-aware",
"lint:fix": "oxlint --type-aware --fix",
"format": "oxfmt",
"format:check": "oxfmt --check",
"prebuild": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
"build": "tsc --ignoreConfig --target esnext --skipLibCheck --types node --strict --erasableSyntaxOnly --verbatimModuleSyntax --noEmitOnError --rootDir ./src --module esnext --moduleResolution bundler --declaration --outDir ./dist ./src/index.ts && tsc --ignoreConfig --target esnext --skipLibCheck --types node --strict --erasableSyntaxOnly --noEmitOnError --rootDir ./src --module commonjs --outDir ./dist/cjs ./src/index.ts && node -e \"const fs=require('node:fs');fs.renameSync('dist/cjs/index.js','dist/index.cjs');fs.rmSync('dist/cjs',{recursive:true});fs.copyFileSync('dist/index.d.ts','dist/index.d.cts')\"",
"typecheck": "tsc --project tsconfig.json",
"typecheck:package": "tsc --ignoreConfig --module node16 --moduleResolution node16 --skipLibCheck --types node --strict --noEmit test/exports.test.ts",
"pretest": "npm run build",
"test": "node --test",
"test-ci": "node --test --experimental-test-coverage --test-coverage-include='src/**' --test-reporter=spec --test-reporter=lcov --test-reporter-destination=stdout --test-reporter-destination=lcov.info",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@types/node": "^26.6.2",
"oxfmt": "^0.67.0",
"oxlint": "^1.85.0",
"oxlint-tsgolint": "^7.0.2003",
"simple-git-hooks": "^2.14.0",
"typescript": "^7.0.2"
},
"peerDependencies": {
"koa": ">= 2"
},
"simple-git-hooks": {
"pre-commit": "npm run lint"
},
"devEngines": {
"packageManager": {
"name": "npm",
"onFail": "error"
},
"runtime": {
"name": "node",
"version": "26.x",
"onFail": "error"
}
},
"engines": {
"node": ">= 20"
}
}