Skip to content

Commit 0c6bd03

Browse files
committed
build: patch [email protected]
add support for setting rollup-plugin-dts's respectExternal option via DtsConfig
1 parent ffc4fbb commit 0c6bd03

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@
157157
"patchedDependencies": {
158158
"@tanstack/[email protected]": "patches/@[email protected]",
159159
"@lyrasearch/[email protected]": "patches/@[email protected]",
160-
"@tanstack/[email protected]": "patches/@[email protected]"
160+
"@tanstack/[email protected]": "patches/@[email protected]",
161+
161162
}
162163
}
163164
}

patches/[email protected]

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/dist/index.d.ts b/dist/index.d.ts
2+
index d7460dd672753dca2776c0e934d5c35dae8ee736..635b8e8e0982edbf27ae300d7ea0243605a8d98a 100644
3+
--- a/dist/index.d.ts
4+
+++ b/dist/index.d.ts
5+
@@ -353,6 +353,7 @@ type DtsConfig = {
6+
* This option takes higher priority than `compilerOptions` in tsconfig.json
7+
*/
8+
compilerOptions?: any;
9+
+ respectExternal?: boolean;
10+
};
11+
type BannerOrFooter = {
12+
js?: string;
13+
diff --git a/dist/rollup.js b/dist/rollup.js
14+
index 44f4cb02111ce2961d4e98224ee1fe1ee2467391..6b893db888e052354071fac8842b753116279590 100644
15+
--- a/dist/rollup.js
16+
+++ b/dist/rollup.js
17+
@@ -7929,7 +7929,8 @@ var getRollupConfig = async (options) => {
18+
preserveSymlinks: false,
19+
// Ensure we can parse the latest code
20+
target: _typescript2.default.ScriptTarget.ESNext
21+
- }
22+
+ },
23+
+ respectExternal: dtsOptions.respectExternal,
24+
}),
25+
fixEnumDeclaration
26+
].filter(Boolean),

pnpm-lock.yaml

+6-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)