Skip to content

Commit

Permalink
build(cli): only import required fields from package.json to the bu…
Browse files Browse the repository at this point in the history
…ndle
  • Loading branch information
pi0 committed Jan 22, 2024
1 parent 75a5e7f commit 591dd4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import { defineCommand, runMain, ArgsDef } from "citty";
import pkg from "../package.json";
import { name, version, description } from "../package.json";
import { addDependency, installDependencies, removeDependency } from "./api";

const operationArgs = {
Expand Down Expand Up @@ -61,9 +61,9 @@ const remove = defineCommand({

const main = defineCommand({
meta: {
name: pkg.name,
version: pkg.version,
description: pkg.description,
name,
version,
description,
},
subCommands: {
install,
Expand Down

0 comments on commit 591dd4d

Please sign in to comment.