@bejibun/core 0.1.44 → 0.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  <div align="center">
2
2
 
3
+ <img src="https://github.com/crenata/bejibun/blob/master/public/images/bejibun.png?raw=true" width="150" alt="Bejibun" />
4
+
3
5
  ![GitHub top language](https://img.shields.io/github/languages/top/crenata/bejibun-core)
4
6
  ![GitHub all releases](https://img.shields.io/github/downloads/crenata/bejibun-core/total)
5
7
  ![GitHub issues](https://img.shields.io/github/issues/crenata/bejibun-core)
@@ -35,9 +37,12 @@ Options:
35
37
 
36
38
  Commands:
37
39
  db:seed Run database seeders
40
+ hello:world Run hello world
38
41
  install <packages...> Install package dependencies
39
42
  maintenance:down [options] Turn app into maintenance mode
40
43
  maintenance:up Turn app into live mode
44
+ make:migration <file> Create a new migration file
45
+ make:seeder <file> Create a new seeder file
41
46
  migrate:fresh [options] Rollback all migrations and re-run migrations
42
47
  migrate:latest Run latest migration
43
48
  migrate:rollback [options] Rollback the latest migrations
@@ -80,7 +85,7 @@ If you find this project helpful and want to support it, you can donate via PayP
80
85
 
81
86
  Or if you are prefer using crypto :
82
87
 
83
- | EVM | Solana |
84
- | --- | ------ |
88
+ | EVM | Solana |
89
+ | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
85
90
  | <img src="https://github.com/crenata/bejibun/blob/master/public/images/EVM.png?raw=true" width="150" /> | <img src="https://github.com/crenata/bejibun/blob/master/public/images/SOL.png?raw=true" width="150" /> |
86
- | 0xdABe8750061410D35cE52EB2a418c8cB004788B3 | GAnoyvy9p3QFyxikWDh9hA3fmSk2uiPLNWyQ579cckMn |
91
+ | 0xdABe8750061410D35cE52EB2a418c8cB004788B3 | GAnoyvy9p3QFyxikWDh9hA3fmSk2uiPLNWyQ579cckMn |
@@ -1,4 +1,6 @@
1
1
  import App from "@bejibun/app";
2
+ import Logger from "@bejibun/logger";
3
+ import { isEmpty } from "@bejibun/utils";
2
4
  export default class InstallCommand {
3
5
  /**
4
6
  * The name and signature of the console command.
@@ -27,6 +29,10 @@ export default class InstallCommand {
27
29
  ["<packages...>", "Install package dependencies"]
28
30
  ];
29
31
  async handle(options, args) {
32
+ if (isEmpty(args)) {
33
+ Logger.setContext("APP").error("There is no packages provided.");
34
+ return;
35
+ }
30
36
  for (const pack of args) {
31
37
  Bun.spawnSync(["bun", "add", pack], {
32
38
  cwd: App.Path.rootPath(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bejibun/core",
3
- "version": "0.1.44",
3
+ "version": "0.1.46",
4
4
  "author": "Havea Crenata <havea.crenata@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,12 +10,12 @@
10
10
  "module": "index.js",
11
11
  "dependencies": {
12
12
  "@bejibun/app": "^0.1.19",
13
- "@bejibun/cors": "^0.1.12",
14
- "@bejibun/database": "^0.1.1",
15
- "@bejibun/logger": "^0.1.18",
16
- "@bejibun/utils": "^0.1.14",
13
+ "@bejibun/cors": "^0.1.14",
14
+ "@bejibun/database": "^0.1.14",
15
+ "@bejibun/logger": "^0.1.19",
16
+ "@bejibun/utils": "^0.1.17",
17
17
  "@vinejs/vine": "^3.0.1",
18
- "commander": "^14.0.1",
18
+ "commander": "^14.0.2",
19
19
  "luxon": "^3.7.2",
20
20
  "objection": "^3.1.5"
21
21
  },