Skip to content

Commit

Permalink
feat(cli): add exports field (#8119)
Browse files Browse the repository at this point in the history
feat(CLI): add exports field
  • Loading branch information
chenjiahan authored Oct 15, 2024
1 parent 6c82d3a commit 0d01456
Showing 1 changed file with 32 additions and 28 deletions.
60 changes: 32 additions & 28 deletions packages/rspack-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,43 @@
{
"name": "@rspack/cli",
"version": "1.0.11",
"license": "MIT",
"description": "CLI for rspack",
"publishConfig": {
"access": "public",
"provenance": true
"homepage": "https://rspack.dev",
"bugs": "https://github.com/web-infra-dev/rspack/issues",
"repository": {
"type": "git",
"url": "https://github.com/web-infra-dev/rspack",
"directory": "packages/rspack-cli"
},
"bin": {
"rspack": "./bin/rspack"
"license": "MIT",
"exports": {
".": "./dist/index.js",
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -b ./tsconfig.build.json",
"dev": "tsc -b -w",
"test": "cross-env jest --colors"
"bin": {
"rspack": "./bin/rspack"
},
"files": [
"bin",
"dist"
],
"homepage": "https://rspack.dev",
"bugs": "https://github.com/web-infra-dev/rspack/issues",
"repository": {
"type": "git",
"url": "https://github.com/web-infra-dev/rspack",
"directory": "packages/rspack-cli"
"scripts": {
"build": "tsc -b ./tsconfig.build.json",
"dev": "tsc -b -w",
"test": "cross-env jest --colors"
},
"peerDependencies": {
"@rspack/core": "^1.0.0-alpha || ^1.x"
"dependencies": {
"@discoveryjs/json-ext": "^0.5.7",
"@rspack/dev-server": "1.0.5",
"colorette": "2.0.19",
"exit-hook": "^3.2.0",
"interpret": "^3.1.1",
"rechoir": "^0.8.0",
"semver": "^7.6.2",
"webpack-bundle-analyzer": "4.6.1",
"yargs": "17.6.2"
},
"devDependencies": {
"@rspack/core": "workspace:*",
Expand All @@ -45,15 +53,11 @@
"ts-node": "^10.9.2",
"typescript": "5.0.2"
},
"dependencies": {
"@discoveryjs/json-ext": "^0.5.7",
"@rspack/dev-server": "1.0.5",
"colorette": "2.0.19",
"exit-hook": "^3.2.0",
"interpret": "^3.1.1",
"rechoir": "^0.8.0",
"semver": "^7.6.2",
"webpack-bundle-analyzer": "4.6.1",
"yargs": "17.6.2"
"peerDependencies": {
"@rspack/core": "^1.0.0-alpha || ^1.x"
},
"publishConfig": {
"access": "public",
"provenance": true
}
}

2 comments on commit 0d01456

@rspack-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Benchmark detail: Open

Name Base (2024-10-15 25af140) Current Change
10000_development-mode + exec 2.12 s ± 39 ms 2.12 s ± 44 ms +0.22 %
10000_development-mode_hmr + exec 665 ms ± 22 ms 661 ms ± 23 ms -0.56 %
10000_production-mode + exec 2.65 s ± 33 ms 2.62 s ± 26 ms -0.79 %
arco-pro_development-mode + exec 1.82 s ± 87 ms 1.79 s ± 76 ms -1.70 %
arco-pro_development-mode_hmr + exec 426 ms ± 1.9 ms 426 ms ± 2.7 ms -0.01 %
arco-pro_production-mode + exec 3.04 s ± 65 ms 3.07 s ± 69 ms +1.05 %
arco-pro_production-mode_generate-package-json-webpack-plugin + exec 3.15 s ± 70 ms 3.14 s ± 69 ms -0.34 %
threejs_development-mode_10x + exec 1.64 s ± 15 ms 1.64 s ± 20 ms -0.07 %
threejs_development-mode_10x_hmr + exec 788 ms ± 11 ms 793 ms ± 7.2 ms +0.62 %
threejs_production-mode_10x + exec 4.97 s ± 28 ms 4.99 s ± 32 ms +0.28 %

@rspack-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Ran ecosystem CI: Open

suite result
modernjs ✅ success
_selftest ✅ success
rspress ✅ success
rslib ✅ success
rsbuild ✅ success
examples ✅ success
devserver ❌ failure

Please sign in to comment.