diff --git a/packages/hooks/tsconfig.json b/packages/hooks/tsconfig.json index 35cc81c1ab..04dc211e11 100644 --- a/packages/hooks/tsconfig.json +++ b/packages/hooks/tsconfig.json @@ -3,6 +3,8 @@ "compilerOptions": { "rootDir": "src", "outDir": "lib", - "composite": true - } + "composite": true, + "declaration": true + }, + "include": ["src"] } diff --git a/packages/use-url-state/tsconfig.json b/packages/use-url-state/tsconfig.json index 3176325368..1dac9cf65d 100644 --- a/packages/use-url-state/tsconfig.json +++ b/packages/use-url-state/tsconfig.json @@ -2,5 +2,6 @@ "extends": "../../tsconfig.json", "compilerOptions": { "rootDir": "src" - } + }, + "include": ["src"] } diff --git a/tsconfig.json b/tsconfig.json index d8c6842baf..32aff75270 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,8 +9,6 @@ "baseUrl": ".", "paths": { "@/*": ["src/*"], - "ahooks": ["./packages/hooks/src/index.ts"], - "ahooks/lib/*": ["./packages/hooks/src/*"], "@ahooksjs/use-url-state": ["./packages/use-url-state/src/index.ts"] }, "allowSyntheticDefaultImports": true,