Skip to content

Commit

Permalink
fix(bin): fix bin command
Browse files Browse the repository at this point in the history
  • Loading branch information
radyakaze committed Aug 12, 2024
1 parent f787ae3 commit ec152ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bin/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

import '../dist/bin/index.mjs'
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
"main": "./dist/module.cjs",
"types": "./dist/types.d.ts",
"files": [
"dist"
"dist",
"template",
"bin"
],
"bin": "./dist/bin/index.mjs",
"bin": "./bin/index.mjs",
"scripts": {
"prepack": "nuxt-module-build build",
"dev": "nuxi dev playground",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,7 @@ __metadata:
vitest: "npm:^2.0.5"
vue-tsc: "npm:^2.0.26"
bin:
nuxt-proxy-party: ./dist/bin/index.mjs
nuxt-proxy-party: ./bin/index.mjs
languageName: unknown
linkType: soft

Expand Down

0 comments on commit ec152ab

Please sign in to comment.