@storm-software/untyped 0.11.34 → 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/bin/untyped.cjs +14 -9
- package/bin/untyped.js +14 -9
- 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/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;
|
|
@@ -73826,7 +73826,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
73826
73826
|
// ../config-tools/src/create-storm-config.ts
|
|
73827
73827
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
73828
73828
|
var _static_cache = void 0;
|
|
73829
|
-
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
73829
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
|
|
73830
73830
|
let result;
|
|
73831
73831
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
73832
73832
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -73834,13 +73834,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
|
|
|
73834
73834
|
_workspaceRoot = findWorkspaceRoot();
|
|
73835
73835
|
}
|
|
73836
73836
|
const configEnv = getConfigEnv();
|
|
73837
|
-
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
73838
73837
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
73839
|
-
if (!configFile
|
|
73840
|
-
|
|
73841
|
-
|
|
73842
|
-
|
|
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
|
+
}
|
|
73843
73847
|
}
|
|
73848
|
+
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
73844
73849
|
result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
|
|
73845
73850
|
result.workspaceRoot ??= _workspaceRoot;
|
|
73846
73851
|
} else {
|
|
@@ -73873,7 +73878,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
73873
73878
|
return extension;
|
|
73874
73879
|
}, "createConfigExtension");
|
|
73875
73880
|
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
73876
|
-
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
73881
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
|
|
73877
73882
|
setConfigEnv(config);
|
|
73878
73883
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
73879
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;
|
|
@@ -73814,7 +73814,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
|
|
|
73814
73814
|
// ../config-tools/src/create-storm-config.ts
|
|
73815
73815
|
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
73816
73816
|
var _static_cache = void 0;
|
|
73817
|
-
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
73817
|
+
var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
|
|
73818
73818
|
let result;
|
|
73819
73819
|
if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
|
|
73820
73820
|
let _workspaceRoot = workspaceRoot;
|
|
@@ -73822,13 +73822,18 @@ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, sc
|
|
|
73822
73822
|
_workspaceRoot = findWorkspaceRoot();
|
|
73823
73823
|
}
|
|
73824
73824
|
const configEnv = getConfigEnv();
|
|
73825
|
-
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
73826
73825
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
73827
|
-
if (!configFile
|
|
73828
|
-
|
|
73829
|
-
|
|
73830
|
-
|
|
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
|
+
}
|
|
73831
73835
|
}
|
|
73836
|
+
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
73832
73837
|
result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
|
|
73833
73838
|
result.workspaceRoot ??= _workspaceRoot;
|
|
73834
73839
|
} else {
|
|
@@ -73861,7 +73866,7 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
|
|
|
73861
73866
|
return extension;
|
|
73862
73867
|
}, "createConfigExtension");
|
|
73863
73868
|
var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
|
|
73864
|
-
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
73869
|
+
const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs, true);
|
|
73865
73870
|
setConfigEnv(config);
|
|
73866
73871
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
73867
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