@storm-software/untyped 0.17.30 → 0.17.32
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/bin/untyped.cjs +26 -8
- package/bin/untyped.js +26 -8
- package/dist/types-DZYle2N0.d.cts +217 -0
- package/dist/types-DZYle2N0.d.ts +217 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/untyped.cjs
CHANGED
|
@@ -41468,12 +41468,12 @@ var init_dist5 = __esm({
|
|
|
41468
41468
|
}
|
|
41469
41469
|
});
|
|
41470
41470
|
|
|
41471
|
-
// ../../node_modules/.pnpm/dotenv@16.
|
|
41471
|
+
// ../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/package.json
|
|
41472
41472
|
var require_package = __commonJS({
|
|
41473
|
-
"../../node_modules/.pnpm/dotenv@16.
|
|
41473
|
+
"../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/package.json"(exports2, module2) {
|
|
41474
41474
|
module2.exports = {
|
|
41475
41475
|
name: "dotenv",
|
|
41476
|
-
version: "16.
|
|
41476
|
+
version: "16.6.0",
|
|
41477
41477
|
description: "Loads environment variables from .env file",
|
|
41478
41478
|
main: "lib/main.js",
|
|
41479
41479
|
types: "lib/main.d.ts",
|
|
@@ -41536,9 +41536,9 @@ var require_package = __commonJS({
|
|
|
41536
41536
|
}
|
|
41537
41537
|
});
|
|
41538
41538
|
|
|
41539
|
-
// ../../node_modules/.pnpm/dotenv@16.
|
|
41539
|
+
// ../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/lib/main.js
|
|
41540
41540
|
var require_main = __commonJS({
|
|
41541
|
-
"../../node_modules/.pnpm/dotenv@16.
|
|
41541
|
+
"../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/lib/main.js"(exports2, module2) {
|
|
41542
41542
|
init_cjs_shims();
|
|
41543
41543
|
var fs3 = require("fs");
|
|
41544
41544
|
var path2 = require("path");
|
|
@@ -41568,7 +41568,8 @@ var require_main = __commonJS({
|
|
|
41568
41568
|
}
|
|
41569
41569
|
function _parseVault(options) {
|
|
41570
41570
|
const vaultPath = _vaultPath(options);
|
|
41571
|
-
|
|
41571
|
+
options.path = vaultPath;
|
|
41572
|
+
const result = DotenvModule.configDotenv(options);
|
|
41572
41573
|
if (!result.parsed) {
|
|
41573
41574
|
const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
41574
41575
|
err.code = "MISSING_DATA";
|
|
@@ -41597,6 +41598,9 @@ var require_main = __commonJS({
|
|
|
41597
41598
|
function _debug(message) {
|
|
41598
41599
|
console.log(`[dotenv@${version3}][DEBUG] ${message}`);
|
|
41599
41600
|
}
|
|
41601
|
+
function _log(message) {
|
|
41602
|
+
console.log(`[dotenv@${version3}] ${message}`);
|
|
41603
|
+
}
|
|
41600
41604
|
function _dotenvKey(options) {
|
|
41601
41605
|
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
41602
41606
|
return options.DOTENV_KEY;
|
|
@@ -41664,8 +41668,9 @@ var require_main = __commonJS({
|
|
|
41664
41668
|
}
|
|
41665
41669
|
function _configVault(options) {
|
|
41666
41670
|
const debug2 = Boolean(options && options.debug);
|
|
41667
|
-
|
|
41668
|
-
|
|
41671
|
+
const quiet = Boolean(options && options.quiet);
|
|
41672
|
+
if (debug2 || !quiet) {
|
|
41673
|
+
_log("Loading env from encrypted .env.vault");
|
|
41669
41674
|
}
|
|
41670
41675
|
const parsed = DotenvModule._parseVault(options);
|
|
41671
41676
|
let processEnv = process.env;
|
|
@@ -41679,6 +41684,7 @@ var require_main = __commonJS({
|
|
|
41679
41684
|
const dotenvPath = path2.resolve(process.cwd(), ".env");
|
|
41680
41685
|
let encoding = "utf8";
|
|
41681
41686
|
const debug2 = Boolean(options && options.debug);
|
|
41687
|
+
const quiet = Boolean(options && options.quiet);
|
|
41682
41688
|
if (options && options.encoding) {
|
|
41683
41689
|
encoding = options.encoding;
|
|
41684
41690
|
} else {
|
|
@@ -41715,6 +41721,18 @@ var require_main = __commonJS({
|
|
|
41715
41721
|
processEnv = options.processEnv;
|
|
41716
41722
|
}
|
|
41717
41723
|
DotenvModule.populate(processEnv, parsedAll, options);
|
|
41724
|
+
if (debug2 || !quiet) {
|
|
41725
|
+
const keysCount = Object.keys(parsedAll).length;
|
|
41726
|
+
const shortPaths = [];
|
|
41727
|
+
for (const filePath of optionPaths) {
|
|
41728
|
+
try {
|
|
41729
|
+
const relative2 = path2.relative(process.cwd(), filePath);
|
|
41730
|
+
shortPaths.push(relative2);
|
|
41731
|
+
} catch {
|
|
41732
|
+
}
|
|
41733
|
+
}
|
|
41734
|
+
_log(`injecting env (${keysCount}) from ${shortPaths.join(",")}`);
|
|
41735
|
+
}
|
|
41718
41736
|
if (lastError) {
|
|
41719
41737
|
return { parsed: parsedAll, error: lastError };
|
|
41720
41738
|
} else {
|
package/bin/untyped.js
CHANGED
|
@@ -41482,7 +41482,7 @@ var init_dist5 = __esm({
|
|
|
41482
41482
|
}
|
|
41483
41483
|
});
|
|
41484
41484
|
|
|
41485
|
-
// ../../node_modules/.pnpm/dotenv@16.
|
|
41485
|
+
// ../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/package.json
|
|
41486
41486
|
var package_exports = {};
|
|
41487
41487
|
__export(package_exports, {
|
|
41488
41488
|
browser: () => browser,
|
|
@@ -41505,9 +41505,9 @@ __export(package_exports, {
|
|
|
41505
41505
|
});
|
|
41506
41506
|
var name, version3, description, main, types2, exports, scripts, repository, homepage, funding, keywords2, readmeFilename, license, devDependencies, engines, browser, package_default;
|
|
41507
41507
|
var init_package = __esm({
|
|
41508
|
-
"../../node_modules/.pnpm/dotenv@16.
|
|
41508
|
+
"../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/package.json"() {
|
|
41509
41509
|
name = "dotenv";
|
|
41510
|
-
version3 = "16.
|
|
41510
|
+
version3 = "16.6.0";
|
|
41511
41511
|
description = "Loads environment variables from .env file";
|
|
41512
41512
|
main = "lib/main.js";
|
|
41513
41513
|
types2 = "lib/main.d.ts";
|
|
@@ -41587,13 +41587,13 @@ var init_package = __esm({
|
|
|
41587
41587
|
}
|
|
41588
41588
|
});
|
|
41589
41589
|
|
|
41590
|
-
// ../../node_modules/.pnpm/dotenv@16.
|
|
41590
|
+
// ../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/lib/main.js
|
|
41591
41591
|
import * as __import_fs2 from "fs";
|
|
41592
41592
|
import * as __import_path2 from "path";
|
|
41593
41593
|
import * as __import_os2 from "os";
|
|
41594
41594
|
import * as __import_crypto from "crypto";
|
|
41595
41595
|
var require_main = __commonJS({
|
|
41596
|
-
"../../node_modules/.pnpm/dotenv@16.
|
|
41596
|
+
"../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/lib/main.js"(exports2, module) {
|
|
41597
41597
|
init_esm_shims();
|
|
41598
41598
|
init_package();
|
|
41599
41599
|
var fs3 = __import_fs2;
|
|
@@ -41624,7 +41624,8 @@ var require_main = __commonJS({
|
|
|
41624
41624
|
}
|
|
41625
41625
|
function _parseVault(options) {
|
|
41626
41626
|
const vaultPath = _vaultPath(options);
|
|
41627
|
-
|
|
41627
|
+
options.path = vaultPath;
|
|
41628
|
+
const result = DotenvModule.configDotenv(options);
|
|
41628
41629
|
if (!result.parsed) {
|
|
41629
41630
|
const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
41630
41631
|
err.code = "MISSING_DATA";
|
|
@@ -41653,6 +41654,9 @@ var require_main = __commonJS({
|
|
|
41653
41654
|
function _debug(message) {
|
|
41654
41655
|
console.log(`[dotenv@${version4}][DEBUG] ${message}`);
|
|
41655
41656
|
}
|
|
41657
|
+
function _log(message) {
|
|
41658
|
+
console.log(`[dotenv@${version4}] ${message}`);
|
|
41659
|
+
}
|
|
41656
41660
|
function _dotenvKey(options) {
|
|
41657
41661
|
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
41658
41662
|
return options.DOTENV_KEY;
|
|
@@ -41720,8 +41724,9 @@ var require_main = __commonJS({
|
|
|
41720
41724
|
}
|
|
41721
41725
|
function _configVault(options) {
|
|
41722
41726
|
const debug2 = Boolean(options && options.debug);
|
|
41723
|
-
|
|
41724
|
-
|
|
41727
|
+
const quiet = Boolean(options && options.quiet);
|
|
41728
|
+
if (debug2 || !quiet) {
|
|
41729
|
+
_log("Loading env from encrypted .env.vault");
|
|
41725
41730
|
}
|
|
41726
41731
|
const parsed = DotenvModule._parseVault(options);
|
|
41727
41732
|
let processEnv = process.env;
|
|
@@ -41735,6 +41740,7 @@ var require_main = __commonJS({
|
|
|
41735
41740
|
const dotenvPath = path2.resolve(process.cwd(), ".env");
|
|
41736
41741
|
let encoding = "utf8";
|
|
41737
41742
|
const debug2 = Boolean(options && options.debug);
|
|
41743
|
+
const quiet = Boolean(options && options.quiet);
|
|
41738
41744
|
if (options && options.encoding) {
|
|
41739
41745
|
encoding = options.encoding;
|
|
41740
41746
|
} else {
|
|
@@ -41771,6 +41777,18 @@ var require_main = __commonJS({
|
|
|
41771
41777
|
processEnv = options.processEnv;
|
|
41772
41778
|
}
|
|
41773
41779
|
DotenvModule.populate(processEnv, parsedAll, options);
|
|
41780
|
+
if (debug2 || !quiet) {
|
|
41781
|
+
const keysCount = Object.keys(parsedAll).length;
|
|
41782
|
+
const shortPaths = [];
|
|
41783
|
+
for (const filePath of optionPaths) {
|
|
41784
|
+
try {
|
|
41785
|
+
const relative2 = path2.relative(process.cwd(), filePath);
|
|
41786
|
+
shortPaths.push(relative2);
|
|
41787
|
+
} catch {
|
|
41788
|
+
}
|
|
41789
|
+
}
|
|
41790
|
+
_log(`injecting env (${keysCount}) from ${shortPaths.join(",")}`);
|
|
41791
|
+
}
|
|
41774
41792
|
if (lastError) {
|
|
41775
41793
|
return { parsed: parsedAll, error: lastError };
|
|
41776
41794
|
} else {
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
|
|
5
|
+
*/
|
|
6
|
+
declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
7
|
+
$schema: z.ZodDefault<z.ZodString>;
|
|
8
|
+
extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
11
|
+
organization: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
15
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
16
|
+
url: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
18
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
19
|
+
license: z.ZodDefault<z.ZodString>;
|
|
20
|
+
homepage: z.ZodOptional<z.ZodString>;
|
|
21
|
+
docs: z.ZodOptional<z.ZodString>;
|
|
22
|
+
portal: z.ZodOptional<z.ZodString>;
|
|
23
|
+
licensing: z.ZodOptional<z.ZodString>;
|
|
24
|
+
contact: z.ZodOptional<z.ZodString>;
|
|
25
|
+
support: z.ZodOptional<z.ZodString>;
|
|
26
|
+
branch: z.ZodDefault<z.ZodString>;
|
|
27
|
+
preid: z.ZodOptional<z.ZodString>;
|
|
28
|
+
owner: z.ZodDefault<z.ZodString>;
|
|
29
|
+
bot: z.ZodObject<{
|
|
30
|
+
name: z.ZodDefault<z.ZodString>;
|
|
31
|
+
email: z.ZodDefault<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
release: z.ZodObject<{
|
|
34
|
+
banner: z.ZodDefault<z.ZodString>;
|
|
35
|
+
header: z.ZodOptional<z.ZodString>;
|
|
36
|
+
footer: z.ZodDefault<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
account: z.ZodObject<{
|
|
39
|
+
twitter: z.ZodDefault<z.ZodString>;
|
|
40
|
+
discord: z.ZodDefault<z.ZodString>;
|
|
41
|
+
telegram: z.ZodDefault<z.ZodString>;
|
|
42
|
+
slack: z.ZodDefault<z.ZodString>;
|
|
43
|
+
medium: z.ZodDefault<z.ZodString>;
|
|
44
|
+
github: z.ZodDefault<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
error: z.ZodObject<{
|
|
47
|
+
codesFile: z.ZodDefault<z.ZodString>;
|
|
48
|
+
url: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
51
|
+
development: "development";
|
|
52
|
+
staging: "staging";
|
|
53
|
+
production: "production";
|
|
54
|
+
}>>;
|
|
55
|
+
workspaceRoot: z.ZodString;
|
|
56
|
+
externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
57
|
+
skipCache: z.ZodDefault<z.ZodBoolean>;
|
|
58
|
+
directories: z.ZodObject<{
|
|
59
|
+
cache: z.ZodOptional<z.ZodString>;
|
|
60
|
+
data: z.ZodOptional<z.ZodString>;
|
|
61
|
+
config: z.ZodOptional<z.ZodString>;
|
|
62
|
+
temp: z.ZodOptional<z.ZodString>;
|
|
63
|
+
log: z.ZodOptional<z.ZodString>;
|
|
64
|
+
build: z.ZodDefault<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
packageManager: z.ZodDefault<z.ZodEnum<{
|
|
67
|
+
npm: "npm";
|
|
68
|
+
yarn: "yarn";
|
|
69
|
+
pnpm: "pnpm";
|
|
70
|
+
bun: "bun";
|
|
71
|
+
}>>;
|
|
72
|
+
timezone: z.ZodDefault<z.ZodString>;
|
|
73
|
+
locale: z.ZodDefault<z.ZodString>;
|
|
74
|
+
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
75
|
+
error: "error";
|
|
76
|
+
success: "success";
|
|
77
|
+
info: "info";
|
|
78
|
+
fatal: "fatal";
|
|
79
|
+
silent: "silent";
|
|
80
|
+
warn: "warn";
|
|
81
|
+
debug: "debug";
|
|
82
|
+
trace: "trace";
|
|
83
|
+
all: "all";
|
|
84
|
+
}>>;
|
|
85
|
+
skipConfigLogging: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
registry: z.ZodDefault<z.ZodObject<{
|
|
87
|
+
github: z.ZodOptional<z.ZodString>;
|
|
88
|
+
npm: z.ZodOptional<z.ZodString>;
|
|
89
|
+
cargo: z.ZodOptional<z.ZodString>;
|
|
90
|
+
cyclone: z.ZodOptional<z.ZodString>;
|
|
91
|
+
container: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
configFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
colors: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
95
|
+
dark: z.ZodDefault<z.ZodString>;
|
|
96
|
+
light: z.ZodDefault<z.ZodString>;
|
|
97
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
98
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
99
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
100
|
+
link: z.ZodOptional<z.ZodString>;
|
|
101
|
+
help: z.ZodDefault<z.ZodString>;
|
|
102
|
+
success: z.ZodDefault<z.ZodString>;
|
|
103
|
+
info: z.ZodDefault<z.ZodString>;
|
|
104
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
105
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
106
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
107
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
108
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
dark: z.ZodObject<{
|
|
111
|
+
foreground: z.ZodDefault<z.ZodString>;
|
|
112
|
+
background: z.ZodDefault<z.ZodString>;
|
|
113
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
114
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
115
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
116
|
+
link: z.ZodOptional<z.ZodString>;
|
|
117
|
+
help: z.ZodDefault<z.ZodString>;
|
|
118
|
+
success: z.ZodDefault<z.ZodString>;
|
|
119
|
+
info: z.ZodDefault<z.ZodString>;
|
|
120
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
121
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
122
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
123
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
124
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
light: z.ZodObject<{
|
|
127
|
+
foreground: z.ZodDefault<z.ZodString>;
|
|
128
|
+
background: z.ZodDefault<z.ZodString>;
|
|
129
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
130
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
131
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
132
|
+
link: z.ZodOptional<z.ZodString>;
|
|
133
|
+
help: z.ZodDefault<z.ZodString>;
|
|
134
|
+
success: z.ZodDefault<z.ZodString>;
|
|
135
|
+
info: z.ZodDefault<z.ZodString>;
|
|
136
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
137
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
138
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
139
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
140
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
}, z.core.$strip>]>, z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"base">, z.ZodString]>, z.ZodUnion<[z.ZodObject<{
|
|
143
|
+
dark: z.ZodDefault<z.ZodString>;
|
|
144
|
+
light: z.ZodDefault<z.ZodString>;
|
|
145
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
146
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
147
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
148
|
+
link: z.ZodOptional<z.ZodString>;
|
|
149
|
+
help: z.ZodDefault<z.ZodString>;
|
|
150
|
+
success: z.ZodDefault<z.ZodString>;
|
|
151
|
+
info: z.ZodDefault<z.ZodString>;
|
|
152
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
153
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
154
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
155
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
156
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
158
|
+
dark: z.ZodObject<{
|
|
159
|
+
foreground: z.ZodDefault<z.ZodString>;
|
|
160
|
+
background: z.ZodDefault<z.ZodString>;
|
|
161
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
162
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
163
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
164
|
+
link: z.ZodOptional<z.ZodString>;
|
|
165
|
+
help: z.ZodDefault<z.ZodString>;
|
|
166
|
+
success: z.ZodDefault<z.ZodString>;
|
|
167
|
+
info: z.ZodDefault<z.ZodString>;
|
|
168
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
169
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
170
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
171
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
172
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
light: z.ZodObject<{
|
|
175
|
+
foreground: z.ZodDefault<z.ZodString>;
|
|
176
|
+
background: z.ZodDefault<z.ZodString>;
|
|
177
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
178
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
179
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
180
|
+
link: z.ZodOptional<z.ZodString>;
|
|
181
|
+
help: z.ZodDefault<z.ZodString>;
|
|
182
|
+
success: z.ZodDefault<z.ZodString>;
|
|
183
|
+
info: z.ZodDefault<z.ZodString>;
|
|
184
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
185
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
186
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
187
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
188
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
}, z.core.$strip>]>>]>;
|
|
191
|
+
extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
|
|
194
|
+
type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
|
|
195
|
+
/**
|
|
196
|
+
* The Storm workspace's configuration object
|
|
197
|
+
*
|
|
198
|
+
* @remarks
|
|
199
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
200
|
+
*
|
|
201
|
+
* @deprecated
|
|
202
|
+
* This type is deprecated and will be removed in the next major version. Use {@link StormWorkspaceConfig} instead.
|
|
203
|
+
*/
|
|
204
|
+
type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
|
|
205
|
+
extensions: (TStormWorkspaceConfig["extensions"] & {
|
|
206
|
+
[extensionName in TExtensionName]: TExtensionConfig;
|
|
207
|
+
}) | NonNullable<Record<string, any>>;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* The Storm workspace's configuration object
|
|
211
|
+
*
|
|
212
|
+
* @remarks
|
|
213
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
214
|
+
*/
|
|
215
|
+
type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
|
|
216
|
+
|
|
217
|
+
export type { StormWorkspaceConfig as S };
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
|
|
5
|
+
*/
|
|
6
|
+
declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
7
|
+
$schema: z.ZodDefault<z.ZodString>;
|
|
8
|
+
extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
9
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
11
|
+
organization: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
15
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
16
|
+
url: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
18
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
19
|
+
license: z.ZodDefault<z.ZodString>;
|
|
20
|
+
homepage: z.ZodOptional<z.ZodString>;
|
|
21
|
+
docs: z.ZodOptional<z.ZodString>;
|
|
22
|
+
portal: z.ZodOptional<z.ZodString>;
|
|
23
|
+
licensing: z.ZodOptional<z.ZodString>;
|
|
24
|
+
contact: z.ZodOptional<z.ZodString>;
|
|
25
|
+
support: z.ZodOptional<z.ZodString>;
|
|
26
|
+
branch: z.ZodDefault<z.ZodString>;
|
|
27
|
+
preid: z.ZodOptional<z.ZodString>;
|
|
28
|
+
owner: z.ZodDefault<z.ZodString>;
|
|
29
|
+
bot: z.ZodObject<{
|
|
30
|
+
name: z.ZodDefault<z.ZodString>;
|
|
31
|
+
email: z.ZodDefault<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
release: z.ZodObject<{
|
|
34
|
+
banner: z.ZodDefault<z.ZodString>;
|
|
35
|
+
header: z.ZodOptional<z.ZodString>;
|
|
36
|
+
footer: z.ZodDefault<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
account: z.ZodObject<{
|
|
39
|
+
twitter: z.ZodDefault<z.ZodString>;
|
|
40
|
+
discord: z.ZodDefault<z.ZodString>;
|
|
41
|
+
telegram: z.ZodDefault<z.ZodString>;
|
|
42
|
+
slack: z.ZodDefault<z.ZodString>;
|
|
43
|
+
medium: z.ZodDefault<z.ZodString>;
|
|
44
|
+
github: z.ZodDefault<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
error: z.ZodObject<{
|
|
47
|
+
codesFile: z.ZodDefault<z.ZodString>;
|
|
48
|
+
url: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
51
|
+
development: "development";
|
|
52
|
+
staging: "staging";
|
|
53
|
+
production: "production";
|
|
54
|
+
}>>;
|
|
55
|
+
workspaceRoot: z.ZodString;
|
|
56
|
+
externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
57
|
+
skipCache: z.ZodDefault<z.ZodBoolean>;
|
|
58
|
+
directories: z.ZodObject<{
|
|
59
|
+
cache: z.ZodOptional<z.ZodString>;
|
|
60
|
+
data: z.ZodOptional<z.ZodString>;
|
|
61
|
+
config: z.ZodOptional<z.ZodString>;
|
|
62
|
+
temp: z.ZodOptional<z.ZodString>;
|
|
63
|
+
log: z.ZodOptional<z.ZodString>;
|
|
64
|
+
build: z.ZodDefault<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
packageManager: z.ZodDefault<z.ZodEnum<{
|
|
67
|
+
npm: "npm";
|
|
68
|
+
yarn: "yarn";
|
|
69
|
+
pnpm: "pnpm";
|
|
70
|
+
bun: "bun";
|
|
71
|
+
}>>;
|
|
72
|
+
timezone: z.ZodDefault<z.ZodString>;
|
|
73
|
+
locale: z.ZodDefault<z.ZodString>;
|
|
74
|
+
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
75
|
+
error: "error";
|
|
76
|
+
success: "success";
|
|
77
|
+
info: "info";
|
|
78
|
+
fatal: "fatal";
|
|
79
|
+
silent: "silent";
|
|
80
|
+
warn: "warn";
|
|
81
|
+
debug: "debug";
|
|
82
|
+
trace: "trace";
|
|
83
|
+
all: "all";
|
|
84
|
+
}>>;
|
|
85
|
+
skipConfigLogging: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
registry: z.ZodDefault<z.ZodObject<{
|
|
87
|
+
github: z.ZodOptional<z.ZodString>;
|
|
88
|
+
npm: z.ZodOptional<z.ZodString>;
|
|
89
|
+
cargo: z.ZodOptional<z.ZodString>;
|
|
90
|
+
cyclone: z.ZodOptional<z.ZodString>;
|
|
91
|
+
container: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
configFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
colors: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
95
|
+
dark: z.ZodDefault<z.ZodString>;
|
|
96
|
+
light: z.ZodDefault<z.ZodString>;
|
|
97
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
98
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
99
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
100
|
+
link: z.ZodOptional<z.ZodString>;
|
|
101
|
+
help: z.ZodDefault<z.ZodString>;
|
|
102
|
+
success: z.ZodDefault<z.ZodString>;
|
|
103
|
+
info: z.ZodDefault<z.ZodString>;
|
|
104
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
105
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
106
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
107
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
108
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
dark: z.ZodObject<{
|
|
111
|
+
foreground: z.ZodDefault<z.ZodString>;
|
|
112
|
+
background: z.ZodDefault<z.ZodString>;
|
|
113
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
114
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
115
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
116
|
+
link: z.ZodOptional<z.ZodString>;
|
|
117
|
+
help: z.ZodDefault<z.ZodString>;
|
|
118
|
+
success: z.ZodDefault<z.ZodString>;
|
|
119
|
+
info: z.ZodDefault<z.ZodString>;
|
|
120
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
121
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
122
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
123
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
124
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
light: z.ZodObject<{
|
|
127
|
+
foreground: z.ZodDefault<z.ZodString>;
|
|
128
|
+
background: z.ZodDefault<z.ZodString>;
|
|
129
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
130
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
131
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
132
|
+
link: z.ZodOptional<z.ZodString>;
|
|
133
|
+
help: z.ZodDefault<z.ZodString>;
|
|
134
|
+
success: z.ZodDefault<z.ZodString>;
|
|
135
|
+
info: z.ZodDefault<z.ZodString>;
|
|
136
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
137
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
138
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
139
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
140
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
}, z.core.$strip>]>, z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"base">, z.ZodString]>, z.ZodUnion<[z.ZodObject<{
|
|
143
|
+
dark: z.ZodDefault<z.ZodString>;
|
|
144
|
+
light: z.ZodDefault<z.ZodString>;
|
|
145
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
146
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
147
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
148
|
+
link: z.ZodOptional<z.ZodString>;
|
|
149
|
+
help: z.ZodDefault<z.ZodString>;
|
|
150
|
+
success: z.ZodDefault<z.ZodString>;
|
|
151
|
+
info: z.ZodDefault<z.ZodString>;
|
|
152
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
153
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
154
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
155
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
156
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
158
|
+
dark: z.ZodObject<{
|
|
159
|
+
foreground: z.ZodDefault<z.ZodString>;
|
|
160
|
+
background: z.ZodDefault<z.ZodString>;
|
|
161
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
162
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
163
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
164
|
+
link: z.ZodOptional<z.ZodString>;
|
|
165
|
+
help: z.ZodDefault<z.ZodString>;
|
|
166
|
+
success: z.ZodDefault<z.ZodString>;
|
|
167
|
+
info: z.ZodDefault<z.ZodString>;
|
|
168
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
169
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
170
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
171
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
172
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
light: z.ZodObject<{
|
|
175
|
+
foreground: z.ZodDefault<z.ZodString>;
|
|
176
|
+
background: z.ZodDefault<z.ZodString>;
|
|
177
|
+
brand: z.ZodDefault<z.ZodString>;
|
|
178
|
+
alternate: z.ZodOptional<z.ZodString>;
|
|
179
|
+
accent: z.ZodOptional<z.ZodString>;
|
|
180
|
+
link: z.ZodOptional<z.ZodString>;
|
|
181
|
+
help: z.ZodDefault<z.ZodString>;
|
|
182
|
+
success: z.ZodDefault<z.ZodString>;
|
|
183
|
+
info: z.ZodDefault<z.ZodString>;
|
|
184
|
+
warning: z.ZodDefault<z.ZodString>;
|
|
185
|
+
danger: z.ZodDefault<z.ZodString>;
|
|
186
|
+
fatal: z.ZodOptional<z.ZodString>;
|
|
187
|
+
positive: z.ZodDefault<z.ZodString>;
|
|
188
|
+
negative: z.ZodDefault<z.ZodString>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
}, z.core.$strip>]>>]>;
|
|
191
|
+
extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
|
|
194
|
+
type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
|
|
195
|
+
/**
|
|
196
|
+
* The Storm workspace's configuration object
|
|
197
|
+
*
|
|
198
|
+
* @remarks
|
|
199
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
200
|
+
*
|
|
201
|
+
* @deprecated
|
|
202
|
+
* This type is deprecated and will be removed in the next major version. Use {@link StormWorkspaceConfig} instead.
|
|
203
|
+
*/
|
|
204
|
+
type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
|
|
205
|
+
extensions: (TStormWorkspaceConfig["extensions"] & {
|
|
206
|
+
[extensionName in TExtensionName]: TExtensionConfig;
|
|
207
|
+
}) | NonNullable<Record<string, any>>;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* The Storm workspace's configuration object
|
|
211
|
+
*
|
|
212
|
+
* @remarks
|
|
213
|
+
* This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
|
|
214
|
+
*/
|
|
215
|
+
type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
|
|
216
|
+
|
|
217
|
+
export type { StormWorkspaceConfig as S };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/untyped",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.32",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `untyped` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -197,5 +197,5 @@
|
|
|
197
197
|
},
|
|
198
198
|
"publishConfig": { "access": "public" },
|
|
199
199
|
"sideEffects": false,
|
|
200
|
-
"gitHead": "
|
|
200
|
+
"gitHead": "446803d73ec4fd31944e933c4965955bc744c0db"
|
|
201
201
|
}
|