Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
80 lines (80 loc) · 2.58 KB
/
Copy pathpackage.json
File metadata and controls
80 lines (80 loc) · 2.58 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
{
"name": "koa-static",
"description": "Static file serving middleware for koa",
"version": "6.0.0",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.js",
"types": "dist/cjs/index.d.cts",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
}
},
"./index": "./dist/cjs/index.cjs",
"./index.js": "./dist/cjs/index.cjs",
"./package.json": "./package.json",
"./*": "./*"
},
"files": [
"dist"
],
"keywords": [
"koa",
"middleware",
"file",
"static",
"sendfile"
],
"repository": {
"type": "git",
"url": "https://github.com/koajs/static.git"
},
"devDependencies": {
"@types/debug": "^4.1.13",
"@types/koa": "^2.15.0",
"@types/koa-send": "^4.1.6",
"@types/node": "^14.18.63",
"koa": "^2.16.4",
"oxfmt": "^0.75.0",
"oxlint": "^1.90.0",
"oxlint-plugin-legibility": "^0.0.5",
"supertest": "^7.3.1",
"typescript": "^7.0.2"
},
"license": "MIT",
"dependencies": {
"debug": "^4.3.4",
"koa-send": "^5.0.1"
},
"scripts": {
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc && node -e \"const fs = require('node:fs'); fs.writeFileSync('dist/cjs/index.cjs', \\\"module.exports = require('./index.js').default;\\\"); fs.writeFileSync('dist/cjs/index.d.cts', \\\"import serve from './index.js'; export = serve;\\\")\"",
"build:esm": "tsc --module ES2022 --moduleResolution Bundler --outDir dist/esm && node -e \"require('node:fs').writeFileSync('dist/esm/package.json', JSON.stringify({ type: 'module' }))\"",
"typecheck": "tsc --noEmit",
"lint": "oxlint -c .oxlint.config.mts --deny-warnings && npm run format -- --check",
"lint:fix": "oxlint -c .oxlint.config.mts --fix && npm run format",
"format": "oxfmt -c .oxfmtrc.json . '!**/*.md' '!test/fixtures/**/*.html' '!package-lock.json'",
"test": "npm run build && node --test test/unit/index.test.ts test/integration/static.test.ts",
"test-cov": "npm run build && node --test --experimental-test-coverage test/unit/index.test.ts test/integration/static.test.ts",
"test:e2e": "node --test test/e2e/static.test.ts",
"validate": "npm run lint && npm run typecheck && npm test",
"setup": "sh scripts/setup/setup.sh",
"prepack": "npm run build"
},
"engines": {
"node": ">= 22"
},
"devEngines": {
"runtime": {
"name": "node",
"version": "26.x",
"onFail": "warn"
}
}
}