Skip to content

Commit

Permalink
chore: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
ErKeLost committed Feb 16, 2025
1 parent 8601ab1 commit 9bdcca0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js-plugins/dts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export default function farmDtsPlugin(options?: DtsPluginOptions): JsPlugin {
},
transform: {
filters: {
moduleTypes: ['dts']
moduleTypes: ['dts'],
resolvedPaths: options.filters?.resolvedPaths ?? ['.*']
},
async executor(params) {
const { resolvedPath, content } = params;
Expand Down
5 changes: 5 additions & 0 deletions js-plugins/dts/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,9 @@ export interface DtsPluginOptions {
* @default []
*/
aliasesExclude?: (string | RegExp)[];

filters?: {
resolvedPaths?: string[];
moduleTypes?: string[];
};
}

0 comments on commit 9bdcca0

Please sign in to comment.