@storm-software/untyped 0.17.7 → 0.17.8
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 +61 -19
- package/bin/untyped.js +61 -19
- package/dist/{chunk-N7OLMAZK.js → chunk-5SCGJXLE.js} +2 -2
- package/dist/{chunk-4GFXPGEQ.js → chunk-BDOMSMNF.js} +2 -2
- package/dist/{chunk-3VWRQEOF.cjs → chunk-CL5DUGIH.cjs} +6 -6
- package/dist/{chunk-WDYNO3M5.cjs → chunk-DZZDTX3L.cjs} +2 -2
- package/dist/chunk-JW4TDYDJ.cjs +6 -0
- package/dist/{chunk-HEWQ5KRS.cjs → chunk-LRMBRHN4.cjs} +6 -6
- package/dist/{chunk-OECQNTQ7.cjs → chunk-RR2H3NMV.cjs} +6 -6
- package/dist/{chunk-VJVLAVPV.js → chunk-TZ2NH3HZ.js} +8 -8
- package/dist/{chunk-K62G4BHH.js → chunk-U32PDV36.js} +2 -2
- package/dist/{chunk-QLZGAZC5.cjs → chunk-WBOGRNYV.cjs} +45 -45
- package/dist/{chunk-HHABLJEL.cjs → chunk-WM2POW42.cjs} +18 -18
- package/dist/{chunk-HNBDIWVI.js → chunk-XS7YTBLG.js} +2 -2
- package/dist/{chunk-T2FRLVP5.js → chunk-Y6U5MLYQ.js} +1 -1
- package/dist/{chunk-PVXOLNDJ.js → chunk-YHWFDGRO.js} +5 -5
- package/dist/generate.cjs +7 -7
- package/dist/generate.d.cts +1 -1
- package/dist/generate.d.ts +1 -1
- package/dist/generate.js +6 -6
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/{types-B4jbZA4j.d.cts → types-BHig4IFV.d.cts} +11 -8
- package/dist/{types-B4jbZA4j.d.ts → types-BHig4IFV.d.ts} +11 -8
- package/dist/{types-D-xLCTdY.d.cts → types-BhUX0YVA.d.cts} +11 -8
- package/dist/{types-D-xLCTdY.d.ts → types-BhUX0YVA.d.ts} +11 -8
- package/dist/utilities.cjs +2 -2
- package/dist/utilities.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-Y6P2DSX6.cjs +0 -6
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
|
@@ -32,10 +32,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
32
|
mod
|
|
33
33
|
));
|
|
34
34
|
|
|
35
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
35
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__23d29aaa007764500c48e48a9770b339/node_modules/tsup/assets/cjs_shims.js
|
|
36
36
|
var getImportMetaUrl, importMetaUrl;
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__23d29aaa007764500c48e48a9770b339/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
40
40
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
41
41
|
}
|
|
@@ -67868,10 +67868,10 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
67868
67868
|
|
|
67869
67869
|
// ../config/src/constants.ts
|
|
67870
67870
|
init_cjs_shims();
|
|
67871
|
-
var STORM_DEFAULT_DOCS = "https://
|
|
67871
|
+
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
67872
67872
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
67873
67873
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
67874
|
-
var STORM_DEFAULT_LICENSING = "https://
|
|
67874
|
+
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
67875
67875
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
67876
67876
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
67877
67877
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
@@ -68044,10 +68044,13 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
68044
68044
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
68045
68045
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
68046
68046
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
68047
|
-
homepage: z.string().trim().url().
|
|
68048
|
-
docs: z.string().trim().url().
|
|
68049
|
-
licensing: z.string().trim().url().
|
|
68050
|
-
contact: z.string().trim().url().
|
|
68047
|
+
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
68048
|
+
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
68049
|
+
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
68050
|
+
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
68051
|
+
support: z.string().trim().url().optional().describe(
|
|
68052
|
+
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
68053
|
+
),
|
|
68051
68054
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
68052
68055
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
68053
68056
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
@@ -69058,9 +69061,10 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
69058
69061
|
negative: "#dc2626"
|
|
69059
69062
|
}
|
|
69060
69063
|
};
|
|
69061
|
-
|
|
69064
|
+
async function getPackageJsonConfig(root) {
|
|
69062
69065
|
let license = STORM_DEFAULT_LICENSE;
|
|
69063
|
-
let homepage =
|
|
69066
|
+
let homepage = void 0;
|
|
69067
|
+
let support = void 0;
|
|
69064
69068
|
let name = void 0;
|
|
69065
69069
|
let namespace = void 0;
|
|
69066
69070
|
let repository = void 0;
|
|
@@ -69091,6 +69095,13 @@ var getDefaultConfig = async (root) => {
|
|
|
69091
69095
|
if (packageJson.homepage) {
|
|
69092
69096
|
homepage = packageJson.homepage;
|
|
69093
69097
|
}
|
|
69098
|
+
if (packageJson.bugs) {
|
|
69099
|
+
if (typeof packageJson.bugs === "string") {
|
|
69100
|
+
support = packageJson.bugs;
|
|
69101
|
+
} else if (packageJson.bugs.url) {
|
|
69102
|
+
support = packageJson.bugs.url;
|
|
69103
|
+
}
|
|
69104
|
+
}
|
|
69094
69105
|
}
|
|
69095
69106
|
}
|
|
69096
69107
|
return {
|
|
@@ -69100,13 +69111,38 @@ var getDefaultConfig = async (root) => {
|
|
|
69100
69111
|
repository,
|
|
69101
69112
|
license,
|
|
69102
69113
|
homepage,
|
|
69103
|
-
|
|
69104
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
69105
|
-
error: {
|
|
69106
|
-
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
69107
|
-
}
|
|
69114
|
+
support
|
|
69108
69115
|
};
|
|
69109
|
-
}
|
|
69116
|
+
}
|
|
69117
|
+
function applyDefaultConfig(config) {
|
|
69118
|
+
if (!config.support && config.contact) {
|
|
69119
|
+
config.support = config.contact;
|
|
69120
|
+
}
|
|
69121
|
+
if (!config.contact && config.support) {
|
|
69122
|
+
config.contact = config.support;
|
|
69123
|
+
}
|
|
69124
|
+
if (config.homepage) {
|
|
69125
|
+
if (!config.docs) {
|
|
69126
|
+
config.docs = `${config.homepage}/docs`;
|
|
69127
|
+
}
|
|
69128
|
+
if (!config.license) {
|
|
69129
|
+
config.license = `${config.homepage}/license`;
|
|
69130
|
+
}
|
|
69131
|
+
if (!config.support) {
|
|
69132
|
+
config.support = `${config.homepage}/support`;
|
|
69133
|
+
}
|
|
69134
|
+
if (!config.contact) {
|
|
69135
|
+
config.contact = `${config.homepage}/contact`;
|
|
69136
|
+
}
|
|
69137
|
+
if (!config.error?.codesFile || !config?.error?.url) {
|
|
69138
|
+
config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
69139
|
+
if (config.homepage) {
|
|
69140
|
+
config.error.url ??= `${config.homepage}/errors`;
|
|
69141
|
+
}
|
|
69142
|
+
}
|
|
69143
|
+
}
|
|
69144
|
+
return config;
|
|
69145
|
+
}
|
|
69110
69146
|
|
|
69111
69147
|
// ../config-tools/src/logger/chalk.ts
|
|
69112
69148
|
init_cjs_shims();
|
|
@@ -69520,6 +69556,7 @@ var getConfigEnv = () => {
|
|
|
69520
69556
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
69521
69557
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
69522
69558
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
69559
|
+
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
69523
69560
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
69524
69561
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
69525
69562
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
@@ -69739,6 +69776,9 @@ var setConfigEnv = (config) => {
|
|
|
69739
69776
|
if (config.contact) {
|
|
69740
69777
|
process.env[`${prefix}CONTACT`] = config.contact;
|
|
69741
69778
|
}
|
|
69779
|
+
if (config.support) {
|
|
69780
|
+
process.env[`${prefix}SUPPORT`] = config.support;
|
|
69781
|
+
}
|
|
69742
69782
|
if (config.timezone) {
|
|
69743
69783
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
69744
69784
|
process.env.TZ = config.timezone;
|
|
@@ -69988,9 +70028,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
69988
70028
|
return void 0;
|
|
69989
70029
|
}
|
|
69990
70030
|
}
|
|
69991
|
-
const defaultConfig = await
|
|
69992
|
-
result =
|
|
69993
|
-
|
|
70031
|
+
const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
|
|
70032
|
+
result = applyDefaultConfig(
|
|
70033
|
+
await stormWorkspaceConfigSchema.parseAsync(
|
|
70034
|
+
defu(configEnv, configFile, defaultConfig)
|
|
70035
|
+
)
|
|
69994
70036
|
);
|
|
69995
70037
|
result.workspaceRoot ??= _workspaceRoot;
|
|
69996
70038
|
} else {
|
package/bin/untyped.js
CHANGED
|
@@ -38,9 +38,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
mod
|
|
39
39
|
));
|
|
40
40
|
|
|
41
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
41
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__23d29aaa007764500c48e48a9770b339/node_modules/tsup/assets/esm_shims.js
|
|
42
42
|
var init_esm_shims = __esm({
|
|
43
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
43
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__23d29aaa007764500c48e48a9770b339/node_modules/tsup/assets/esm_shims.js"() {
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
|
|
@@ -68078,10 +68078,10 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
68078
68078
|
|
|
68079
68079
|
// ../config/src/constants.ts
|
|
68080
68080
|
init_esm_shims();
|
|
68081
|
-
var STORM_DEFAULT_DOCS = "https://
|
|
68081
|
+
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
68082
68082
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
68083
68083
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
68084
|
-
var STORM_DEFAULT_LICENSING = "https://
|
|
68084
|
+
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
68085
68085
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
68086
68086
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
68087
68087
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
@@ -68254,10 +68254,13 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
68254
68254
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
68255
68255
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
68256
68256
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
68257
|
-
homepage: z.string().trim().url().
|
|
68258
|
-
docs: z.string().trim().url().
|
|
68259
|
-
licensing: z.string().trim().url().
|
|
68260
|
-
contact: z.string().trim().url().
|
|
68257
|
+
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
68258
|
+
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
68259
|
+
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
68260
|
+
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
68261
|
+
support: z.string().trim().url().optional().describe(
|
|
68262
|
+
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
68263
|
+
),
|
|
68261
68264
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
68262
68265
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
68263
68266
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
@@ -69265,9 +69268,10 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
69265
69268
|
negative: "#dc2626"
|
|
69266
69269
|
}
|
|
69267
69270
|
};
|
|
69268
|
-
|
|
69271
|
+
async function getPackageJsonConfig(root) {
|
|
69269
69272
|
let license2 = STORM_DEFAULT_LICENSE;
|
|
69270
|
-
let homepage2 =
|
|
69273
|
+
let homepage2 = void 0;
|
|
69274
|
+
let support = void 0;
|
|
69271
69275
|
let name2 = void 0;
|
|
69272
69276
|
let namespace = void 0;
|
|
69273
69277
|
let repository2 = void 0;
|
|
@@ -69298,6 +69302,13 @@ var getDefaultConfig = async (root) => {
|
|
|
69298
69302
|
if (packageJson.homepage) {
|
|
69299
69303
|
homepage2 = packageJson.homepage;
|
|
69300
69304
|
}
|
|
69305
|
+
if (packageJson.bugs) {
|
|
69306
|
+
if (typeof packageJson.bugs === "string") {
|
|
69307
|
+
support = packageJson.bugs;
|
|
69308
|
+
} else if (packageJson.bugs.url) {
|
|
69309
|
+
support = packageJson.bugs.url;
|
|
69310
|
+
}
|
|
69311
|
+
}
|
|
69301
69312
|
}
|
|
69302
69313
|
}
|
|
69303
69314
|
return {
|
|
@@ -69307,13 +69318,38 @@ var getDefaultConfig = async (root) => {
|
|
|
69307
69318
|
repository: repository2,
|
|
69308
69319
|
license: license2,
|
|
69309
69320
|
homepage: homepage2,
|
|
69310
|
-
|
|
69311
|
-
licensing: `${homepage2 || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
69312
|
-
error: {
|
|
69313
|
-
url: `${homepage2 || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
69314
|
-
}
|
|
69321
|
+
support
|
|
69315
69322
|
};
|
|
69316
|
-
}
|
|
69323
|
+
}
|
|
69324
|
+
function applyDefaultConfig(config) {
|
|
69325
|
+
if (!config.support && config.contact) {
|
|
69326
|
+
config.support = config.contact;
|
|
69327
|
+
}
|
|
69328
|
+
if (!config.contact && config.support) {
|
|
69329
|
+
config.contact = config.support;
|
|
69330
|
+
}
|
|
69331
|
+
if (config.homepage) {
|
|
69332
|
+
if (!config.docs) {
|
|
69333
|
+
config.docs = `${config.homepage}/docs`;
|
|
69334
|
+
}
|
|
69335
|
+
if (!config.license) {
|
|
69336
|
+
config.license = `${config.homepage}/license`;
|
|
69337
|
+
}
|
|
69338
|
+
if (!config.support) {
|
|
69339
|
+
config.support = `${config.homepage}/support`;
|
|
69340
|
+
}
|
|
69341
|
+
if (!config.contact) {
|
|
69342
|
+
config.contact = `${config.homepage}/contact`;
|
|
69343
|
+
}
|
|
69344
|
+
if (!config.error?.codesFile || !config?.error?.url) {
|
|
69345
|
+
config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
69346
|
+
if (config.homepage) {
|
|
69347
|
+
config.error.url ??= `${config.homepage}/errors`;
|
|
69348
|
+
}
|
|
69349
|
+
}
|
|
69350
|
+
}
|
|
69351
|
+
return config;
|
|
69352
|
+
}
|
|
69317
69353
|
|
|
69318
69354
|
// ../config-tools/src/logger/chalk.ts
|
|
69319
69355
|
init_esm_shims();
|
|
@@ -69727,6 +69763,7 @@ var getConfigEnv = () => {
|
|
|
69727
69763
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
69728
69764
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
69729
69765
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
69766
|
+
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
69730
69767
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
69731
69768
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
69732
69769
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
@@ -69946,6 +69983,9 @@ var setConfigEnv = (config) => {
|
|
|
69946
69983
|
if (config.contact) {
|
|
69947
69984
|
process.env[`${prefix}CONTACT`] = config.contact;
|
|
69948
69985
|
}
|
|
69986
|
+
if (config.support) {
|
|
69987
|
+
process.env[`${prefix}SUPPORT`] = config.support;
|
|
69988
|
+
}
|
|
69949
69989
|
if (config.timezone) {
|
|
69950
69990
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
69951
69991
|
process.env.TZ = config.timezone;
|
|
@@ -70195,9 +70235,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
70195
70235
|
return void 0;
|
|
70196
70236
|
}
|
|
70197
70237
|
}
|
|
70198
|
-
const defaultConfig = await
|
|
70199
|
-
result =
|
|
70200
|
-
|
|
70238
|
+
const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
|
|
70239
|
+
result = applyDefaultConfig(
|
|
70240
|
+
await stormWorkspaceConfigSchema.parseAsync(
|
|
70241
|
+
defu(configEnv, configFile, defaultConfig)
|
|
70242
|
+
)
|
|
70201
70243
|
);
|
|
70202
70244
|
result.workspaceRoot ??= _workspaceRoot;
|
|
70203
70245
|
} else {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TZ2NH3HZ.js";
|
|
5
5
|
import {
|
|
6
6
|
getOutputFile,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BDOMSMNF.js";
|
|
9
9
|
|
|
10
10
|
// src/generators/dts.ts
|
|
11
11
|
init_esm_shims();
|
|
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__23d29aaa007764500c48e48a9770b339/node_modules/tsup/assets/esm_shims.js
|
|
31
31
|
var init_esm_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
32
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__23d29aaa007764500c48e48a9770b339/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWBOGRNYVcjs = require('./chunk-WBOGRNYV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkDZZDTX3Lcjs = require('./chunk-DZZDTX3L.cjs');
|
|
9
9
|
|
|
10
10
|
// src/generators/dts.ts
|
|
11
|
-
|
|
11
|
+
_chunkDZZDTX3Lcjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
var _promises = require('fs/promises');
|
|
13
13
|
var _untyped = require('untyped');
|
|
14
14
|
function generateDeclaration(schema) {
|
|
@@ -26,11 +26,11 @@ ${_untyped.generateTypes.call(void 0, schema, {
|
|
|
26
26
|
}
|
|
27
27
|
function generateDeclarationFile(schema, file, config) {
|
|
28
28
|
try {
|
|
29
|
-
const declarations =
|
|
30
|
-
|
|
29
|
+
const declarations = _chunkDZZDTX3Lcjs.getOutputFile.call(void 0, file, "d.ts");
|
|
30
|
+
_chunkWBOGRNYVcjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
|
|
31
31
|
return _promises.writeFile.call(void 0, declarations, generateDeclaration(schema));
|
|
32
32
|
} catch (error) {
|
|
33
|
-
|
|
33
|
+
_chunkWBOGRNYVcjs.writeError.call(void 0,
|
|
34
34
|
`Error writing declaration file for ${file.name}
|
|
35
35
|
|
|
36
36
|
Error:
|
|
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
mod
|
|
34
34
|
));
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__23d29aaa007764500c48e48a9770b339/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__23d29aaa007764500c48e48a9770b339/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWBOGRNYVcjs = require('./chunk-WBOGRNYV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkDZZDTX3Lcjs = require('./chunk-DZZDTX3L.cjs');
|
|
9
9
|
|
|
10
10
|
// src/generators/json-schema.ts
|
|
11
|
-
|
|
11
|
+
_chunkDZZDTX3Lcjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
var _promises = require('fs/promises');
|
|
13
13
|
function generateJsonSchemaFile(schema, file, config) {
|
|
14
14
|
try {
|
|
15
|
-
const jsonSchema =
|
|
16
|
-
|
|
15
|
+
const jsonSchema = _chunkDZZDTX3Lcjs.getOutputFile.call(void 0, file, "json");
|
|
16
|
+
_chunkWBOGRNYVcjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
|
|
17
17
|
return _promises.writeFile.call(void 0, jsonSchema, JSON.stringify(schema, null, 2));
|
|
18
18
|
} catch (error) {
|
|
19
|
-
|
|
19
|
+
_chunkWBOGRNYVcjs.writeError.call(void 0,
|
|
20
20
|
`Error writing JSON schema file for ${file.name}
|
|
21
21
|
|
|
22
22
|
Error:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWBOGRNYVcjs = require('./chunk-WBOGRNYV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkDZZDTX3Lcjs = require('./chunk-DZZDTX3L.cjs');
|
|
9
9
|
|
|
10
10
|
// src/generators/markdown.ts
|
|
11
|
-
|
|
11
|
+
_chunkDZZDTX3Lcjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
var _promises = require('fs/promises');
|
|
13
13
|
function generateMarkdown(schema) {
|
|
14
14
|
return `
|
|
@@ -46,11 +46,11 @@ function generateMarkdownLevel(schema, title, level) {
|
|
|
46
46
|
}
|
|
47
47
|
function generateMarkdownFile(schema, file, config) {
|
|
48
48
|
try {
|
|
49
|
-
const declarations =
|
|
50
|
-
|
|
49
|
+
const declarations = _chunkDZZDTX3Lcjs.getOutputFile.call(void 0, file, "md");
|
|
50
|
+
_chunkWBOGRNYVcjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
|
|
51
51
|
return _promises.writeFile.call(void 0, declarations, generateMarkdown(schema));
|
|
52
52
|
} catch (error) {
|
|
53
|
-
|
|
53
|
+
_chunkWBOGRNYVcjs.writeError.call(void 0,
|
|
54
54
|
`Error writing markdown file for ${file.name}
|
|
55
55
|
|
|
56
56
|
Error:
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__commonJS,
|
|
3
3
|
__toESM,
|
|
4
4
|
init_esm_shims
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BDOMSMNF.js";
|
|
6
6
|
|
|
7
7
|
// ../../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
|
|
8
8
|
var require_color_name = __commonJS({
|
|
@@ -1637,10 +1637,7 @@ init_esm_shims();
|
|
|
1637
1637
|
|
|
1638
1638
|
// ../config/src/constants.ts
|
|
1639
1639
|
init_esm_shims();
|
|
1640
|
-
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
1641
|
-
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
1642
1640
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
1643
|
-
var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
|
|
1644
1641
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
1645
1642
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
1646
1643
|
var STORM_DEFAULT_ACCOUNT_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
@@ -5880,10 +5877,13 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
5880
5877
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
5881
5878
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
5882
5879
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
5883
|
-
homepage: z.string().trim().url().
|
|
5884
|
-
docs: z.string().trim().url().
|
|
5885
|
-
licensing: z.string().trim().url().
|
|
5886
|
-
contact: z.string().trim().url().
|
|
5880
|
+
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
5881
|
+
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
5882
|
+
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
5883
|
+
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
5884
|
+
support: z.string().trim().url().optional().describe(
|
|
5885
|
+
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
5886
|
+
),
|
|
5887
5887
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
5888
5888
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
5889
5889
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeError,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TZ2NH3HZ.js";
|
|
5
5
|
import {
|
|
6
6
|
getOutputFile,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BDOMSMNF.js";
|
|
9
9
|
|
|
10
10
|
// src/generators/markdown.ts
|
|
11
11
|
init_esm_shims();
|