Skip to content

Commit

Permalink
fix(antfu-collective#111): fix how unbuild bundles json
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Apr 16, 2024
1 parent 69ec774 commit 2b2012c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default defineBuildConfig({
],
rollup: {
inlineDependencies: true,
json: {
compact: true,
namedExports: false,
preferConst: true,
},
},
clean: true,
declaration: true,
Expand Down
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Argv } from 'yargs'
import yargs from 'yargs'
import { hideBin } from 'yargs/helpers'
import c from 'picocolors'
import { version } from '../package.json'
import pkgJson from '../package.json'
import { check } from './commands/check'
import { usage } from './commands/usage'
import { resolveConfig } from './config'
Expand Down Expand Up @@ -142,7 +142,7 @@ yargs(hideBin(process.argv))
)
.showHelpOnFail(false)
.alias('h', 'help')
.version('version', version)
.version('version', pkgJson.version)
.alias('v', 'version')
.help()
.argv

0 comments on commit 2b2012c

Please sign in to comment.