@carno.js/cli 0.2.5 → 0.3.0

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/dist/cli.ts DELETED
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import 'reflect-metadata';
4
- import { Command } from 'commander';
5
- import { Migrator } from './migrator/migrator';
6
- import { RoutesCommand } from './routes/routes-command';
7
-
8
- const program = new Command();
9
-
10
- program.name('[npx|bunx] cli').description('CLI to Carno.js ORM ');
11
-
12
- program
13
- .command('routes [file]')
14
- .description('list all registered routes')
15
- .action(async (file) => {
16
- const routesCommand = new RoutesCommand();
17
- await routesCommand.listRoutes(file);
18
- process.exit(0);
19
- });
20
-
21
- program
22
- .command('migration:generate')
23
- .description('generate a new migration file with a diff')
24
- .action(async (str, options) => {
25
- const migrator = new Migrator();
26
- await migrator.generateMigration();
27
- process.exit(0);
28
- });
29
-
30
- program
31
- .command('migration:run')
32
- .description('run all pending migrations')
33
- .action(async (str, options) => {
34
- const migrator = new Migrator();
35
- await migrator.migrate();
36
- process.exit(0);
37
- });
38
-
39
- program.parse();
package/dist/run-cli.sh DELETED
@@ -1,2 +0,0 @@
1
- #!/bin/bash
2
- node --experimental-modules ./node_modules/@carno.js/cli/dist/cli.js "$@"