From ea71988a52b69c57ee3e9470f07aadd71879d185 Mon Sep 17 00:00:00 2001 From: Kevin Deng Date: Tue, 23 Dec 2025 01:49:18 +0800 Subject: [PATCH] refactor: inline `estree-walker` --- dts.snapshot.json | 2 +- package.json | 2 +- pnpm-lock.yaml | 6 +++--- tsdown.config.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dts.snapshot.json b/dts.snapshot.json index c9dd07f..dd16b03 100644 --- a/dts.snapshot.json +++ b/dts.snapshot.json @@ -6,7 +6,7 @@ ] }, "index.d.mts": { - "Options": "interface Options {\n include?: FilterPattern\n exclude?: FilterPattern\n excludeNonExport?: boolean\n saveTo?: string\n}", + "Options": "interface Options {\n include?: FilterPattern\n exclude?: FilterPattern\n includeNonExport?: boolean\n saveTo?: string\n}", "DtsSnapshot": "declare function DtsSnapshot(_: Options): Plugin", "#exports": [ "DtsSnapshot", diff --git a/package.json b/package.json index f44e548..e4a1070 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,6 @@ }, "dependencies": { "dprint-node": "^1.0.8", - "estree-walker": "^3.0.3", "magic-string": "^0.30.21", "unplugin-utils": "^0.3.1" }, @@ -60,6 +59,7 @@ "@typescript/native-preview": "7.0.0-dev.20251222.1", "bumpp": "^10.3.2", "eslint": "^9.39.2", + "estree-walker": "^3.0.3", "prettier": "^3.7.4", "rolldown": "^1.0.0-beta.56", "tsdown": "^0.18.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 62f8061..0f9577d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,9 +11,6 @@ importers: dprint-node: specifier: ^1.0.8 version: 1.0.8 - estree-walker: - specifier: ^3.0.3 - version: 3.0.3 magic-string: specifier: ^0.30.21 version: 0.30.21 @@ -42,6 +39,9 @@ importers: eslint: specifier: ^9.39.2 version: 9.39.2(jiti@2.6.1) + estree-walker: + specifier: ^3.0.3 + version: 3.0.3 prettier: specifier: ^3.7.4 version: 3.7.4 diff --git a/tsdown.config.ts b/tsdown.config.ts index 5557290..b19f688 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -5,6 +5,6 @@ export default defineConfig({ entry: ['src/*.ts'], platform: 'node', exports: true, - inlineOnly: [], + inlineOnly: ['estree-walker'], plugins: [DtsSnapshot()], }) -- 2.51.2