celery-env 0.1.1 → 0.1.2
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 +1 -1
- package/docs/BENCHMARKS.md +1 -1
- package/docs/CLI.md +1 -0
- package/docs/COMPARISON.md +1 -1
- package/docs/assets/celery-mark.svg +26 -4
- package/package.json +1 -1
- package/src/cli.js +13 -2
package/README.md
CHANGED
|
@@ -161,7 +161,7 @@ Current npm package metadata:
|
|
|
161
161
|
|
|
162
162
|
| Package | Version checked | Runtime deps | Unpacked npm size | Files |
|
|
163
163
|
| --- | ---: | ---: | ---: | ---: |
|
|
164
|
-
| `celery-env` | 0.1.
|
|
164
|
+
| `celery-env` | 0.1.2 | 0 | 95.7 kB | 20 |
|
|
165
165
|
| `zod` | 4.4.3 | 0 | 4.56 MB | 718 |
|
|
166
166
|
| `valibot` | 1.4.1 | 0 | 1.84 MB | 9 |
|
|
167
167
|
| `envalid` | 8.2.0 | 1 | 88.8 kB | 39 |
|
package/docs/BENCHMARKS.md
CHANGED
|
@@ -73,7 +73,7 @@ on 2026-06-25:
|
|
|
73
73
|
|
|
74
74
|
| Package | Version Checked | Runtime Deps | Unpacked npm Size | Files |
|
|
75
75
|
| --- | ---: | ---: | ---: | ---: |
|
|
76
|
-
| `celery-env` | 0.1.
|
|
76
|
+
| `celery-env` | 0.1.2 | 0 | 95.7 kB | 20 |
|
|
77
77
|
| `zod` | 4.4.3 | 0 | 4.56 MB | 718 |
|
|
78
78
|
| `valibot` | 1.4.1 | 0 | 1.84 MB | 9 |
|
|
79
79
|
| `envalid` | 8.2.0 | 1 | 88.8 kB | 39 |
|
package/docs/CLI.md
CHANGED
|
@@ -45,6 +45,7 @@ Use `generate` after editing `env.schema.mjs`.
|
|
|
45
45
|
| `--fail-fast` | Throw on the first error instead of aggregating errors. |
|
|
46
46
|
| `--force` | Overwrite existing generated files. |
|
|
47
47
|
| `--optimize speed` | Emit larger speed-prioritized code for supported cases. |
|
|
48
|
+
| `--version`, `-v` | Print the installed CLI version. |
|
|
48
49
|
|
|
49
50
|
## Recommended App Command
|
|
50
51
|
|
package/docs/COMPARISON.md
CHANGED
|
@@ -75,7 +75,7 @@ This table is npm package metadata, not benchmark speed:
|
|
|
75
75
|
|
|
76
76
|
| Package | Version Checked | Runtime Deps | Unpacked npm Size | Files |
|
|
77
77
|
| --- | ---: | ---: | ---: | ---: |
|
|
78
|
-
| `celery-env` | 0.1.
|
|
78
|
+
| `celery-env` | 0.1.2 | 0 | 95.7 kB | 20 |
|
|
79
79
|
| `zod` | 4.4.3 | 0 | 4.56 MB | 718 |
|
|
80
80
|
| `valibot` | 1.4.1 | 0 | 1.84 MB | 9 |
|
|
81
81
|
| `envalid` | 8.2.0 | 1 | 88.8 kB | 39 |
|
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="title desc">
|
|
2
2
|
<title id="title">celery-env mark</title>
|
|
3
|
-
<desc id="desc">A
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
<desc id="desc">A dark green terminal-inspired C mark with celery leaves.</desc>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="bg" x1="18" y1="10" x2="110" y2="118" gradientUnits="userSpaceOnUse">
|
|
6
|
+
<stop stop-color="#064E3B"/>
|
|
7
|
+
<stop offset="1" stop-color="#022C22"/>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<linearGradient id="leaf" x1="38" y1="18" x2="94" y2="108" gradientUnits="userSpaceOnUse">
|
|
10
|
+
<stop stop-color="#ECFCCB"/>
|
|
11
|
+
<stop offset="0.48" stop-color="#86EFAC"/>
|
|
12
|
+
<stop offset="1" stop-color="#22C55E"/>
|
|
13
|
+
</linearGradient>
|
|
14
|
+
<filter id="shadow" x="13" y="16" width="102" height="99" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse">
|
|
15
|
+
<feDropShadow dx="0" dy="8" stdDeviation="7" flood-color="#011B16" flood-opacity="0.35"/>
|
|
16
|
+
</filter>
|
|
17
|
+
</defs>
|
|
18
|
+
<rect width="128" height="128" rx="30" fill="url(#bg)"/>
|
|
19
|
+
<path d="M104 78c0 18-13 29-36 29H46c-14 0-24-10-24-24V54c0-23 15-37 40-37h42v61Z" fill="#0F766E" opacity="0.42"/>
|
|
20
|
+
<g filter="url(#shadow)">
|
|
21
|
+
<path d="M87 92c-7 7-16 11-27 11-23 0-39-16-39-39 0-24 17-40 41-40 11 0 20 4 27 11" stroke="url(#leaf)" stroke-width="15" stroke-linecap="round"/>
|
|
22
|
+
<path d="M69 24c4-10 12-15 24-15-1 12-8 20-21 24" fill="#BBF7D0"/>
|
|
23
|
+
<path d="M57 25c-2-10-8-17-19-20-2 12 3 21 16 28" fill="#4ADE80"/>
|
|
24
|
+
<path d="M66 30c2-11 9-20 21-25 1 14-5 24-19 32" fill="#86EFAC"/>
|
|
25
|
+
</g>
|
|
26
|
+
<path d="M48 57l13 9-13 9" stroke="#ECFDF5" stroke-width="7" stroke-linecap="round" stroke-linejoin="round"/>
|
|
27
|
+
<path d="M70 77h24" stroke="#D9F99D" stroke-width="7" stroke-linecap="round"/>
|
|
28
|
+
<path d="M38 33h50" stroke="#ECFDF5" stroke-opacity="0.18" stroke-width="4" stroke-linecap="round"/>
|
|
7
29
|
</svg>
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { constants } from "node:fs";
|
|
3
|
-
import { mkdir, open, writeFile } from "node:fs/promises";
|
|
3
|
+
import { mkdir, open, readFile, writeFile } from "node:fs/promises";
|
|
4
4
|
import { dirname, resolve } from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
@@ -9,6 +9,10 @@ const NOFOLLOW = constants.O_NOFOLLOW || 0;
|
|
|
9
9
|
const args = parseArgs(process.argv.slice(2));
|
|
10
10
|
|
|
11
11
|
if (args.help) usage(0);
|
|
12
|
+
if (args.version) {
|
|
13
|
+
console.log(await packageVersion());
|
|
14
|
+
process.exit(0);
|
|
15
|
+
}
|
|
12
16
|
|
|
13
17
|
if (args.command === "init") {
|
|
14
18
|
await init(args);
|
|
@@ -61,6 +65,7 @@ function parseArgs(argv) {
|
|
|
61
65
|
for (let i = 0; i < argv.length; i += 1) {
|
|
62
66
|
const arg = argv[i];
|
|
63
67
|
if (arg === "--help" || arg === "-h") out.help = true;
|
|
68
|
+
else if (arg === "--version" || arg === "-v") out.version = true;
|
|
64
69
|
else if (arg === "--schema") out.schema = argv[++i];
|
|
65
70
|
else if (arg === "--target") out.target = argv[++i];
|
|
66
71
|
else if (arg === "--out") out.out = argv[++i];
|
|
@@ -124,10 +129,16 @@ export default defineEnv({
|
|
|
124
129
|
throw new Error(`Unknown init target: ${target}`);
|
|
125
130
|
}
|
|
126
131
|
|
|
132
|
+
async function packageVersion() {
|
|
133
|
+
const pkg = JSON.parse(await readFile(new URL("../package.json", import.meta.url), "utf8"));
|
|
134
|
+
return pkg.version;
|
|
135
|
+
}
|
|
136
|
+
|
|
127
137
|
function usage(code) {
|
|
128
138
|
console.log(`Usage:
|
|
129
139
|
celery-env --schema env.schema.mjs --out src/env.mjs [--types src/env.d.ts]
|
|
130
140
|
celery-env generate --schema env.schema.mjs --out src/env.mjs [--types src/env.d.ts] [--example .env.example] [--force] [--optimize speed]
|
|
131
|
-
celery-env init --target node|next|vite --schema env.schema.mjs
|
|
141
|
+
celery-env init --target node|next|vite --schema env.schema.mjs
|
|
142
|
+
celery-env --version`);
|
|
132
143
|
process.exit(code);
|
|
133
144
|
}
|