Files
cnpmcore/package.json
fengmk2 4427a4fca5 feat: use egg v4 (#747)
BREAKING CHANGE: only support egg >= 4.0.0

the first app on egg v4

https://github.com/eggjs/egg/issues/3644
2025-02-09 15:43:24 +08:00

163 lines
5.1 KiB
JSON

{
"name": "cnpmcore",
"version": "4.0.0-beta.0",
"description": "Private NPM Registry for Enterprise",
"files": [
"dist/**/*"
],
"type": "commonjs",
"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": {
"dev": "egg-bin dev",
"dev:postgresql": "CNPMCORE_DATABASE_TYPE=PostgreSQL egg-bin dev",
"lint": "eslint --cache --ext .ts .",
"lint:fix": "eslint --cache --ext .ts --fix .",
"test:postgresql": "npm run lint:fix && 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 lint:fix && 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:fix && egg-bin test --changed",
"precov": "bash prepare-database-mysql.sh",
"cov": "egg-bin cov",
"precov:postgresql": "bash prepare-database-postgresql.sh",
"cov:postgresql": "CNPMCORE_DATABASE_TYPE=PostgreSQL egg-bin cov",
"preci": "npm run clean && npm run lint",
"ci": "npm run cov ",
"postci": "npm run tsc:prod && npm run clean",
"ci:postgresql": "npm run lint && npm run cov:postgresql && npm run tsc:prod && npm run clean",
"clean": "tsc -b --clean && rm -rf dist",
"tsc": "npm run clean && tsc -p ./tsconfig.json",
"tsc:prod": "npm run clean && tsc -p ./tsconfig.prod.json",
"prepublishOnly": "npm run tsc:prod",
"start": "eggctl start --daemon && touch egg.status",
"start:foreground": "eggctl start",
"stop": "rm -f egg.status && sleep 15 && eggctl stop"
},
"repository": {
"type": "git",
"url": "git@github.com:cnpm/cnpmcore.git"
},
"egg": {
"typescript": true
},
"keywords": [
"npm",
"npm registry",
"registry"
],
"dependencies": {
"@eggjs/redis": "^3.0.0",
"@eggjs/scripts": "^4.0.0",
"@eggjs/tegg": "^3.12.0",
"@eggjs/tegg-aop-plugin": "^3.12.0",
"@eggjs/tegg-background-task": "^3.29.0",
"@eggjs/tegg-config": "^3.12.0",
"@eggjs/tegg-controller-plugin": "^3.12.0",
"@eggjs/tegg-eventbus-plugin": "^3.12.0",
"@eggjs/tegg-orm-plugin": "^3.12.0",
"@eggjs/tegg-plugin": "^3.12.0",
"@eggjs/tegg-schedule-plugin": "^3.12.0",
"@eggjs/tracer": "^3.0.0",
"@eggjs/tsconfig": "^1.0.0",
"@elastic/elasticsearch": "^8.8.1",
"@fengmk2/tar": "^6.2.0",
"@node-rs/crc32": "^1.2.2",
"@simplewebauthn/server": "^7.0.1",
"base-x": "^3.0.9",
"base64url": "^3.0.1",
"bson-objectid": "^2.0.1",
"dayjs": "^1.10.7",
"egg": "^4.0.8",
"egg-cors": "^3.0.0",
"egg-errors": "^2.3.0",
"egg-status": "^1.0.0",
"egg-typebox-validate": "^2.0.0",
"egg-typebox-validate-fengmk2": "beta",
"egg-view-nunjucks": "^2.3.0",
"eggjs-elasticsearch": "^0.0.6",
"fs-cnpm": "^2.4.0",
"ioredis": "^5.3.1",
"leoric": "^2.12.3",
"lodash": "^4.17.21",
"mime-types": "^2.1.35",
"mysql2": "^3.9.4",
"node-rsa": "^1.1.1",
"npm-package-arg": "^10.1.0",
"oss-cnpm": "^5.0.1",
"p-map": "^4.0.0",
"pg": "^8.13.1",
"s3-cnpmcore": "^1.1.2",
"semver": "^7.3.5",
"ssri": "^8.0.1",
"type-fest": "^2.5.3",
"ua-parser-js": "^1.0.34",
"validate-npm-package-name": "^6.0.0"
},
"optionalDependencies": {
"s3-cnpmcore": "^1.1.2"
},
"devDependencies": {
"@cnpmjs/npm-cli-login": "^1.1.0",
"@eggjs/bin": "^7.1.0",
"@eggjs/mock": "^6.0.7",
"@elastic/elasticsearch-mock": "^2.0.0",
"@simplewebauthn/typescript-types": "^7.0.0",
"@types/lodash": "^4.14.196",
"@types/mime-types": "^2.1.1",
"@types/mocha": "^10.0.1",
"@types/mysql": "^2.15.21",
"@types/node-rsa": "^1.1.4",
"@types/npm-package-arg": "^6.1.1",
"@types/pg": "^8.11.10",
"@types/semver": "^7.3.12",
"@types/tar": "^6.1.4",
"@types/ua-parser-js": "^0.7.36",
"@types/validate-npm-package-name": "^4.0.2",
"coffee": "^5.4.0",
"eslint": "^8.29.0",
"eslint-config-egg": "^14.0.0",
"typescript": "beta"
},
"author": "killagu",
"license": "MIT",
"bugs": {
"url": "https://github.com/cnpm/npmcore/issues"
},
"homepage": "https://github.com/cnpm/npmcore#readme",
"engines": {
"node": ">= 20.18.0"
}
}