Skip to content

Commit

Permalink
refactor ~ add default export intermediate object for improved `deno …
Browse files Browse the repository at this point in the history
…doc` results
  • Loading branch information
rivy committed Feb 22, 2021
1 parent 1a6dae8 commit 70d9556
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/mod.deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ import { XDG } from '../dist/types/mod.d.ts';
// @ts-ignore
import { adapter } from './platform-adapters/deno.deno.ts';

const _: XDG = Adapt(adapter).XDG;

export type { XDG };
export default Adapt(adapter).XDG as XDG;
export default _;
4 changes: 3 additions & 1 deletion src/mod.esm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ import { Adapt } from './lib/XDG.js';
import type { XDG } from './lib/XDG.js';
import { adapter } from './platform-adapters/node.js';

const _: XDG = Adapt(adapter).XDG as XDG;

export type { XDG };
export default Adapt(adapter).XDG as XDG;
export default _;

0 comments on commit 70d9556

Please sign in to comment.