@kunk/cli 3.0.4 → 3.0.5

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env bun
2
- import{program}from"commander";import{DatabaseConfig}from"@kunk/server";var version=`3.0.3`;async function docker_up(){await import(`@kunk/server`);let{PostgresContainer:e}=await import(`@kunk/docker`),{uri:n}=DatabaseConfig.get(),r=new URL(n);await e.start({hostname:r.hostname,port:r.port,username:r.username,password:r.password,database:r.pathname.slice(1)})}console.log(process.cwd()),program.name(`kunk`).description(`Kunk is a framework for building microservices`).version(version),program.command(`docker up`).description(`Start the docker containers`).option(`--detach`,`run the command in the background`).action(async(e,t)=>{if(console.log(`Starting docker containers in background...`,t),t.detach){let e=Bun.spawn([`bun`,`run`,`cli`,`docker`,`up`],{detached:!0,stdio:[`ignore`,`pipe`,`inherit`]});e.unref(),console.log(`Processo iniciado em background com PID: ${e.pid}`),process.exit(0)}else docker_up()}),program.parse(process.argv);export{};
2
+ import{program}from"commander";import{DatabaseConfig}from"@kunk/server";var version=`3.0.4`;async function docker_up(){await import(`@kunk/server`);let{PostgresContainer:e}=await import(`@kunk/docker`),{uri:n}=DatabaseConfig.get(),r=new URL(n);await e.start({hostname:r.hostname,port:r.port,username:r.username,password:r.password,database:r.pathname.slice(1)})}console.log(process.cwd()),program.name(`kunk`).description(`Kunk is a framework for building microservices`).version(version),program.command(`docker up`).description(`Start the docker containers`).option(`--detach`,`run the command in the background`).action(async(e,t)=>{if(console.log(`Starting docker containers in background...`,t),t.detach){let e=Bun.spawn([`bun`,`run`,`cli`,`docker`,`up`],{detached:!0,stdio:[`ignore`,`pipe`,`inherit`]});e.unref(),console.log(`Processo iniciado em background com PID: ${e.pid}`),process.exit(0)}else docker_up()}),program.parse(process.argv);export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kunk/cli",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -22,9 +22,9 @@
22
22
  },
23
23
  "exports": {
24
24
  ".": {
25
- "types": "./dist/index.d.ts",
26
- "import": "./dist/index.js",
27
- "default": "./dist/index.js"
25
+ "types": "./dist/index.d.mts",
26
+ "import": "./dist/index.mjs",
27
+ "default": "./dist/index.mjs"
28
28
  }
29
29
  },
30
30
  "publishConfig": {