Skip to content

Commit

Permalink
refactor!: remove default export
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Mar 27, 2023
1 parent b3176a4 commit d5c732f
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 66 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ npm i breadc
Try [./examples/echo.ts](./examples/echo.ts).

```ts
import breadc from 'breadc'
import { breadc } from 'breadc'

const cli = breadc('echo', { version: '1.0.0' })
.option('--host <host>', { default: 'localhost' })
Expand Down
2 changes: 1 addition & 1 deletion examples/echo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import breadc from '../packages/breadc/src';
import { breadc } from '../packages/breadc/src';

const cli = breadc('echo', { version: '1.0.0' })
.option('--host <host>', { default: 'localhost' })
Expand Down
2 changes: 1 addition & 1 deletion examples/genType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import breadc from '../packages/breadc/src';
import { breadc } from '../packages/breadc/src';

const cli = breadc('genType');

Expand Down
2 changes: 1 addition & 1 deletion examples/vite.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import breadc from '../packages/breadc/src';
import { breadc } from '../packages/breadc/src';

const vite = breadc('vite', {
version: '1.0.0',
Expand Down
2 changes: 1 addition & 1 deletion packages/breadc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ npm i breadc
Try [./examples/echo.ts](./examples/echo.ts).

```ts
import breadc from 'breadc'
import { breadc } from 'breadc'

const cli = breadc('echo', { version: '1.0.0' })
.option('--host <host>', { default: 'localhost' })
Expand Down
4 changes: 0 additions & 4 deletions packages/breadc/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { breadc } from './breadc';

export type {
AppOption,
Breadc,
Expand All @@ -16,5 +14,3 @@ export { definePlugin } from './plugin';
export { makeTreeNode } from './parser';

export { ParseError, BreadcError } from './error';

export default breadc;
57 changes: 0 additions & 57 deletions packages/breadc/src/logger.ts

This file was deleted.

0 comments on commit d5c732f

Please sign in to comment.