@storm-software/untyped 0.11.33 → 0.11.35
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 -15
- package/bin/untyped.js +26 -15
- package/dist/{chunk-BSIRLDJ2.cjs → chunk-2RWO3NZ3.cjs} +3 -3
- package/dist/{chunk-XZGHUPFO.js → chunk-7LZCJIZM.js} +1 -1
- package/dist/{chunk-UHZI3GMF.cjs → chunk-F5AAJ342.cjs} +3 -3
- package/dist/{chunk-RNAR4CVV.js → chunk-L5JB3MEI.js} +1 -1
- package/dist/{chunk-OAJ2QOIE.cjs → chunk-O6KDZNSH.cjs} +1 -1
- package/dist/{chunk-QYG7JUIO.cjs → chunk-PHT2FEKR.cjs} +11 -11
- package/dist/{chunk-TPXD6RIO.js → chunk-SWC6E4WU.js} +1 -1
- package/dist/{chunk-4SPOXMJK.js → chunk-UHOYK4GS.js} +1 -1
- package/dist/{chunk-I3F73PNL.js → chunk-VWJFJBF7.js} +4 -4
- package/dist/{chunk-LRMV5ZWE.cjs → chunk-WUEMI2VV.cjs} +3 -3
- 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-Dm4EyHF-.d.cts → types-B4jbZA4j.d.cts} +2 -2
- package/dist/{types-Dm4EyHF-.d.ts → types-B4jbZA4j.d.ts} +2 -2
- 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
|
@@ -71986,7 +71986,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
71986
71986
|
"staging",
|
|
71987
71987
|
"production"
|
|
71988
71988
|
]).default("production").describe("The current runtime environment mode for the package"),
|
|
71989
|
-
workspaceRoot: z.string().trim().
|
|
71989
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
71990
71990
|
externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
71991
71991
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
71992
71992
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -73353,7 +73353,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
73353
73353
|
}
|
|
73354
73354
|
}
|
|
73355
73355
|
}
|
|
73356
|
-
if (!config) {
|
|
73356
|
+
if (!config || Object.keys(config).length === 0) {
|
|
73357
73357
|
return void 0;
|
|
73358
73358
|
}
|
|
73359
73359
|
config.configFile = configFile;
|
|
@@ -73412,12 +73412,12 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
73412
73412
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
73413
73413
|
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
73414
73414
|
directories: {
|
|
73415
|
-
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
73416
|
-
data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
73417
|
-
config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
73418
|
-
temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
73419
|
-
log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
73420
|
-
build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
73415
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
73416
|
+
data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
73417
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
73418
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
73419
|
+
log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
73420
|
+
build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
73421
73421
|
},
|
|
73422
73422
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
73423
73423
|
mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
|
|
@@ -73638,21 +73638,27 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
73638
73638
|
if (config.directories) {
|
|
73639
73639
|
if (!config.skipCache && config.directories.cache) {
|
|
73640
73640
|
process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
|
|
73641
|
+
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
73641
73642
|
}
|
|
73642
73643
|
if (config.directories.data) {
|
|
73643
73644
|
process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
|
|
73645
|
+
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
73644
73646
|
}
|
|
73645
73647
|
if (config.directories.config) {
|
|
73646
73648
|
process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
|
|
73649
|
+
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
73647
73650
|
}
|
|
73648
73651
|
if (config.directories.temp) {
|
|
73649
73652
|
process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
|
|
73653
|
+
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
73650
73654
|
}
|
|
73651
73655
|
if (config.directories.log) {
|
|
73652
73656
|
process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
|
|
73657
|
+
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
73653
73658
|
}
|
|
73654
73659
|
if (config.directories.build) {
|
|
73655
73660
|
process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
|
|
73661
|
+
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
73656
73662
|
}
|
|
73657
73663
|
}
|
|
73658
73664
|
if (config.skipCache !== void 0) {
|
|
@@ -73820,7 +73826,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
73820
73826
|
// ../config-tools/src/create-storm-config.ts
|
|
73821
73827
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
73822
73828
|
var _static_cache = void 0;
|
|
73823
|
-
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
73829
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
|
|
73824
73830
|
let result;
|
|
73825
73831
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
73826
73832
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -73828,13 +73834,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
|
|
|
73828
73834
|
_workspaceRoot = findWorkspaceRoot();
|
|
73829
73835
|
}
|
|
73830
73836
|
const configEnv = getConfigEnv();
|
|
73831
|
-
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
73832
73837
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
73833
|
-
if (!configFile
|
|
73834
|
-
|
|
73835
|
-
|
|
73836
|
-
|
|
73838
|
+
if (!configFile) {
|
|
73839
|
+
if (!skipLogs) {
|
|
73840
|
+
writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
|
|
73841
|
+
logLevel: "all"
|
|
73842
|
+
});
|
|
73843
|
+
}
|
|
73844
|
+
if (useDefault === false) {
|
|
73845
|
+
return void 0;
|
|
73846
|
+
}
|
|
73837
73847
|
}
|
|
73848
|
+
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
73838
73849
|
result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
|
|
73839
73850
|
result.workspaceRoot ??= _workspaceRoot;
|
|
73840
73851
|
} else {
|
|
@@ -73867,7 +73878,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
73867
73878
|
return extension;
|
|
73868
73879
|
}, "createConfigExtension");
|
|
73869
73880
|
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
73870
|
-
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
73881
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
|
|
73871
73882
|
setConfigEnv(config);
|
|
73872
73883
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
73873
73884
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
package/bin/untyped.js
CHANGED
|
@@ -71977,7 +71977,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
71977
71977
|
"staging",
|
|
71978
71978
|
"production"
|
|
71979
71979
|
]).default("production").describe("The current runtime environment mode for the package"),
|
|
71980
|
-
workspaceRoot: z.string().trim().
|
|
71980
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
71981
71981
|
externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
71982
71982
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
71983
71983
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -73341,7 +73341,7 @@ var getConfigFile = /* @__PURE__ */ __name(async (filePath, additionalFileNames
|
|
|
73341
73341
|
}
|
|
73342
73342
|
}
|
|
73343
73343
|
}
|
|
73344
|
-
if (!config) {
|
|
73344
|
+
if (!config || Object.keys(config).length === 0) {
|
|
73345
73345
|
return void 0;
|
|
73346
73346
|
}
|
|
73347
73347
|
config.configFile = configFile;
|
|
@@ -73400,12 +73400,12 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
73400
73400
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
73401
73401
|
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
73402
73402
|
directories: {
|
|
73403
|
-
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
73404
|
-
data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
73405
|
-
config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
73406
|
-
temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
73407
|
-
log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
73408
|
-
build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
73403
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
73404
|
+
data: process.env[`${prefix}DATA_DIR`] ? correctPaths(process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? correctPaths(process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
73405
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? correctPaths(process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? correctPaths(process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
73406
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? correctPaths(process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? correctPaths(process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
73407
|
+
log: process.env[`${prefix}LOG_DIR`] ? correctPaths(process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? correctPaths(process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
73408
|
+
build: process.env[`${prefix}BUILD_DIR`] ? correctPaths(process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? correctPaths(process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
73409
73409
|
},
|
|
73410
73410
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
73411
73411
|
mode: (process.env[`${prefix}MODE`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT) || void 0,
|
|
@@ -73626,21 +73626,27 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
73626
73626
|
if (config.directories) {
|
|
73627
73627
|
if (!config.skipCache && config.directories.cache) {
|
|
73628
73628
|
process.env[`${prefix}CACHE_DIR`] = correctPaths(config.directories.cache);
|
|
73629
|
+
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
73629
73630
|
}
|
|
73630
73631
|
if (config.directories.data) {
|
|
73631
73632
|
process.env[`${prefix}DATA_DIR`] = correctPaths(config.directories.data);
|
|
73633
|
+
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
73632
73634
|
}
|
|
73633
73635
|
if (config.directories.config) {
|
|
73634
73636
|
process.env[`${prefix}CONFIG_DIR`] = correctPaths(config.directories.config);
|
|
73637
|
+
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
73635
73638
|
}
|
|
73636
73639
|
if (config.directories.temp) {
|
|
73637
73640
|
process.env[`${prefix}TEMP_DIR`] = correctPaths(config.directories.temp);
|
|
73641
|
+
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
73638
73642
|
}
|
|
73639
73643
|
if (config.directories.log) {
|
|
73640
73644
|
process.env[`${prefix}LOG_DIR`] = correctPaths(config.directories.log);
|
|
73645
|
+
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
73641
73646
|
}
|
|
73642
73647
|
if (config.directories.build) {
|
|
73643
73648
|
process.env[`${prefix}BUILD_DIR`] = correctPaths(config.directories.build);
|
|
73649
|
+
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
73644
73650
|
}
|
|
73645
73651
|
}
|
|
73646
73652
|
if (config.skipCache !== void 0) {
|
|
@@ -73808,7 +73814,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
73808
73814
|
// ../config-tools/src/create-storm-config.ts
|
|
73809
73815
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
73810
73816
|
var _static_cache = void 0;
|
|
73811
|
-
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
73817
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
|
|
73812
73818
|
let result;
|
|
73813
73819
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
73814
73820
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -73816,13 +73822,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
|
|
|
73816
73822
|
_workspaceRoot = findWorkspaceRoot();
|
|
73817
73823
|
}
|
|
73818
73824
|
const configEnv = getConfigEnv();
|
|
73819
|
-
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
73820
73825
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
73821
|
-
if (!configFile
|
|
73822
|
-
|
|
73823
|
-
|
|
73824
|
-
|
|
73826
|
+
if (!configFile) {
|
|
73827
|
+
if (!skipLogs) {
|
|
73828
|
+
writeWarning("No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
|
|
73829
|
+
logLevel: "all"
|
|
73830
|
+
});
|
|
73831
|
+
}
|
|
73832
|
+
if (useDefault === false) {
|
|
73833
|
+
return void 0;
|
|
73834
|
+
}
|
|
73825
73835
|
}
|
|
73836
|
+
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
73826
73837
|
result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
|
|
73827
73838
|
result.workspaceRoot ??= _workspaceRoot;
|
|
73828
73839
|
} else {
|
|
@@ -73855,7 +73866,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
73855
73866
|
return extension;
|
|
73856
73867
|
}, "createConfigExtension");
|
|
73857
73868
|
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
73858
|
-
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
73869
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
|
|
73859
73870
|
setConfigEnv(config);
|
|
73860
73871
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
73861
73872
|
writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
|
|
@@ -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 _chunkO6KDZNSHcjs = require('./chunk-O6KDZNSH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -48,10 +48,10 @@ _chunkIOAPOECLcjs.__name.call(void 0, generateMarkdownLevel, "generateMarkdownLe
|
|
|
48
48
|
function generateMarkdownFile(schema, file, config) {
|
|
49
49
|
try {
|
|
50
50
|
const declarations = _chunkIOAPOECLcjs.getOutputFile.call(void 0, file, "md");
|
|
51
|
-
|
|
51
|
+
_chunkO6KDZNSHcjs.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
|
+
_chunkO6KDZNSHcjs.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]) ? `
|
|
@@ -7045,7 +7045,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
7045
7045
|
"staging",
|
|
7046
7046
|
"production"
|
|
7047
7047
|
]).default("production").describe("The current runtime environment mode for the package"),
|
|
7048
|
-
workspaceRoot: z.string().trim().
|
|
7048
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
7049
7049
|
externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
7050
7050
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
7051
7051
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -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 _chunkO6KDZNSHcjs = require('./chunk-O6KDZNSH.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 = _chunkIOAPOECLcjs.getOutputFile.call(void 0, file, "json");
|
|
17
|
-
|
|
17
|
+
_chunkO6KDZNSHcjs.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
|
+
_chunkO6KDZNSHcjs.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]) ? `
|
|
@@ -7045,7 +7045,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
7045
7045
|
"staging",
|
|
7046
7046
|
"production"
|
|
7047
7047
|
]).default("production").describe("The current runtime environment mode for the package"),
|
|
7048
|
-
workspaceRoot: z.string().trim().
|
|
7048
|
+
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
7049
7049
|
externalPackagePatterns: z.array(z.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
7050
7050
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
7051
7051
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -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 _chunkWUEMI2VVcjs = require('./chunk-WUEMI2VV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkF5AAJ342cjs = require('./chunk-F5AAJ342.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk2RWO3NZ3cjs = require('./chunk-2RWO3NZ3.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkO6KDZNSHcjs = require('./chunk-O6KDZNSH.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ _chunkIOAPOECLcjs.init_cjs_shims.call(void 0, );
|
|
|
23
23
|
var _glob = require('glob');
|
|
24
24
|
var _loader = require('untyped/loader');
|
|
25
25
|
var getGenerateAction = /* @__PURE__ */ _chunkIOAPOECLcjs.__name.call(void 0, (config) => async (options) => {
|
|
26
|
-
|
|
26
|
+
_chunkO6KDZNSHcjs.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__ */ _chunkIOAPOECLcjs.__name.call(void 0, (c
|
|
|
38
38
|
cwd: config.workspaceRoot
|
|
39
39
|
});
|
|
40
40
|
await Promise.all(files.map(async (file) => {
|
|
41
|
-
|
|
41
|
+
_chunkO6KDZNSHcjs.writeTrace.call(void 0, `Generating files for schema file: ${_chunkIOAPOECLcjs.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, _chunkIOAPOECLcjs.joinPaths.call(void 0, file.parentPath, file.name), {
|
|
45
45
|
jiti: {
|
|
46
|
-
debug:
|
|
46
|
+
debug: _chunkO6KDZNSHcjs.isVerbose.call(void 0, config.logLevel),
|
|
47
47
|
fsCache: config.skipCache ? false : _chunkIOAPOECLcjs.joinPaths.call(void 0, config.directories.cache || _chunkIOAPOECLcjs.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
|
+
_chunkO6KDZNSHcjs.writeError.call(void 0, `Error while parsing schema file: ${_chunkIOAPOECLcjs.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(_chunkWUEMI2VVcjs.generateDeclarationFile.call(void 0, schema, file, config));
|
|
65
|
+
promises.push(_chunk2RWO3NZ3cjs.generateMarkdownFile.call(void 0, schema, file, config));
|
|
66
|
+
promises.push(_chunkF5AAJ342cjs.generateJsonSchemaFile.call(void 0, schema, file, config));
|
|
67
67
|
return Promise.all(promises);
|
|
68
68
|
}));
|
|
69
69
|
}, "getGenerateAction");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateDeclarationFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L5JB3MEI.js";
|
|
4
4
|
import {
|
|
5
5
|
generateJsonSchemaFile
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SWC6E4WU.js";
|
|
7
7
|
import {
|
|
8
8
|
generateMarkdownFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UHOYK4GS.js";
|
|
10
10
|
import {
|
|
11
11
|
isVerbose,
|
|
12
12
|
writeError,
|
|
13
13
|
writeTrace
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7LZCJIZM.js";
|
|
15
15
|
import {
|
|
16
16
|
__name,
|
|
17
17
|
init_esm_shims,
|
|
@@ -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 _chunkO6KDZNSHcjs = require('./chunk-O6KDZNSH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -29,10 +29,10 @@ _chunkIOAPOECLcjs.__name.call(void 0, generateDeclaration, "generateDeclaration"
|
|
|
29
29
|
function generateDeclarationFile(schema, file, config) {
|
|
30
30
|
try {
|
|
31
31
|
const declarations = _chunkIOAPOECLcjs.getOutputFile.call(void 0, file, "d.ts");
|
|
32
|
-
|
|
32
|
+
_chunkO6KDZNSHcjs.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
|
+
_chunkO6KDZNSHcjs.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]) ? `
|
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 _chunkPHT2FEKRcjs = require('./chunk-PHT2FEKR.cjs');
|
|
4
|
+
require('./chunk-WUEMI2VV.cjs');
|
|
5
|
+
require('./chunk-F5AAJ342.cjs');
|
|
6
|
+
require('./chunk-2RWO3NZ3.cjs');
|
|
7
|
+
require('./chunk-O6KDZNSH.cjs');
|
|
8
8
|
require('./chunk-IOAPOECL.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.getGenerateAction =
|
|
11
|
+
exports.getGenerateAction = _chunkPHT2FEKRcjs.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-VWJFJBF7.js";
|
|
4
|
+
import "./chunk-L5JB3MEI.js";
|
|
5
|
+
import "./chunk-SWC6E4WU.js";
|
|
6
|
+
import "./chunk-UHOYK4GS.js";
|
|
7
|
+
import "./chunk-7LZCJIZM.js";
|
|
8
8
|
import "./chunk-JK4J2QCZ.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 _chunkPHT2FEKRcjs = require('./chunk-PHT2FEKR.cjs');
|
|
4
4
|
require('./chunk-CSUORMHS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkWUEMI2VVcjs = require('./chunk-WUEMI2VV.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkF5AAJ342cjs = require('./chunk-F5AAJ342.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunk2RWO3NZ3cjs = require('./chunk-2RWO3NZ3.cjs');
|
|
16
|
+
require('./chunk-O6KDZNSH.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -29,4 +29,4 @@ _chunkIOAPOECLcjs.init_cjs_shims.call(void 0, );
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
exports.generateDeclaration =
|
|
32
|
+
exports.generateDeclaration = _chunkWUEMI2VVcjs.generateDeclaration; exports.generateDeclarationFile = _chunkWUEMI2VVcjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkF5AAJ342cjs.generateJsonSchemaFile; exports.generateMarkdown = _chunk2RWO3NZ3cjs.generateMarkdown; exports.generateMarkdownFile = _chunk2RWO3NZ3cjs.generateMarkdownFile; exports.getGenerateAction = _chunkPHT2FEKRcjs.getGenerateAction; exports.getOutputFile = _chunkIOAPOECLcjs.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-B4jbZA4j.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-B4jbZA4j.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-VWJFJBF7.js";
|
|
4
4
|
import "./chunk-EUOKQ3IU.js";
|
|
5
5
|
import {
|
|
6
6
|
generateDeclaration,
|
|
7
7
|
generateDeclarationFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-L5JB3MEI.js";
|
|
9
9
|
import {
|
|
10
10
|
generateJsonSchemaFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SWC6E4WU.js";
|
|
12
12
|
import {
|
|
13
13
|
generateMarkdown,
|
|
14
14
|
generateMarkdownFile
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-UHOYK4GS.js";
|
|
16
|
+
import "./chunk-7LZCJIZM.js";
|
|
17
17
|
import {
|
|
18
18
|
getOutputFile,
|
|
19
19
|
init_esm_shims
|
|
@@ -74,7 +74,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
74
74
|
url?: string | undefined;
|
|
75
75
|
}>;
|
|
76
76
|
mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
77
|
-
workspaceRoot: z.
|
|
77
|
+
workspaceRoot: z.ZodString;
|
|
78
78
|
externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
79
79
|
skipCache: z.ZodDefault<z.ZodBoolean>;
|
|
80
80
|
directories: z.ZodObject<{
|
|
@@ -1071,6 +1071,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
1071
1071
|
codesFile?: string | undefined;
|
|
1072
1072
|
url?: string | undefined;
|
|
1073
1073
|
};
|
|
1074
|
+
workspaceRoot: string;
|
|
1074
1075
|
directories: {
|
|
1075
1076
|
cache?: string | undefined;
|
|
1076
1077
|
data?: string | undefined;
|
|
@@ -1241,7 +1242,6 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
1241
1242
|
preid?: string | undefined;
|
|
1242
1243
|
owner?: string | undefined;
|
|
1243
1244
|
mode?: "development" | "staging" | "production" | undefined;
|
|
1244
|
-
workspaceRoot?: string | undefined;
|
|
1245
1245
|
externalPackagePatterns?: string[] | undefined;
|
|
1246
1246
|
skipCache?: boolean | undefined;
|
|
1247
1247
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
@@ -74,7 +74,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
74
74
|
url?: string | undefined;
|
|
75
75
|
}>;
|
|
76
76
|
mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
77
|
-
workspaceRoot: z.
|
|
77
|
+
workspaceRoot: z.ZodString;
|
|
78
78
|
externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
79
79
|
skipCache: z.ZodDefault<z.ZodBoolean>;
|
|
80
80
|
directories: z.ZodObject<{
|
|
@@ -1071,6 +1071,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
1071
1071
|
codesFile?: string | undefined;
|
|
1072
1072
|
url?: string | undefined;
|
|
1073
1073
|
};
|
|
1074
|
+
workspaceRoot: string;
|
|
1074
1075
|
directories: {
|
|
1075
1076
|
cache?: string | undefined;
|
|
1076
1077
|
data?: string | undefined;
|
|
@@ -1241,7 +1242,6 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
|
|
|
1241
1242
|
preid?: string | undefined;
|
|
1242
1243
|
owner?: string | undefined;
|
|
1243
1244
|
mode?: "development" | "staging" | "production" | undefined;
|
|
1244
|
-
workspaceRoot?: string | undefined;
|
|
1245
1245
|
externalPackagePatterns?: string[] | undefined;
|
|
1246
1246
|
skipCache?: boolean | undefined;
|
|
1247
1247
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
package/package.json
CHANGED