Skip to content

Commit

Permalink
feat: support unbuild key from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 29, 2021
1 parent da1b6f7 commit ee16f56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ npx unbuild

## Configuration

You can either use `build` key in `package.json` or `build.config.{js,ts,json}` to specify configuration.
You can either use `unbuild` key in `package.json` or `build.config.{js,ts,json}` to specify configuration.

See options [here](./src/types.ts).

Expand Down
2 changes: 1 addition & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function build (rootDir: string, stub: boolean) {
const pkg = _require('./package.json')

// Build context
const ctx: BuildContext = defu(buildConfig, {
const ctx: BuildContext = defu(buildConfig, pkg.unbuild || pkg.build, {
pkg,
rootDir,
entries: [],
Expand Down

0 comments on commit ee16f56

Please sign in to comment.