Skip to content

Commit 5ecf804

Browse files
farnabazatinux
andauthored
feat: introduce nuxthub ensure command to install module if it's missing (#52)
Co-authored-by: Sébastien Chopin <[email protected]>
1 parent 0f88872 commit 5ecf804

File tree

8 files changed

+140
-78
lines changed

8 files changed

+140
-78
lines changed

.github/workflows/pr-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14-
- run: corepack enable
14+
- name: enable corepack
15+
run: npm i -g --force corepack && corepack enable
1516
- uses: actions/setup-node@v4
1617
with:
1718
node-version: 20

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ COMMANDS
3535
logs Display the logs of a deployment.
3636
whoami Shows the username of the currently logged in user.
3737
database Manage database migrations.
38+
ensure Ensure the NuxtHub Core module is installed and registered in the project.
3839
3940
Use nuxthub <command> --help for more information about a command.
4041
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"get-port-please": "^3.1.2",
4040
"gzip-size": "^7.0.0",
4141
"h3": "^1.14.0",
42+
"jiti": "^2.4.2",
4243
"listhen": "^1.9.0",
4344
"load-json-file": "^7.0.1",
4445
"mime": "^4.0.6",

pnpm-lock.yaml

Lines changed: 72 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)