@kunk/cli 3.0.3 → 3.0.4

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/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@kunk/cli",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./index.ts",
7
7
  "module": "./index.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
8
11
  "scripts": {
9
12
  "build": "tsdown",
10
13
  "version:patch": "bun pm version patch",
@@ -17,6 +20,13 @@
17
20
  "bin": {
18
21
  "kunk": "./cli.ts"
19
22
  },
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js",
27
+ "default": "./dist/index.js"
28
+ }
29
+ },
20
30
  "publishConfig": {
21
31
  "access": "public"
22
32
  }
@@ -1,13 +0,0 @@
1
-
2
- $ tsdown
3
- ℹ tsdown v0.20.3 powered by rolldown v1.0.0-rc.3
4
- ℹ config file: /Users/ag/auxo/kunk/packages/cli/tsdown.config.ts
5
- ℹ entry: src/index.ts
6
- ℹ tsconfig: tsconfig.json
7
- ℹ Build start
8
- ℹ Cleaning 2 files
9
- ℹ Granting execute permission to dist/index.mjs
10
- ℹ dist/index.mjs 0.97 kB │ gzip: 0.55 kB
11
- ℹ dist/index.d.mts 0.01 kB │ gzip: 0.03 kB
12
- ℹ 2 files, total: 0.99 kB
13
- ✔ Build complete in 1610ms
File without changes
@@ -1,4 +0,0 @@
1
-
2
- $ bun pm version patch
3
- [0.03ms] ".env"
4
- v3.0.3
package/CHANGELOG.md DELETED
@@ -1,13 +0,0 @@
1
- # @kunk/cli
2
-
3
- ## 3.0.0
4
-
5
- ### Major Changes
6
-
7
- - version 2
8
-
9
- ### Patch Changes
10
-
11
- - Updated dependencies
12
- - @kunk/docker@3.0.0
13
- - @kunk/server@3.0.0
@@ -1,15 +0,0 @@
1
- import { DatabaseConfig } from "@kunk/server"
2
-
3
- export default async function docker_up() {
4
- await import("@kunk/server")
5
- const { PostgresContainer } = await import("@kunk/docker")
6
- const { uri } = DatabaseConfig.get()
7
- const url = new URL(uri)
8
- await PostgresContainer.start({
9
- hostname: url.hostname,
10
- port: url.port,
11
- username: url.username,
12
- password: url.password,
13
- database: url.pathname.slice(1),
14
- })
15
- }
package/src/index.ts DELETED
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env bun
2
-
3
- console.log(process.cwd());
4
-
5
- import { program } from "commander"
6
- import { version } from "package.json"
7
- import docker_up from "@/commands/docker_up";
8
-
9
- program
10
- .name("kunk")
11
- .description("Kunk is a framework for building microservices")
12
- .version(version);
13
-
14
-
15
- program.command("docker up")
16
- .description("Start the docker containers")
17
- .option('--detach', 'run the command in the background')
18
- .action(async (str, options) => {
19
- console.log('Starting docker containers in background...', options)
20
- if (options.detach) {
21
- const child = Bun.spawn(['bun', 'run', 'cli', 'docker', 'up'], {
22
- detached: true,
23
- stdio: ['ignore', 'pipe', 'inherit'],
24
- })
25
- child.unref() // permite que o processo pai encerre sem esperar o filho
26
- console.log(`Processo iniciado em background com PID: ${child.pid}`)
27
- process.exit(0)
28
- } else {
29
- docker_up()
30
- }
31
- });
32
-
33
- program.parse(process.argv);
34
-
package/tsconfig.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "rootDir": ".",
4
- "baseUrl": ".",
5
- "paths": {
6
- "@/*": ["./src/*"]
7
- },
8
- "resolveJsonModule": true,
9
- "esModuleInterop": true
10
- },
11
- "include": [
12
- "src/**/*.ts"
13
- ]
14
- }
package/tsdown.config.ts DELETED
@@ -1,16 +0,0 @@
1
- import { defineConfig } from 'tsdown'
2
-
3
- export default defineConfig({
4
- entry: [
5
- './src/index.ts'
6
- ],
7
- external: [
8
- "@kunk/server",
9
- "@kunk/docker",
10
- "commander"
11
- ],
12
- dts: true,
13
- minify: {
14
- mangle: true,
15
- }
16
- })