Skip to content

Commit

Permalink
chore(build): emit bundleless declaration files (#2668)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Jun 22, 2024
1 parent d807e7d commit ad5fe82
Show file tree
Hide file tree
Showing 60 changed files with 129 additions and 117 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"files.exclude": {
"**/.DS_Store": true
},
"mdx.validate.validateFileLinks": "ignore"
"mdx.validate.validateFileLinks": "ignore",
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
"playwright": "1.44.1",
"strip-ansi": "6.0.1",
"tailwindcss": "^3.4.4",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"devDependencies": {
"@rsbuild/core": "workspace:*",
"lit": "^3.1.4",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@rsbuild/core": "workspace:*",
"@rsbuild/plugin-mdx": "workspace:*",
"@rsbuild/plugin-react": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"devDependencies": {
"@rsbuild/core": "workspace:*",
"@types/node": "18.x",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"devDependencies": {
"@rsbuild/core": "workspace:*",
"@rsbuild/plugin-preact": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"@rsbuild/plugin-react": "workspace:*",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
},
"devDependencies": {
"@rsbuild/core": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion examples/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@rsbuild/core": "workspace:*",
"@rsbuild/webpack": "workspace:*",
"@rsbuild/plugin-swc": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
},
"scripts": {
"build": "cross-env NX_DAEMON=false nx run-many -t build --exclude @examples/* @e2e/* rsbuild-* --parallel=10",
"prebundle": "nx run-many -t prebundle",
"build:doc": "cd website && pnpm run build",
"change": "changeset",
"changeset": "changeset",
"check-dependency-version": "check-dependency-version-consistency . --ignore-dep vue-loader",
"check-spell": "npx cspell",
"dev:doc": "cd website && pnpm run dev",
"build:doc": "cd website && pnpm run build",
"e2e": "cd ./e2e && pnpm test",
"e2e:rspack": "cd ./e2e && pnpm test:rspack",
"e2e:webpack": "cd ./e2e && pnpm test:webpack",
"lint": "biome check . --diagnostic-level=warn && pnpm run check-spell",
"prebundle": "nx run-many -t prebundle",
"prepare": "pnpm run build && simple-git-hooks",
"sort-package-json": "npx sort-package-json \"packages/*/package.json\" \"packages/compat/*/package.json\"",
"sort-package-json": "npx sort-package-json \"./package.json\" \"packages/*/package.json\" \"packages/compat/*/package.json\"",
"test": "pnpm run ut",
"ut": "vitest run",
"ut:watch": "vitest",
"e2e": "cd ./e2e && pnpm test",
"e2e:rspack": "cd ./e2e && pnpm test:rspack",
"e2e:webpack": "cd ./e2e && pnpm test:webpack"
"ut:watch": "vitest"
},
"simple-git-hooks": {
"pre-commit": "npx nano-staged"
Expand All @@ -51,6 +51,7 @@
"nx": "^19.2.3",
"prettier": "^3.3.2",
"simple-git-hooks": "^2.11.1",
"typescript": "^5.5.2",
"vitest": "^1.6.0"
},
"packageManager": "[email protected]",
Expand All @@ -59,13 +60,13 @@
"pnpm": ">=9.0.0"
},
"pnpm": {
"overrides": {
"esbuild": "~0.19.0",
"array.prototype.flat": "npm:@nolyfill/[email protected]"
},
"allowedDeprecatedVersions": {
"vue": "2.x",
"consolidate": "0.15.1"
"consolidate": "0.15.1",
"vue": "2.x"
},
"overrides": {
"array.prototype.flat": "npm:@nolyfill/[email protected]",
"esbuild": "~0.19.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/compat/babel-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
"devDependencies": {
"@types/node": "18.x",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/compat/plugin-swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@rsbuild/webpack": "workspace:*",
"@types/lodash": "^4.17.5",
"@types/semver": "^7.5.8",
"typescript": "^5.5.0",
"typescript": "^5.5.2",
"webpack": "^5.92.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/compat/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"ansi-escapes": "4.3.2",
"cli-truncate": "2.1.0",
"patch-console": "1.0.0",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"sirv": "^2.0.4",
"style-loader": "3.3.4",
"tsc-alias": "^1.8.10",
"typescript": "^5.5.0",
"typescript": "^5.5.2",
"webpack": "^5.92.0",
"webpack-dev-middleware": "7.2.1",
"ws": "^8.17.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rsbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@types/node": "18.x",
"deepmerge": "^4.3.1",
"rslog": "^1.2.2",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"engines": {
"node": ">=16.7.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rsbuild/template-lit-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"devDependencies": {
"@rsbuild/core": "workspace:*",
"lit": "^3.1.4",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/create-rsbuild/template-preact-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"devDependencies": {
"@rsbuild/core": "workspace:*",
"@rsbuild/plugin-preact": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/create-rsbuild/template-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"@rsbuild/plugin-react": "workspace:*",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/create-rsbuild/template-solid-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@rsbuild/core": "workspace:*",
"@rsbuild/plugin-babel": "workspace:*",
"@rsbuild/plugin-solid": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/create-rsbuild/template-svelte-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"@rsbuild/core": "workspace:*",
"@rsbuild/plugin-svelte": "workspace:*",
"svelte-check": "^3.8.0",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/create-rsbuild/template-vanilla-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
},
"devDependencies": {
"@rsbuild/core": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/create-rsbuild/template-vue2-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"devDependencies": {
"@rsbuild/core": "workspace:*",
"@rsbuild/plugin-vue2": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/create-rsbuild/template-vue3-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"devDependencies": {
"@rsbuild/core": "workspace:*",
"@rsbuild/plugin-vue": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-assets-retry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@types/serialize-javascript": "^5.0.4",
"html-webpack-plugin": "npm:[email protected]",
"terser": "5.31.1",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@types/node": "18.x",
"babel-loader": "9.1.3",
"prebundle": "1.1.0",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-basic-ssl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"devDependencies": {
"@rsbuild/core": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-check-syntax/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"devDependencies": {
"@rsbuild/core": "workspace:*",
"@scripts/test-helper": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-css-minimizer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@rsbuild/core": "workspace:*",
"@types/lodash": "^4.17.5",
"@types/node": "18.x",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@rsbuild/core": "workspace:*",
"@scripts/test-helper": "workspace:*",
"eslint": "^9.5.0",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-image-compress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@rsbuild/core": "workspace:*",
"@rsbuild/webpack": "workspace:*",
"@types/node": "18.x",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-less/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"less": "^4.2.0",
"less-loader": "^12.2.0",
"prebundle": "1.1.0",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-lightningcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@rsbuild/core": "workspace:*",
"@scripts/test-helper": "workspace:*",
"@types/node": "18.x",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"devDependencies": {
"@rsbuild/core": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-node-polyfill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"devDependencies": {
"@rsbuild/core": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"devDependencies": {
"@rsbuild/core": "workspace:*",
"@types/node": "18.x",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-pug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"devDependencies": {
"@rsbuild/core": "workspace:*",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@rsbuild/core": "workspace:*",
"@scripts/test-helper": "workspace:*",
"@types/node": "18.x",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-rem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"html-webpack-plugin": "npm:[email protected]",
"postcss-pxtorem": "6.1.0",
"prebundle": "1.1.0",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-sass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"prebundle": "1.1.0",
"resolve-url-loader": "^5.0.0",
"sass-loader": "^14.2.1",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@rsbuild/core": "workspace:*",
"@scripts/test-helper": "workspace:*",
"@types/babel__core": "^7.20.5",
"typescript": "^5.5.0"
"typescript": "^5.5.2"
},
"peerDependencies": {
"@rsbuild/core": "workspace:^0.7.9"
Expand Down
Loading

0 comments on commit ad5fe82

Please sign in to comment.