Skip to content

Commit

Permalink
Merge pull request #68 from AthennaIO/develop
Browse files Browse the repository at this point in the history
Fix CLI bugs using a shell script
  • Loading branch information
jlenon7 authored Apr 1, 2023
2 parents 5bb47d2 + bf94abe commit 3bc3bc8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
strategy:
matrix:
node-version:
- 16.13.1
- 18.x
steps:
- uses: actions/checkout@v2
Expand All @@ -71,4 +72,5 @@ jobs:
run: sh node artisan build

- name: Link the package and run the CLI
shell: bash
run: npm link . && athenna --version
5 changes: 5 additions & 0 deletions bin/.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

SCRIPT_DIR="$(dirname "$(realpath "$0")")"

node --experimental-import-meta-resolve $SCRIPT_DIR/main.js $@
6 changes: 3 additions & 3 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/cli",
"version": "3.1.1",
"version": "3.1.2",
"description": "Athenna CLI to create new Athenna projects.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand All @@ -27,7 +27,7 @@
".athennarc.prod.json"
],
"bin": {
"athenna": "./bin/main.js"
"athenna": "./bin/.bin"
},
"scripts": {
"start": "sh node artisan serve",
Expand Down

0 comments on commit 3bc3bc8

Please sign in to comment.