@crustjs/crust 0.0.3 → 0.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/README.md +5 -5
- package/dist/cli.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,11 +79,11 @@ crust build --target linux-x64 --outfile ./my-cli # Custom output (single
|
|
|
79
79
|
|
|
80
80
|
| Flag | Alias | Type | Default | Description |
|
|
81
81
|
| ----------- | ----- | --------- | ------------------- | -------------------------------------------- |
|
|
82
|
-
| `--entry` | `-e` | `
|
|
83
|
-
| `--outfile` | `-o` | `
|
|
84
|
-
| `--name` | `-n` | `
|
|
85
|
-
| `--minify` | — | `
|
|
86
|
-
| `--target` | `-t` | `
|
|
82
|
+
| `--entry` | `-e` | `"string"` | `src/cli.ts` | Entry file path |
|
|
83
|
+
| `--outfile` | `-o` | `"string"` | — | Output file path (single-target builds only) |
|
|
84
|
+
| `--name` | `-n` | `"string"` | package.json `name` | Base binary name |
|
|
85
|
+
| `--minify` | — | `"boolean"` | `true` | Minify the output |
|
|
86
|
+
| `--target` | `-t` | `"string"` | _(all platforms)_ | Target platform(s); repeatable |
|
|
87
87
|
|
|
88
88
|
#### Output
|
|
89
89
|
|
package/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
// package.json
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "@crustjs/crust",
|
|
14
|
-
version: "0.0.
|
|
14
|
+
version: "0.0.4",
|
|
15
15
|
description: "A TypeScript-first, Bun-native CLI framework with composable modules.",
|
|
16
16
|
type: "module",
|
|
17
17
|
license: "MIT",
|
|
@@ -249,28 +249,28 @@ var buildCommand = defineCommand({
|
|
|
249
249
|
},
|
|
250
250
|
flags: {
|
|
251
251
|
entry: {
|
|
252
|
-
type:
|
|
252
|
+
type: "string",
|
|
253
253
|
description: "Entry file path",
|
|
254
254
|
default: "src/cli.ts",
|
|
255
255
|
alias: "e"
|
|
256
256
|
},
|
|
257
257
|
outfile: {
|
|
258
|
-
type:
|
|
258
|
+
type: "string",
|
|
259
259
|
description: "Output file path (single-target builds only)",
|
|
260
260
|
alias: "o"
|
|
261
261
|
},
|
|
262
262
|
name: {
|
|
263
|
-
type:
|
|
263
|
+
type: "string",
|
|
264
264
|
description: "Binary name (defaults to package.json name or entry filename)",
|
|
265
265
|
alias: "n"
|
|
266
266
|
},
|
|
267
267
|
minify: {
|
|
268
|
-
type:
|
|
268
|
+
type: "boolean",
|
|
269
269
|
description: "Minify the output",
|
|
270
270
|
default: true
|
|
271
271
|
},
|
|
272
272
|
target: {
|
|
273
|
-
type:
|
|
273
|
+
type: "string",
|
|
274
274
|
multiple: true,
|
|
275
275
|
description: "Target platform(s) to compile for (e.g. linux-x64, darwin-arm64). Omit to build all.",
|
|
276
276
|
alias: "t"
|