Skip to content

Commit

Permalink
refactor(cli): use destructuring assignment
Browse files Browse the repository at this point in the history
This ensures that the build file contains only the specified properties.
  • Loading branch information
aster-mnch committed Nov 16, 2024
1 parent 7a9ee35 commit 90cdd21
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { defineCommand, runMain as runMainOrig } from 'citty';
import { process } from 'std-env';
import pkgInfo from '../package.json' with { type: 'json' };
import { description, name, version } from '../package.json' with {
type: 'json',
};
import { download } from './octoget';

const main = defineCommand({
meta: {
name: pkgInfo.name,
version: pkgInfo.version,
description: pkgInfo.description,
name,
version,
description,
},
args: {
path: {
Expand Down

0 comments on commit 90cdd21

Please sign in to comment.