Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Fix import logic failing .d.ts files (#9)
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
rijkvanzanten committed Jul 25, 2022
1 parent 1aabda5 commit 9f9c84a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,11 @@ export default async function <T>(argv: string[]): Promise<CommandResult<T>> {

loading.state = true;

// no exclusions
runtime.addDefaultPlugin(path.join(__dirname, 'cli'), {
name: 'directus',
hidden: false,
extensionFilePattern: hasTsNode() ? [`*.{js,ts}`, `!*.test.{js,ts}`] : [`*.{js}`, `!*.test.{js}`],
commandFilePattern: hasTsNode() ? [`*.{js,ts}`, `!*.test.{js,ts}`] : [`*.{js}`, `!*.test.{js}`],
});

runtime.addPlugin('./node_modules/directus/dist/cli/new', {
Expand Down

0 comments on commit 9f9c84a

Please sign in to comment.