-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathpackage.json
More file actions
173 lines (173 loc) · 5.62 KB
/
Copy pathpackage.json
File metadata and controls
173 lines (173 loc) · 5.62 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"name": "cnpmcore",
"version": "4.36.1",
"description": "Private NPM Registry for Enterprise",
"keywords": [
"npm",
"npm registry",
"registry"
],
"homepage": "https://github.com/cnpm/cnpmcore#readme",
"bugs": {
"url": "https://github.com/cnpm/cnpmcore/issues"
},
"license": "MIT",
"author": "killagu",
"repository": {
"type": "git",
"url": "git@github.com:cnpm/cnpmcore.git"
},
"files": [
"dist/**/*",
"scripts/wait-for-ready.mjs"
],
"type": "module",
"main": "./dist/app.js",
"typings": "./dist/app",
"exports": {
"./common/package.json": "./dist/app/common/package.json",
"./common/*": {
"type": "./dist/app/common",
"node": "./dist/app/common/*.js"
},
"./core/package.json": "./dist/app/core/package.json",
"./core/*": {
"type": "./dist/app/core",
"node": "./dist/app/core/*.js"
},
"./infra/package.json": "./dist/app/infra/package.json",
"./infra/*": {
"type": "./dist/app/infra",
"node": "./dist/app/infra/*.js"
},
"./port/package.json": "./dist/app/port/package.json",
"./port/*": {
"type": "./dist/app/port",
"node": "./dist/app/port/*.js"
},
"./repository/package.json": "./dist/app/repository/package.json",
"./repository/*": {
"type": "./dist/app/repository",
"node": "./dist/app/repository/*.js"
}
},
"scripts": {
"predev": "npm run clean",
"dev": "egg-bin dev",
"dev:postgresql": "CNPMCORE_DATABASE_TYPE=PostgreSQL egg-bin dev",
"lint": "vp lint",
"lint:fix": "npm run lint -- --fix",
"typecheck": "tsc --noEmit",
"fmt": "vp fmt",
"fmtcheck": "vp fmt --check",
"api-docs:lint": "redocly lint docs/openapi.yaml",
"api-docs:build": "redocly bundle docs/openapi.yaml --output docs/openapi.json && vp fmt docs/openapi.json",
"test:postgresql": "npm run test:local:postgresql",
"pretest:local:postgresql": "bash prepare-database-postgresql.sh",
"test:local:postgresql": "CNPMCORE_DATABASE_TYPE=PostgreSQL egg-bin test",
"pretest": "npm run clean",
"test": "npm run test:local",
"pretest:local": "bash prepare-database-mysql.sh",
"test:local": "egg-bin test",
"pret": "bash prepare-database-mysql.sh",
"t": "npm run lint && egg-bin test --changed",
"precov": "bash prepare-database-mysql.sh",
"cov": "egg-bin cov --exclude \"**/test/**\"",
"precov:postgresql": "bash prepare-database-postgresql.sh",
"cov:postgresql": "CNPMCORE_DATABASE_TYPE=PostgreSQL egg-bin cov --exclude \"**/test/**\"",
"ci": "npm run cov",
"ci:postgresql": "npm run cov:postgresql",
"clean": "tsc -b --clean && rm -rf dist *.tsbuildinfo",
"build": "npm run tsc",
"tsc": "npm run clean && tsc -p ./tsconfig.json",
"tsc:prod": "npm run clean && tsc -p ./tsconfig.prod.json",
"prepublishOnly": "npm run tsc:prod",
"images": "npm run images:alpine && npm run images:debian",
"images:alpine": "docker build -t cnpmcore:alpine-latest -f .docker/alpine/Dockerfile .",
"images:debian": "docker build -t cnpmcore:latest -f .docker/debian/Dockerfile .",
"start": "rm -f egg.status && eggctl start --daemon --ignore-stderr && node scripts/wait-for-ready.mjs && touch egg.status",
"start:foreground": "eggctl start",
"stop": "rm -f egg.status && sleep 15 && eggctl stop",
"prepare": "vp config || true"
},
"dependencies": {
"@cnpmjs/packument": "^1.7.0",
"@eggjs/redis": "^4.0.2-beta.27",
"@eggjs/scripts": "^5.0.2-beta.27",
"@eggjs/tracer": "^4.0.2-beta.27",
"@eggjs/typebox-validate": "^4.0.2-beta.27",
"@elastic/elasticsearch": "^8.19.1",
"@simplewebauthn/server": "^14.0.0",
"base-x": "^5.0.1",
"bson-objectid": "^2.0.4",
"dayjs": "^1.11.19",
"egg": "^4.1.2-beta.27",
"egg-cors": "^3.0.1",
"egg-status": "^1.0.0",
"egg-view-nunjucks": "^2.3.0",
"eggjs-elasticsearch": "^0.0.6",
"fast-xml-parser": "^5.8.0",
"fs-cnpm": "^2.4.1",
"ioredis": "^5.8.2",
"leoric": "^2.16.0",
"lodash-es": "^4.17.21",
"mime-types": "^3.0.2",
"mysql2": "^3.15.3",
"node-rsa": "^2.0.0",
"npm-package-arg": "^14.0.0",
"oss-cnpm": "^5.0.1",
"p-map": "^7.0.4",
"pg": "^8.16.3",
"read-env-value": "^2.0.2",
"semver": "^7.7.3",
"ssri": "^14.0.0",
"tar": "^7.5.2",
"type-fest": "^5.3.1",
"ua-parser-js": "^2.0.7",
"validate-npm-package-name": "^8.0.0"
},
"devDependencies": {
"@eggjs/bin": "^8.0.2-beta.27",
"@eggjs/mock": "^7.0.2-beta.27",
"@eggjs/tsconfig": "^3.1.2-beta.27",
"@elastic/elasticsearch-mock": "^2.1.0",
"@redocly/cli": "^2.43.2",
"@simplewebauthn/typescript-types": "^7.4.0",
"@types/ioredis-mock": "^8.2.6",
"@types/lodash-es": "^4.17.12",
"@types/mime-types": "^3.0.1",
"@types/mysql": "^2.15.27",
"@types/node": "^24.0.0",
"@types/node-rsa": "^1.1.4",
"@types/npm-package-arg": "^6.1.4",
"@types/pg": "^8.16.0",
"@types/semver": "^7.7.1",
"@types/tar": "^7.0.0",
"@types/validate-npm-package-name": "^4.0.2",
"@vitest/coverage-v8": "5.0.1",
"coffee": "^5.5.1",
"ioredis-mock": "^8.13.1",
"typescript": "^7.0.0",
"vite-plus": "1.0.0-rc.0",
"vitest": "5.0.1",
"yaml": "^2.9.0"
},
"optionalDependencies": {
"s3-cnpmcore": "^1.1.2"
},
"overrides": {
"@aws-sdk/xml-builder": {
"fast-xml-parser": "$fast-xml-parser"
},
"@vitest/coverage-v8": "$@vitest/coverage-v8",
"vite": "npm:@voidzero-dev/vite-plus-core@1.0.0-rc.0",
"vitest": "5.0.1"
},
"engines": {
"node": "^20.18.0 || ^22.18.0 || ^24.11.0"
},
"packageManager": "npm@12.2.0",
"egg": {
"typescript": true
}
}