Skip to content

Commit

Permalink
Clean up exports, only export types/ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Oct 27, 2023
1 parent b7c8053 commit 1d4de13
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 40 deletions.
1 change: 0 additions & 1 deletion entrypoints/internal.cjs

This file was deleted.

1 change: 0 additions & 1 deletion entrypoints/internal.d.cts

This file was deleted.

26 changes: 25 additions & 1 deletion entrypoints/internal.d.mts
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
export * from "./internal"
import type {StateChangeEvent} from '../types/state-change-events.d.cts';

export type RunEvent = {
type: 'stateChange';
stateChange: StateChangeEvent;
} | {
type: 'run';
plan: {
bailWithoutReporting: boolean;
debug: boolean;
failFastEnabled: boolean;
filePathPrefix: string;
files: string[];
matching: boolean;
previousFailures: number;
runOnlyExclusive: boolean;
firstRun: boolean;
};
};

export type {StateChangeEvent} from '../types/state-change-events.d.cts';

export type ObservedRun = {
events: AsyncIterableIterator<RunEvent>;
};
25 changes: 0 additions & 25 deletions entrypoints/internal.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion entrypoints/internal.mjs

This file was deleted.

3 changes: 0 additions & 3 deletions internal.d.ts

This file was deleted.

9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@
}
},
"./internal": {
"import": {
"types": "./entrypoints/internal.d.mts",
"default": "./entrypoints/internal.mjs"
},
"require": {
"types": "./entrypoints/internal.d.cts",
"default": "./entrypoints/internal.cjs"
}
"types": "./entrypoints/internal.d.mts"
}
},
"type": "module",
Expand Down

0 comments on commit 1d4de13

Please sign in to comment.