Skip to content

Commit

Permalink
fix(cli): Module errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jan 9, 2025
1 parent e531af0 commit e96300e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions apps/cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"name": "@keyshade/cli",
"version": "2.0.4",
"version": "2.0.5",
"description": "CLI for keyshade",
"main": "dist/index.js",
"main": "dist/index.cjs",
"module": "dist/index.js",
"private": false,
"repository": {
"url": "https://github.com/keyshade-xyz/keyshade",
"type": "git"
},
"bin": {
"keyshade": "dist/index.js"
"keyshade": "dist/index.cjs"
},
"type": "module",
"scripts": {
"build": "esbuild src/index.ts --bundle --platform=node --outdir=dist",
"build": "esbuild src/index.ts --bundle --platform=node --outdir=dist --format=esm --banner:js='#!/usr/bin/env node' && esbuild src/index.ts --bundle --platform=node --outdir=dist --format=cjs --banner:js='#!/usr/bin/env node'",
"start": "node dist/index.js",
"dev": "pnpm build && node dist/index.js",
"lint": "eslint \"src/**/*.ts\" --fix",
Expand Down
2 changes: 2 additions & 0 deletions apps/cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

import { Command } from 'commander'
import type BaseCommand from './commands/base.command'
import InitCommand from './commands/init.command'
Expand Down

0 comments on commit e96300e

Please sign in to comment.