Skip to content

Commit

Permalink
refactor: remove prebundle package's .d.ts (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter authored Feb 5, 2025
1 parent 5ad5641 commit 9dfc23d
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "@modern-js/tsconfig/base",
"declaration": true,
"compilerOptions": {
"moduleResolution": "bundler",
"module": "ESNext",
"target": "ESNext",
"baseUrl": "./",
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/node/PluginDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export class PluginDriver {

if (isDevDebugMode()) {
const SourceBuildPlugin = await import(
// @ts-expect-error need moduleResolution: Node16, NodeNext or Bundler to get type declarations work
'@rspress/theme-default/node/source-build-plugin.js'
).then(
r => r.SourceBuildPlugin,
Expand Down
1 change: 1 addition & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"strict": false,
"declaration": true,
"noEmit": false,
Expand Down
1 change: 1 addition & 0 deletions packages/create-rspress/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "@modern-js/tsconfig/base",
"declaration": true,
"compilerOptions": {
"moduleResolution": "bundler",
"module": "ESNext",
"target": "ESNext",
"baseUrl": "./",
Expand Down
4 changes: 2 additions & 2 deletions packages/document/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"jsx": "preserve",
"moduleResolution": "bundler",
"paths": {
"i18n": ["./i18n.json"],
"@theme": ["./theme"],
Expand All @@ -10,8 +11,7 @@
"@zh/*": ["./docs/zh/*"],
"@en/*": ["./docs/en/*"]
},
"module": "ESNext",
"moduleResolution": "Bundler"
"module": "ESNext"
},
"include": [
"./rspress.config.ts",
Expand Down
2 changes: 2 additions & 0 deletions packages/modern-plugin-rspress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "ESNext",
"declaration": true,
"noEmit": false,
"outDir": "dist",
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-api-docgen/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"composite": true,
"declaration": true,
"noEmit": false,
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-auto-nav-sidebar/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"declaration": true,
"noEmit": false,
"composite": true,
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-client-redirects/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"composite": true,
"declaration": true,
"module": "ESNext",
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-container-syntax/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"composite": true,
"declaration": true,
"module": "ESNext",
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-last-updated/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"declaration": true,
"composite": true,
"module": "ESNext",
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-medium-zoom/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"declaration": true,
"noEmit": false,
"outDir": "dist",
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"declaration": true,
"composite": true,
"noEmit": false,
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-preview/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"composite": true,
"noEmit": false,
"declaration": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-rss/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"declaration": false,
"module": "ESNext",
"target": "ES2020",
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "bundler"
"skipLibCheck": true
},
"include": ["src"],
"references": [
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-shiki/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"declaration": false,
"module": "ESNext",
"target": "ESNext",
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-typedoc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"declaration": false,
"module": "ESNext",
"target": "ESNext",
Expand Down
2 changes: 2 additions & 0 deletions packages/runtime/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"module": "ESNext",
"composite": true,
"declaration": true,
"noEmit": false,
Expand Down
2 changes: 0 additions & 2 deletions packages/shared/chalk.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/shared/logger.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/shared/node-utils.d.ts

This file was deleted.

1 change: 1 addition & 0 deletions packages/theme-default/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"moduleResolution": "bundler",
"declaration": true,
"noEmit": false,
"declarationDir": "dist",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "@modern-js/tsconfig/base",
"compilerOptions": {
"target": "ES2019",
"module": "ESNext",
"declaration": true,
"outDir": "./dist",
"jsx": "preserve",
Expand Down

0 comments on commit 9dfc23d

Please sign in to comment.