Skip to content

Commit

Permalink
Wrap up
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Mar 26, 2024
1 parent 4945f39 commit 29eec2f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/knip/src/plugins/wrangler/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { hasDependency } from '#p/util/plugin.js';
import type { IgnorePatterns } from '#p/types/config.js';
import type { IsPluginEnabled, Plugin, ResolveEntryPaths } from '#p/types/plugins.js';
import type { WranglerConfig } from './types.js';

// https://developers.cloudflare.com/workers/wrangler/configuration/

const title = 'wrangler';
const title = 'Wrangler';

const enablers: IgnorePatterns = ['wrangler'];
const enablers = ['wrangler'];

const isEnabled: IsPluginEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);

const config: string[] = ['wrangler.{json,toml}'];
const config = ['wrangler.{json,toml}'];

const resolveEntryPaths: ResolveEntryPaths<WranglerConfig> = async config => {
return config.main ? [config.main] : [];
Expand Down

0 comments on commit 29eec2f

Please sign in to comment.