184 lines
5.7 KiB
JSON
184 lines
5.7 KiB
JSON
{
|
|
"name": "cnpmcore",
|
|
"version": "4.9.0",
|
|
"description": "Private NPM Registry for Enterprise",
|
|
"files": [
|
|
"dist/**/*"
|
|
],
|
|
"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": "oxlint",
|
|
"lint:fix": "npm run lint -- --fix",
|
|
"typecheck": "tsc --noEmit",
|
|
"test:postgresql": "npm run lint && 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 && npm run typecheck && 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",
|
|
"precov:postgresql": "bash prepare-database-postgresql.sh",
|
|
"cov:postgresql": "CNPMCORE_DATABASE_TYPE=PostgreSQL egg-bin cov",
|
|
"preci": "npm run clean && npm run lint && npm run typecheck",
|
|
"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 *.tsbuildinfo",
|
|
"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": "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"
|
|
],
|
|
"overrides": {
|
|
"mocha": "11.6.0"
|
|
},
|
|
"resolutions": {
|
|
"mocha": "11.6.0"
|
|
},
|
|
"dependencies": {
|
|
"@eggjs/redis": "beta",
|
|
"@eggjs/scripts": "^4.0.0",
|
|
"@eggjs/tegg": "beta",
|
|
"@eggjs/tegg-aop-plugin": "beta",
|
|
"@eggjs/tegg-background-task": "beta",
|
|
"@eggjs/tegg-config": "beta",
|
|
"@eggjs/tegg-controller-plugin": "beta",
|
|
"@eggjs/tegg-eventbus-plugin": "beta",
|
|
"@eggjs/tegg-orm-plugin": "beta",
|
|
"@eggjs/tegg-plugin": "beta",
|
|
"@eggjs/tegg-schedule-plugin": "beta",
|
|
"@eggjs/tracer": "beta",
|
|
"@eggjs/typebox-validate": "beta",
|
|
"@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.4",
|
|
"dayjs": "^1.10.7",
|
|
"egg": "beta",
|
|
"egg-cors": "^3.0.0",
|
|
"egg-errors": "^2.3.0",
|
|
"egg-status": "^1.0.0",
|
|
"egg-view-nunjucks": "^2.3.0",
|
|
"eggjs-elasticsearch": "^0.0.6",
|
|
"fast-xml-parser": "^5.0.9",
|
|
"fs-cnpm": "^2.4.0",
|
|
"ioredis": "^5.3.1",
|
|
"leoric": "^2.12.3",
|
|
"lodash-es": "^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",
|
|
"read-env-value": "^1.0.0",
|
|
"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": {
|
|
"@eggjs/bin": "beta",
|
|
"@eggjs/mock": "beta",
|
|
"@eggjs/oxlint-config": "^1.0.0",
|
|
"@eggjs/tsconfig": "beta",
|
|
"@elastic/elasticsearch-mock": "^2.0.0",
|
|
"@simplewebauthn/typescript-types": "^7.0.0",
|
|
"@types/lodash-es": "^4.17.12",
|
|
"@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",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^15.5.0",
|
|
"oxlint": "^1.11.0",
|
|
"oxlint-tsgolint": "^0.2.0",
|
|
"prettier": "^3.5.3",
|
|
"typescript": "5"
|
|
},
|
|
"author": "killagu",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/cnpm/cnpmcore/issues"
|
|
},
|
|
"homepage": "https://github.com/cnpm/cnpmcore#readme",
|
|
"engines": {
|
|
"node": "^20.18.0 || >=22.18.0"
|
|
},
|
|
"lint-staged": {
|
|
"*": "prettier --write --ignore-unknown --cache",
|
|
"*.{ts,js}": [
|
|
"prettier --ignore-unknown --write",
|
|
"oxlint --fix"
|
|
]
|
|
}
|
|
}
|