buncargo 1.0.13 → 1.0.17
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/bin.ts +17 -1
- package/cli.ts +4 -10
- package/core/process.ts +36 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +22 -8
- package/dist/cli.js +3 -3
- package/dist/core/index.js +4 -2
- package/dist/core/process.d.ts +7 -0
- package/dist/core/process.js +3 -1
- package/dist/core/watchdog.js +2 -2
- package/dist/environment.js +3 -3
- package/dist/index-1yvbwj4k.js +274 -0
- package/dist/index-2f47khe5.js +390 -0
- package/dist/index-8hbbj1mp.js +136 -0
- package/dist/index-g6eb5wdw.js +132 -0
- package/dist/index-ggq3yryx.js +120 -0
- package/dist/index-kf3dhser.js +160 -0
- package/dist/index-qw4093g2.js +58 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -6
- package/dist/loader.js +4 -4
- package/index.ts +1 -0
- package/package.json +140 -140
- package/readme.md +3 -1
package/package.json
CHANGED
|
@@ -1,142 +1,142 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
2
|
+
"name": "buncargo",
|
|
3
|
+
"version": "1.0.17",
|
|
4
|
+
"description": "A Bun-powered development environment CLI for managing Docker Compose services, dev servers, and environment variables",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/HansKristoffer/buncargo.git"
|
|
13
|
+
},
|
|
14
|
+
"author": "Kristoffer Hansen",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"bun",
|
|
17
|
+
"dev-tools",
|
|
18
|
+
"docker",
|
|
19
|
+
"docker-compose",
|
|
20
|
+
"development",
|
|
21
|
+
"cli",
|
|
22
|
+
"monorepo",
|
|
23
|
+
"dev-server",
|
|
24
|
+
"environment"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"bun": ">=1.0.0"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"*.ts",
|
|
31
|
+
"core/*.ts",
|
|
32
|
+
"dist",
|
|
33
|
+
"!*.test.ts",
|
|
34
|
+
"!core/*.test.ts"
|
|
35
|
+
],
|
|
36
|
+
"bin": {
|
|
37
|
+
"dev-tools": "./dist/bin.js",
|
|
38
|
+
"buncargo": "./dist/bin.js"
|
|
39
|
+
},
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"bun": "./index.ts",
|
|
44
|
+
"import": "./dist/index.js",
|
|
45
|
+
"default": "./dist/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./types": {
|
|
48
|
+
"types": "./dist/types.d.ts",
|
|
49
|
+
"bun": "./types.ts",
|
|
50
|
+
"import": "./dist/types.js",
|
|
51
|
+
"default": "./dist/types.js"
|
|
52
|
+
},
|
|
53
|
+
"./config": {
|
|
54
|
+
"types": "./dist/config.d.ts",
|
|
55
|
+
"bun": "./config.ts",
|
|
56
|
+
"import": "./dist/config.js",
|
|
57
|
+
"default": "./dist/config.js"
|
|
58
|
+
},
|
|
59
|
+
"./environment": {
|
|
60
|
+
"types": "./dist/environment.d.ts",
|
|
61
|
+
"bun": "./environment.ts",
|
|
62
|
+
"import": "./dist/environment.js",
|
|
63
|
+
"default": "./dist/environment.js"
|
|
64
|
+
},
|
|
65
|
+
"./core/ports": {
|
|
66
|
+
"types": "./dist/core/ports.d.ts",
|
|
67
|
+
"bun": "./core/ports.ts",
|
|
68
|
+
"import": "./dist/core/ports.js",
|
|
69
|
+
"default": "./dist/core/ports.js"
|
|
70
|
+
},
|
|
71
|
+
"./core/docker": {
|
|
72
|
+
"types": "./dist/core/docker.d.ts",
|
|
73
|
+
"bun": "./core/docker.ts",
|
|
74
|
+
"import": "./dist/core/docker.js",
|
|
75
|
+
"default": "./dist/core/docker.js"
|
|
76
|
+
},
|
|
77
|
+
"./core/network": {
|
|
78
|
+
"types": "./dist/core/network.d.ts",
|
|
79
|
+
"bun": "./core/network.ts",
|
|
80
|
+
"import": "./dist/core/network.js",
|
|
81
|
+
"default": "./dist/core/network.js"
|
|
82
|
+
},
|
|
83
|
+
"./core/process": {
|
|
84
|
+
"types": "./dist/core/process.d.ts",
|
|
85
|
+
"bun": "./core/process.ts",
|
|
86
|
+
"import": "./dist/core/process.js",
|
|
87
|
+
"default": "./dist/core/process.js"
|
|
88
|
+
},
|
|
89
|
+
"./core/watchdog": {
|
|
90
|
+
"types": "./dist/core/watchdog.d.ts",
|
|
91
|
+
"bun": "./core/watchdog.ts",
|
|
92
|
+
"import": "./dist/core/watchdog.js",
|
|
93
|
+
"default": "./dist/core/watchdog.js"
|
|
94
|
+
},
|
|
95
|
+
"./core/utils": {
|
|
96
|
+
"types": "./dist/core/utils.d.ts",
|
|
97
|
+
"bun": "./core/utils.ts",
|
|
98
|
+
"import": "./dist/core/utils.js",
|
|
99
|
+
"default": "./dist/core/utils.js"
|
|
100
|
+
},
|
|
101
|
+
"./cli": {
|
|
102
|
+
"types": "./dist/cli.d.ts",
|
|
103
|
+
"bun": "./cli.ts",
|
|
104
|
+
"import": "./dist/cli.js",
|
|
105
|
+
"default": "./dist/cli.js"
|
|
106
|
+
},
|
|
107
|
+
"./lint": {
|
|
108
|
+
"types": "./dist/lint.d.ts",
|
|
109
|
+
"bun": "./lint.ts",
|
|
110
|
+
"import": "./dist/lint.js",
|
|
111
|
+
"default": "./dist/lint.js"
|
|
112
|
+
},
|
|
113
|
+
"./loader": {
|
|
114
|
+
"types": "./dist/loader.d.ts",
|
|
115
|
+
"bun": "./loader.ts",
|
|
116
|
+
"import": "./dist/loader.js",
|
|
117
|
+
"default": "./dist/loader.js"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"scripts": {
|
|
121
|
+
"build": "bun run build:js && bun run build:types",
|
|
122
|
+
"build:js": "bun build ./index.ts ./bin.ts ./cli.ts ./config.ts ./environment.ts ./lint.ts ./loader.ts ./prisma.ts ./types.ts ./core/docker.ts ./core/index.ts ./core/network.ts ./core/ports.ts ./core/process.ts ./core/utils.ts ./core/watchdog.ts ./core/watchdog-runner.ts --outdir ./dist --target node --packages external --splitting",
|
|
123
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
124
|
+
"prepublishOnly": "bun run build",
|
|
125
|
+
"publish:patch": "npm version patch && npm publish",
|
|
126
|
+
"publish:minor": "npm version minor && npm publish",
|
|
127
|
+
"publish:major": "npm version major && npm publish",
|
|
128
|
+
"lint": "bun run typecheck && biome check",
|
|
129
|
+
"lint:write": "bun run typecheck && biome check --fix && biome format",
|
|
130
|
+
"typecheck": "tsgo --incremental"
|
|
131
|
+
},
|
|
132
|
+
"devDependencies": {
|
|
133
|
+
"@types/bun": "1.3.2",
|
|
134
|
+
"@biomejs/biome": "2.3.4",
|
|
135
|
+
"@typescript/native-preview": "7.0.0-dev.20260127.1",
|
|
136
|
+
"typescript": "^5.7.0"
|
|
137
|
+
},
|
|
138
|
+
"dependencies": {
|
|
139
|
+
"fast-glob": "^3.3.3",
|
|
140
|
+
"picocolors": "^1.1.1"
|
|
141
|
+
}
|
|
142
142
|
}
|
package/readme.md
CHANGED
|
@@ -62,6 +62,7 @@ bunx buncargo dev # Start containers + dev servers
|
|
|
62
62
|
bunx buncargo dev --up-only # Start containers only
|
|
63
63
|
bunx buncargo dev --down # Stop containers
|
|
64
64
|
bunx buncargo dev --reset # Stop and remove volumes
|
|
65
|
+
bunx buncargo typecheck # Run TypeScript typecheck across workspaces
|
|
65
66
|
bunx buncargo prisma studio # Run prisma with correct DATABASE_URL
|
|
66
67
|
bunx buncargo env # Print ports/urls as JSON
|
|
67
68
|
```
|
|
@@ -73,6 +74,7 @@ Or add scripts to `package.json`:
|
|
|
73
74
|
"scripts": {
|
|
74
75
|
"dev": "bunx buncargo dev",
|
|
75
76
|
"dev:docker:down": "bunx buncargo dev --down",
|
|
77
|
+
"typecheck": "bunx buncargo typecheck",
|
|
76
78
|
"prisma": "bunx buncargo prisma"
|
|
77
79
|
}
|
|
78
80
|
}
|
|
@@ -154,6 +156,7 @@ Containers automatically stop after 10 minutes of inactivity when running via CL
|
|
|
154
156
|
```
|
|
155
157
|
COMMANDS:
|
|
156
158
|
dev Start the development environment
|
|
159
|
+
typecheck Run TypeScript typecheck across workspaces
|
|
157
160
|
prisma <args> Run Prisma CLI with correct DATABASE_URL
|
|
158
161
|
env Print environment info as JSON
|
|
159
162
|
help Show help
|
|
@@ -165,7 +168,6 @@ DEV OPTIONS:
|
|
|
165
168
|
--reset Stop containers and remove volumes
|
|
166
169
|
--migrate Run migrations only
|
|
167
170
|
--seed Run seeders
|
|
168
|
-
--lint Run typecheck (no Docker required)
|
|
169
171
|
```
|
|
170
172
|
|
|
171
173
|
## Environment Variables
|