-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
119 lines (119 loc) · 4.55 KB
/
package.json
File metadata and controls
119 lines (119 loc) · 4.55 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
116
117
118
119
{
"name": "routing-controllers-extended",
"private": false,
"version": "3.0.1",
"description": "A lightweight and highly adaptable TypeScript framework for building REST-APIs and microservices with Express or Koa. It features full support for ESM and CommonJS. Designed for rapid development it provides a flexible controller-based architecture that scales with your needs.",
"author": "TypeStack contributors",
"license": "MIT",
"sideEffects": false,
"main": "./cjs/index.js",
"module": "./esm/index.js",
"types": "./types/index.d.ts",
"exports": {
".": {
"require": "./cjs/index.js",
"import": "./esm/index.js"
},
"./cjs": "./cjs/index.js",
"./esm": "./esm/index.js"
},
"repository": {
"type": "git",
"url": "https://github.com/spicemc/rce.git"
},
"tags": [
"express",
"express.js",
"typescript",
"typescript-express",
"typescript-express.js",
"express-controllers",
"controllers",
"koa",
"koa.js",
"typescript-koa",
"typescript-framework"
],
"scripts": {
"build": "npm run build:clean && npm run build:cjs && npm run build:esm && npm run build:types",
"build:clean": "rimraf build",
"build:types": "tsc --project tsconfig.prod.types.json",
"build:cjs": "tsc --project tsconfig.prod.cjs.json && jq 'del(.devDependencies, .scripts)' package.json > build/cjs/package.json",
"build:esm": "tsc --project tsconfig.prod.esm.json && npm run patch:esm && jq 'del(.devDependencies, .scripts) | .+{\"type\":\"module\"}' package.json > build/esm/package.json",
"patch:esm": "find build/esm -type f -name '*.js' -print0 | xargs -0 sed -i -E \"s@(from|import)([[:space:]]+['\\\"]\\./[^'\\\"]+)(['\\\"])@\\1\\2.js\\3@g; s@(from|import)([[:space:]]+['\\\"]\\.\\./[^'\\\"]+)(['\\\"])@\\1\\2.js\\3@g\"",
"check:cjs": "node -e \"const { Controller } = require('./build/cjs/index.js'); if (typeof Controller !== 'function') { console.error('CJS check failed:', typeof Controller); process.exit(1);} console.log('CJS OK')\"",
"check:esm": "node --input-type=module -e \"import { Controller } from './build/esm/index.js'; if (typeof Controller !== 'function') { console.error('ESM check failed:', typeof Controller); process.exit(1);} console.log('ESM OK')\"",
"prettier:fix": "prettier --write \"**/*.{ts,md}\"",
"prettier:check": "prettier --check \"**/*.{ts,md}\"",
"lint:fix": "eslint --max-warnings 0 --fix --ext .ts src/",
"lint:check": "eslint --max-warnings 0 --ext .ts src/",
"test": "jest --verbose --runInBand --no-cache",
"test:watch": "jest --watch",
"test:ci": "jest --runInBand --no-cache --coverage --verbose",
"test:debug": "NODE_ENV= node --inspect=127.0.0.1:20001 --inspect-brk ./node_modules/.bin/jest --colors --runInBand --no-coverage --watch"
},
"dependencies": {
"cookie": "^1.0.2",
"glob": "^11.0.3",
"reflect-metadata": "^0.2.2",
"template-url": "^1.0.0"
},
"peerDependencies": {
"class-transformer": "^0.5.1",
"class-validator": "^0.14.2"
},
"devDependencies": {
"@types/express-session": "^1.18.2",
"@types/form-data": "^2.5.2",
"@types/jest": "^30.0.0",
"@types/koa": "^2.15.0",
"@types/koa__ejs": "^5.1.0",
"@types/koa__multer": "^2.0.7",
"@types/koa__router": "^12.0.4",
"@types/koa-bodyparser": "^4.3.12",
"@types/multer": "^2.0.0",
"@types/mustache-express": "^1.2.5",
"@types/node": "^24.5.2",
"@types/serve-static": "^1.15.8",
"@typescript-eslint/eslint-plugin": "^8.44.1",
"@typescript-eslint/parser": "^8.44.1",
"axios": "^1.12.2",
"chakram": "^1.5.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.2",
"cors": "^2.8.5",
"eslint": "^9.36.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-jest": "^29.0.1",
"eslint-plugin-prettier": "^5.5.4",
"form-data": "^4.0.4",
"handlebars": "^4.7.8",
"http-status-codes": "^2.3.0",
"husky": "^9.1.7",
"jest": "^30.1.3",
"koa-convert": "^2.0.0",
"koa-session": "^7.0.2",
"@koa/cors": "^5.0.0",
"@koa/ejs": "^5.1.0",
"@koa/multer": "^4.0.0",
"@koa/router": "^14.0.0",
"koa": "^3.1.1",
"koa-bodyparser": "^4.4.1",
"lint-staged": "^16.2.0",
"multer": "^2.0.2",
"mustache-express": "^1.3.2",
"prettier": "^3.6.2",
"qs": "^6.14.0",
"rimraf": "^6.0.1",
"ts-jest": "^29.4.4",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"typedi": "^0.10.0",
"typescript": "^5.9.2"
},
"optionalDependencies": {
"express": "^5.1.0",
"express-session": "^1.18.2",
"multer": "^2.0.2"
}
}