Skip to content

Commit

Permalink
docs: make the start simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Dec 7, 2024
1 parent e693f5f commit 982e711
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ npm install --save-dev bunchee typescript

### Configuration

#### Create Entry Files
#### Entry Files

Create your library entry file and package.json.
Create your library entry file and `package.json`.

```sh
cd ./coffee
mkdir src && touch ./src/index.ts
```

Add the exports in `package.json`
Add the exports in `package.json`.

```json
{
Expand All @@ -59,12 +59,8 @@ Add the exports in `package.json`

Run the npm `build` script.

```json
{
"scripts": {
"build": "bunchee"
}
}
```sh
npm run build
```

Then files in `src` folders will be treated as entry files and match the export names in package.json.
Expand Down

0 comments on commit 982e711

Please sign in to comment.