|
1 | 1 | { |
2 | | - "name": "egg-bin", |
3 | | - "version": "6.13.0", |
| 2 | + "name": "@eggjs/bin", |
| 3 | + "version": "7.0.0-beta.4", |
4 | 4 | "publishConfig": { |
5 | | - "tag": "latest" |
| 5 | + "access": "public" |
6 | 6 | }, |
7 | 7 | "description": "egg developer tool", |
8 | | - "files": [ |
9 | | - "dist", |
10 | | - "scripts" |
11 | | - ], |
12 | | - "main": "dist/index.js", |
13 | | - "bin": { |
14 | | - "egg-bin": "dist/bin/cli.js" |
| 8 | + "repository": { |
| 9 | + "type": "git", |
| 10 | + "url": "git@github.com:eggjs/bin.git" |
| 11 | + }, |
| 12 | + "bug": { |
| 13 | + "url": "https://github.com/eggjs/egg/issues" |
| 14 | + }, |
| 15 | + "homepage": "https://github.com/eggjs/bin", |
| 16 | + "author": "fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)", |
| 17 | + "engines": { |
| 18 | + "node": ">= 18.19.0" |
15 | 19 | }, |
16 | 20 | "dependencies": { |
17 | | - "@artus-cli/artus-cli": "^0.2.9", |
18 | | - "@artus-cli/plugin-autocomplete": "^0.1.1", |
19 | | - "@artus-cli/plugin-version": "^1.0.1", |
20 | | - "@eggjs/utils": "^4.0.2", |
| 21 | + "@eggjs/utils": "^4.1.2", |
| 22 | + "@oclif/core": "^4.2.0", |
| 23 | + "@types/mocha": "^10.0.10", |
| 24 | + "@types/supertest": "^6.0.2", |
21 | 25 | "c8": "^10.0.0", |
22 | 26 | "detect-port": "^2.0.0", |
23 | 27 | "egg-ts-helper": "^2.1.0", |
24 | 28 | "globby": "^11.1.0", |
25 | 29 | "jest-changed-files": "^29.4.2", |
26 | | - "mocha": "^10.2.0", |
| 30 | + "mocha": "^11.0.1", |
27 | 31 | "mochawesome-with-mocha": "^7.1.3", |
28 | 32 | "runscript": "^2.0.0", |
29 | 33 | "ts-node": "^10.9.2", |
30 | | - "tsconfig-paths": "^4.1.2" |
| 34 | + "tsconfig-paths": "^4.1.2", |
| 35 | + "utility": "^2.4.0" |
31 | 36 | }, |
32 | 37 | "peerDependencies": { |
33 | | - "egg-mock": ">=5.10.2" |
| 38 | + "@eggjs/mock": "beta" |
34 | 39 | }, |
35 | 40 | "peerDependenciesMeta": { |
36 | | - "egg-mock": { |
| 41 | + "@eggjs/mock": { |
37 | 42 | "optional": true |
38 | 43 | } |
39 | 44 | }, |
40 | 45 | "devDependencies": { |
41 | | - "@eggjs/tsconfig": "^1.3.0", |
| 46 | + "@arethetypeswrong/cli": "^0.17.1", |
| 47 | + "@eggjs/mock": "beta", |
| 48 | + "@eggjs/tsconfig": "1", |
42 | 49 | "@swc-node/register": "^1.6.1", |
43 | 50 | "@swc/core": "^1.3.35", |
44 | | - "@types/mocha": "^10.0.1", |
45 | | - "@types/node": "^22.10.1", |
| 51 | + "@types/node": "22", |
46 | 52 | "assert-file": "^1.0.0", |
47 | | - "coffee": "^5.4.0", |
| 53 | + "coffee": "^5.5.1", |
48 | 54 | "cpy": "^8.1.2", |
49 | | - "egg": "^3.9.1", |
50 | | - "egg-mock": "^5.10.2", |
| 55 | + "cpy-cli": "^5.0.0", |
| 56 | + "cross-env": "^7.0.3", |
| 57 | + "egg": "beta", |
51 | 58 | "esbuild": "^0.17.7", |
52 | 59 | "esbuild-register": "^3.4.2", |
53 | | - "eslint": "^8.16.0", |
54 | | - "eslint-config-egg": "^13.1.0", |
55 | | - "npminstall": "^7.5.0", |
56 | | - "typescript": "^5.2.2" |
| 60 | + "eslint": "8", |
| 61 | + "eslint-config-egg": "14", |
| 62 | + "npminstall": "^7.12.0", |
| 63 | + "rimraf": "6", |
| 64 | + "supertest": "^7.0.0", |
| 65 | + "tshy": "3", |
| 66 | + "tshy-after": "1", |
| 67 | + "typescript": "5" |
57 | 68 | }, |
58 | | - "repository": { |
59 | | - "type": "git", |
60 | | - "url": "git@github.com:eggjs/egg-bin.git" |
| 69 | + "scripts": { |
| 70 | + "postinstall-skip": "node scripts/postinstall.mjs", |
| 71 | + "lint": "eslint --cache src test --ext .ts", |
| 72 | + "pretest": "npm run clean && npm run lint -- --fix && npm run prepublishOnly", |
| 73 | + "test": "node bin/run.js test", |
| 74 | + "cov": "c8 --temp-directory node_modules/.c8_output -r text-summary -r json-summary -r json -r lcov -r cobertura node bin/run.js test", |
| 75 | + "preci": "npm run clean && npm run lint && npm run prepublishOnly", |
| 76 | + "ci": "npm run cov", |
| 77 | + "clean": "rimraf dist", |
| 78 | + "copyScripts": "rimraf dist/scripts && cpy scripts dist", |
| 79 | + "prepublishOnly": "tshy && tshy-after && attw --pack && npm run copyScripts" |
61 | 80 | }, |
62 | | - "bug": { |
63 | | - "url": "https://github.com/eggjs/egg/issues" |
| 81 | + "type": "module", |
| 82 | + "tshy": { |
| 83 | + "exports": { |
| 84 | + ".": "./src/index.ts", |
| 85 | + "./package.json": "./package.json" |
| 86 | + } |
64 | 87 | }, |
65 | | - "homepage": "https://github.com/eggjs/egg-bin", |
66 | | - "author": "fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)", |
67 | | - "scripts": { |
68 | | - "postinstall": "node scripts/postinstall.js", |
69 | | - "contributor": "git-contributor", |
70 | | - "lint": "eslint . --cache --ext ts", |
71 | | - "test": "npm run lint -- --fix && npm run test-local", |
72 | | - "test-local": "npm run tsc && node dist/bin/cli.js test", |
73 | | - "test-local-with-ts-node-transpile-only": "node -r ts-node/register/transpile-only src/bin/cli.ts test", |
74 | | - "test-local-with-swc": "node -r @swc-node/register src/bin/cli.ts test", |
75 | | - "test-local-with-esbuild": "node -r esbuild-register src/bin/cli.ts test", |
76 | | - "test-tsc": "npm run clean && npm run tsc && node dist/bin/cli.js && node dist/bin/cli.js test --base test/fixtures/example-ts && node dist/bin/cli.js dev --base test/fixtures/example-ts", |
77 | | - "cov": "c8 -r lcov -r text-summary -x 'test/**' npm run test-local -- --timeout 120000", |
78 | | - "ci": "npm run lint && npm run test-local && npm run test-tsc", |
79 | | - "prepublishOnly": "npm run clean && npm run tsc", |
80 | | - "tsc": "tsc", |
81 | | - "clean": "rm -rf dist" |
| 88 | + "exports": { |
| 89 | + ".": { |
| 90 | + "import": { |
| 91 | + "types": "./dist/esm/index.d.ts", |
| 92 | + "default": "./dist/esm/index.js" |
| 93 | + }, |
| 94 | + "require": { |
| 95 | + "types": "./dist/commonjs/index.d.ts", |
| 96 | + "default": "./dist/commonjs/index.js" |
| 97 | + } |
| 98 | + }, |
| 99 | + "./package.json": "./package.json" |
82 | 100 | }, |
83 | | - "engines": { |
84 | | - "node": ">= 16.19.0" |
| 101 | + "files": [ |
| 102 | + "bin", |
| 103 | + "dist", |
| 104 | + "src", |
| 105 | + "scripts" |
| 106 | + ], |
| 107 | + "bin": { |
| 108 | + "egg-bin": "./bin/run.js" |
| 109 | + }, |
| 110 | + "types": "./dist/commonjs/index.d.ts", |
| 111 | + "main": "./dist/commonjs/index.js", |
| 112 | + "module": "./dist/esm/index.js", |
| 113 | + "oclif": { |
| 114 | + "bin": "egg-bin", |
| 115 | + "commands": "./dist/esm/commands", |
| 116 | + "dirname": "egg-bin", |
| 117 | + "topicSeparator": " ", |
| 118 | + "additionalHelpFlags": [ |
| 119 | + "-h" |
| 120 | + ] |
85 | 121 | } |
86 | 122 | } |
0 commit comments