@storm-software/untyped 0.11.17 → 0.11.18
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 +18 -2
- package/bin/untyped.js +18 -2
- package/dist/{chunk-RFUCL2N2.js → chunk-6G3CK5VB.js} +1 -1
- package/dist/{chunk-YOXSPNH7.js → chunk-6NNISWTS.js} +4 -4
- package/dist/{chunk-YHQOB4Q7.cjs → chunk-73TYVR4D.cjs} +5 -0
- package/dist/{chunk-7G54AXUI.cjs → chunk-ACUIVJCH.cjs} +3 -3
- package/dist/{chunk-JTXABIVW.cjs → chunk-GXDLGWBK.cjs} +11 -11
- package/dist/{chunk-B3ONKCXJ.cjs → chunk-IP2KIQ7Z.cjs} +3 -3
- package/dist/{chunk-LZQ5P5IG.js → chunk-JIHQMZNF.js} +1 -1
- package/dist/{chunk-P3BRVAKZ.cjs → chunk-KPDOE54P.cjs} +3 -3
- package/dist/{chunk-RL7G6HKE.js → chunk-LZOR3QY4.js} +1 -1
- package/dist/{chunk-ZACMGGI6.js → chunk-WTJWQQN2.js} +5 -0
- package/dist/generate.cjs +6 -6
- package/dist/generate.d.cts +1 -1
- package/dist/generate.d.ts +1 -1
- package/dist/generate.js +5 -5
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/{types-D_AzVlEf.d.cts → types-D7IMa2M3.d.cts} +378 -360
- package/dist/{types-D_AzVlEf.d.ts → types-D7IMa2M3.d.ts} +378 -360
- package/package.json +1 -1
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
|
@@ -71940,6 +71940,10 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
71940
71940
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
71941
71941
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
71942
71942
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
71943
|
+
var errorConfigSchema = z.object({
|
|
71944
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
71945
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
71946
|
+
}).describe("The workspace's error config used during the error process");
|
|
71943
71947
|
var stormWorkspaceConfigSchema = z.object({
|
|
71944
71948
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
71945
71949
|
extends: ExtendsSchema.optional(),
|
|
@@ -71958,6 +71962,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
71958
71962
|
bot: WorkspaceBotConfigSchema,
|
|
71959
71963
|
release: WorkspaceReleaseConfigSchema,
|
|
71960
71964
|
account: WorkspaceAccountConfigSchema,
|
|
71965
|
+
error: errorConfigSchema,
|
|
71961
71966
|
mode: z.enum([
|
|
71962
71967
|
"development",
|
|
71963
71968
|
"staging",
|
|
@@ -73013,7 +73018,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
73013
73018
|
license,
|
|
73014
73019
|
homepage,
|
|
73015
73020
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
73016
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
73021
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
73022
|
+
error: {
|
|
73023
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
73024
|
+
}
|
|
73017
73025
|
};
|
|
73018
73026
|
}, "getDefaultConfig");
|
|
73019
73027
|
|
|
@@ -73364,6 +73372,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
73364
73372
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
73365
73373
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
73366
73374
|
},
|
|
73375
|
+
error: {
|
|
73376
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
73377
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
73378
|
+
},
|
|
73367
73379
|
account: {
|
|
73368
73380
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
73369
73381
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -73538,6 +73550,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
73538
73550
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
73539
73551
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
73540
73552
|
}
|
|
73553
|
+
if (config.error) {
|
|
73554
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
73555
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
73556
|
+
}
|
|
73541
73557
|
if (config.release) {
|
|
73542
73558
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
73543
73559
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -73668,7 +73684,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
73668
73684
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
73669
73685
|
}
|
|
73670
73686
|
if (config.registry.container) {
|
|
73671
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
73687
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
73672
73688
|
}
|
|
73673
73689
|
}
|
|
73674
73690
|
if (config.logLevel) {
|
package/bin/untyped.js
CHANGED
|
@@ -71931,6 +71931,10 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
71931
71931
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
71932
71932
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
71933
71933
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
71934
|
+
var errorConfigSchema = z.object({
|
|
71935
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
71936
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
71937
|
+
}).describe("The workspace's error config used during the error process");
|
|
71934
71938
|
var stormWorkspaceConfigSchema = z.object({
|
|
71935
71939
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
71936
71940
|
extends: ExtendsSchema.optional(),
|
|
@@ -71949,6 +71953,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
71949
71953
|
bot: WorkspaceBotConfigSchema,
|
|
71950
71954
|
release: WorkspaceReleaseConfigSchema,
|
|
71951
71955
|
account: WorkspaceAccountConfigSchema,
|
|
71956
|
+
error: errorConfigSchema,
|
|
71952
71957
|
mode: z.enum([
|
|
71953
71958
|
"development",
|
|
71954
71959
|
"staging",
|
|
@@ -73001,7 +73006,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
73001
73006
|
license,
|
|
73002
73007
|
homepage,
|
|
73003
73008
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
73004
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
73009
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
73010
|
+
error: {
|
|
73011
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
73012
|
+
}
|
|
73005
73013
|
};
|
|
73006
73014
|
}, "getDefaultConfig");
|
|
73007
73015
|
|
|
@@ -73352,6 +73360,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
73352
73360
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
73353
73361
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
73354
73362
|
},
|
|
73363
|
+
error: {
|
|
73364
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
73365
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
73366
|
+
},
|
|
73355
73367
|
account: {
|
|
73356
73368
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
73357
73369
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -73526,6 +73538,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
73526
73538
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
73527
73539
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
73528
73540
|
}
|
|
73541
|
+
if (config.error) {
|
|
73542
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
73543
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
73544
|
+
}
|
|
73529
73545
|
if (config.release) {
|
|
73530
73546
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
73531
73547
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -73656,7 +73672,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
73656
73672
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
73657
73673
|
}
|
|
73658
73674
|
if (config.registry.container) {
|
|
73659
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
73675
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
73660
73676
|
}
|
|
73661
73677
|
}
|
|
73662
73678
|
if (config.logLevel) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateDeclarationFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LZOR3QY4.js";
|
|
4
4
|
import {
|
|
5
5
|
generateJsonSchemaFile
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JIHQMZNF.js";
|
|
7
7
|
import {
|
|
8
8
|
generateMarkdownFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6G3CK5VB.js";
|
|
10
10
|
import {
|
|
11
11
|
isVerbose,
|
|
12
12
|
writeError,
|
|
13
13
|
writeTrace
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WTJWQQN2.js";
|
|
15
15
|
import {
|
|
16
16
|
__name,
|
|
17
17
|
init_esm_shims,
|
|
@@ -7016,6 +7016,10 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
7016
7016
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
7017
7017
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
7018
7018
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
7019
|
+
var errorConfigSchema = z.object({
|
|
7020
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
7021
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
7022
|
+
}).describe("The workspace's error config used during the error process");
|
|
7019
7023
|
var stormWorkspaceConfigSchema = z.object({
|
|
7020
7024
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
7021
7025
|
extends: ExtendsSchema.optional(),
|
|
@@ -7034,6 +7038,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
7034
7038
|
bot: WorkspaceBotConfigSchema,
|
|
7035
7039
|
release: WorkspaceReleaseConfigSchema,
|
|
7036
7040
|
account: WorkspaceAccountConfigSchema,
|
|
7041
|
+
error: errorConfigSchema,
|
|
7037
7042
|
mode: z.enum([
|
|
7038
7043
|
"development",
|
|
7039
7044
|
"staging",
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunk73TYVR4Dcjs = require('./chunk-73TYVR4D.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -48,10 +48,10 @@ _chunkPBRGYMWBcjs.__name.call(void 0, generateMarkdownLevel, "generateMarkdownLe
|
|
|
48
48
|
function generateMarkdownFile(schema, file, config) {
|
|
49
49
|
try {
|
|
50
50
|
const declarations = _chunkPBRGYMWBcjs.getOutputFile.call(void 0, file, "md");
|
|
51
|
-
|
|
51
|
+
_chunk73TYVR4Dcjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
|
|
52
52
|
return _promises.writeFile.call(void 0, declarations, generateMarkdown(schema));
|
|
53
53
|
} catch (error) {
|
|
54
|
-
|
|
54
|
+
_chunk73TYVR4Dcjs.writeError.call(void 0, `Error writing markdown file for ${file.name}
|
|
55
55
|
|
|
56
56
|
Error:
|
|
57
57
|
${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkIP2KIQ7Zcjs = require('./chunk-IP2KIQ7Z.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkKPDOE54Pcjs = require('./chunk-KPDOE54P.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkACUIVJCHcjs = require('./chunk-ACUIVJCH.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk73TYVR4Dcjs = require('./chunk-73TYVR4D.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ _chunkPBRGYMWBcjs.init_cjs_shims.call(void 0, );
|
|
|
23
23
|
var _glob = require('glob');
|
|
24
24
|
var _loader = require('untyped/loader');
|
|
25
25
|
var getGenerateAction = /* @__PURE__ */ _chunkPBRGYMWBcjs.__name.call(void 0, (config) => async (options) => {
|
|
26
|
-
|
|
26
|
+
_chunk73TYVR4Dcjs.writeTrace.call(void 0, `Running Storm Untyped with options: ${JSON.stringify(options)}`, config);
|
|
27
27
|
const files = await _glob.glob.call(void 0, options.entry || "**/{untyped.ts,*.untyped.ts}", {
|
|
28
28
|
ignore: [
|
|
29
29
|
"**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}",
|
|
@@ -38,18 +38,18 @@ var getGenerateAction = /* @__PURE__ */ _chunkPBRGYMWBcjs.__name.call(void 0, (c
|
|
|
38
38
|
cwd: config.workspaceRoot
|
|
39
39
|
});
|
|
40
40
|
await Promise.all(files.map(async (file) => {
|
|
41
|
-
|
|
41
|
+
_chunk73TYVR4Dcjs.writeTrace.call(void 0, `Generating files for schema file: ${_chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name)}`, config);
|
|
42
42
|
let schema;
|
|
43
43
|
try {
|
|
44
44
|
schema = await _loader.loadSchema.call(void 0, _chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name), {
|
|
45
45
|
jiti: {
|
|
46
|
-
debug:
|
|
46
|
+
debug: _chunk73TYVR4Dcjs.isVerbose.call(void 0, config.logLevel),
|
|
47
47
|
fsCache: config.skipCache ? false : _chunkPBRGYMWBcjs.joinPaths.call(void 0, config.directories.cache || _chunkPBRGYMWBcjs.joinPaths.call(void 0, config.workspaceRoot, "node_modules/.cache/storm"), "jiti"),
|
|
48
48
|
interopDefault: true
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
} catch (error) {
|
|
52
|
-
|
|
52
|
+
_chunk73TYVR4Dcjs.writeError.call(void 0, `Error while parsing schema file: ${_chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name)}
|
|
53
53
|
|
|
54
54
|
Error:
|
|
55
55
|
${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
|
|
@@ -61,9 +61,9 @@ ${JSON.stringify(schema)}
|
|
|
61
61
|
throw error;
|
|
62
62
|
}
|
|
63
63
|
const promises = [];
|
|
64
|
-
promises.push(
|
|
65
|
-
promises.push(
|
|
66
|
-
promises.push(
|
|
64
|
+
promises.push(_chunkIP2KIQ7Zcjs.generateDeclarationFile.call(void 0, schema, file, config));
|
|
65
|
+
promises.push(_chunkACUIVJCHcjs.generateMarkdownFile.call(void 0, schema, file, config));
|
|
66
|
+
promises.push(_chunkKPDOE54Pcjs.generateJsonSchemaFile.call(void 0, schema, file, config));
|
|
67
67
|
return Promise.all(promises);
|
|
68
68
|
}));
|
|
69
69
|
}, "getGenerateAction");
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunk73TYVR4Dcjs = require('./chunk-73TYVR4D.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -29,10 +29,10 @@ _chunkPBRGYMWBcjs.__name.call(void 0, generateDeclaration, "generateDeclaration"
|
|
|
29
29
|
function generateDeclarationFile(schema, file, config) {
|
|
30
30
|
try {
|
|
31
31
|
const declarations = _chunkPBRGYMWBcjs.getOutputFile.call(void 0, file, "d.ts");
|
|
32
|
-
|
|
32
|
+
_chunk73TYVR4Dcjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
|
|
33
33
|
return _promises.writeFile.call(void 0, declarations, generateDeclaration(schema));
|
|
34
34
|
} catch (error) {
|
|
35
|
-
|
|
35
|
+
_chunk73TYVR4Dcjs.writeError.call(void 0, `Error writing declaration file for ${file.name}
|
|
36
36
|
|
|
37
37
|
Error:
|
|
38
38
|
${_optionalChain([error, 'optionalAccess', _4 => _4.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _5 => _5.stack]) ? `
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunk73TYVR4Dcjs = require('./chunk-73TYVR4D.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -14,10 +14,10 @@ var _promises = require('fs/promises');
|
|
|
14
14
|
function generateJsonSchemaFile(schema, file, config) {
|
|
15
15
|
try {
|
|
16
16
|
const jsonSchema = _chunkPBRGYMWBcjs.getOutputFile.call(void 0, file, "json");
|
|
17
|
-
|
|
17
|
+
_chunk73TYVR4Dcjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
|
|
18
18
|
return _promises.writeFile.call(void 0, jsonSchema, JSON.stringify(schema, null, 2));
|
|
19
19
|
} catch (error) {
|
|
20
|
-
|
|
20
|
+
_chunk73TYVR4Dcjs.writeError.call(void 0, `Error writing JSON schema file for ${file.name}
|
|
21
21
|
|
|
22
22
|
Error:
|
|
23
23
|
${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
|
|
@@ -7016,6 +7016,10 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
7016
7016
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
7017
7017
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
7018
7018
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
7019
|
+
var errorConfigSchema = z.object({
|
|
7020
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
7021
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
7022
|
+
}).describe("The workspace's error config used during the error process");
|
|
7019
7023
|
var stormWorkspaceConfigSchema = z.object({
|
|
7020
7024
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
7021
7025
|
extends: ExtendsSchema.optional(),
|
|
@@ -7034,6 +7038,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
7034
7038
|
bot: WorkspaceBotConfigSchema,
|
|
7035
7039
|
release: WorkspaceReleaseConfigSchema,
|
|
7036
7040
|
account: WorkspaceAccountConfigSchema,
|
|
7041
|
+
error: errorConfigSchema,
|
|
7037
7042
|
mode: z.enum([
|
|
7038
7043
|
"development",
|
|
7039
7044
|
"staging",
|
package/dist/generate.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var _chunkGXDLGWBKcjs = require('./chunk-GXDLGWBK.cjs');
|
|
4
|
+
require('./chunk-IP2KIQ7Z.cjs');
|
|
5
|
+
require('./chunk-KPDOE54P.cjs');
|
|
6
|
+
require('./chunk-ACUIVJCH.cjs');
|
|
7
|
+
require('./chunk-73TYVR4D.cjs');
|
|
8
8
|
require('./chunk-PBRGYMWB.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.getGenerateAction =
|
|
11
|
+
exports.getGenerateAction = _chunkGXDLGWBKcjs.getGenerateAction;
|
package/dist/generate.d.cts
CHANGED
package/dist/generate.d.ts
CHANGED
package/dist/generate.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getGenerateAction
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-6NNISWTS.js";
|
|
4
|
+
import "./chunk-LZOR3QY4.js";
|
|
5
|
+
import "./chunk-JIHQMZNF.js";
|
|
6
|
+
import "./chunk-6G3CK5VB.js";
|
|
7
|
+
import "./chunk-WTJWQQN2.js";
|
|
8
8
|
import "./chunk-YRIEPGDN.js";
|
|
9
9
|
export {
|
|
10
10
|
getGenerateAction
|
package/dist/index.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGXDLGWBKcjs = require('./chunk-GXDLGWBK.cjs');
|
|
4
4
|
require('./chunk-RAXH6VUY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkIP2KIQ7Zcjs = require('./chunk-IP2KIQ7Z.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkKPDOE54Pcjs = require('./chunk-KPDOE54P.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunkACUIVJCHcjs = require('./chunk-ACUIVJCH.cjs');
|
|
16
|
+
require('./chunk-73TYVR4D.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -29,4 +29,4 @@ _chunkPBRGYMWBcjs.init_cjs_shims.call(void 0, );
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
exports.generateDeclaration =
|
|
32
|
+
exports.generateDeclaration = _chunkIP2KIQ7Zcjs.generateDeclaration; exports.generateDeclarationFile = _chunkIP2KIQ7Zcjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkKPDOE54Pcjs.generateJsonSchemaFile; exports.generateMarkdown = _chunkACUIVJCHcjs.generateMarkdown; exports.generateMarkdownFile = _chunkACUIVJCHcjs.generateMarkdownFile; exports.getGenerateAction = _chunkGXDLGWBKcjs.getGenerateAction; exports.getOutputFile = _chunkPBRGYMWBcjs.getOutputFile;
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { generateDeclaration, generateDeclarationFile } from './generators/dts.c
|
|
|
3
3
|
export { generateJsonSchemaFile } from './generators/json-schema.cjs';
|
|
4
4
|
export { generateMarkdown, generateMarkdownFile } from './generators/markdown.cjs';
|
|
5
5
|
export { getOutputFile } from './utilities.cjs';
|
|
6
|
-
import './types-
|
|
6
|
+
import './types-D7IMa2M3.cjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'glob';
|
|
9
9
|
import 'untyped';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { generateDeclaration, generateDeclarationFile } from './generators/dts.j
|
|
|
3
3
|
export { generateJsonSchemaFile } from './generators/json-schema.js';
|
|
4
4
|
export { generateMarkdown, generateMarkdownFile } from './generators/markdown.js';
|
|
5
5
|
export { getOutputFile } from './utilities.js';
|
|
6
|
-
import './types-
|
|
6
|
+
import './types-D7IMa2M3.js';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'glob';
|
|
9
9
|
import 'untyped';
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getGenerateAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6NNISWTS.js";
|
|
4
4
|
import "./chunk-7UW24DGF.js";
|
|
5
5
|
import {
|
|
6
6
|
generateDeclaration,
|
|
7
7
|
generateDeclarationFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LZOR3QY4.js";
|
|
9
9
|
import {
|
|
10
10
|
generateJsonSchemaFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JIHQMZNF.js";
|
|
12
12
|
import {
|
|
13
13
|
generateMarkdown,
|
|
14
14
|
generateMarkdownFile
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-6G3CK5VB.js";
|
|
16
|
+
import "./chunk-WTJWQQN2.js";
|
|
17
17
|
import {
|
|
18
18
|
getOutputFile,
|
|
19
19
|
init_esm_shims
|