@stryke/capnp 0.12.86 → 0.12.88
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/capnpc.cjs +17 -14
- package/bin/capnpc.mjs +17 -14
- package/bin/capnpc.mjs.map +1 -1
- package/dist/{compile-DBZMJ5P8.mjs → compile-DwHB9xBy.mjs} +2 -2
- package/dist/{compile-DBZMJ5P8.mjs.map → compile-DwHB9xBy.mjs.map} +1 -1
- package/dist/{compile-DeNcAQWn.cjs → compile-GRO1_ka5.cjs} +1 -1
- package/dist/compile.cjs +2 -2
- package/dist/compile.mjs +2 -2
- package/dist/{helpers-BdCa_OGa.mjs → helpers-jlhgVQPM.mjs} +14 -11
- package/dist/{helpers-BdCa_OGa.mjs.map → helpers-jlhgVQPM.mjs.map} +1 -1
- package/dist/{helpers-CQMD8SU-.cjs → helpers-nWE-SpSm.cjs} +13 -10
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.mts.map +1 -1
- package/dist/helpers.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/rpc-helpers.cjs +1 -1
- package/package.json +7 -7
- package/schemas/persistent.cjs +1 -1
- package/schemas/persistent.mjs +1 -1
- package/schemas/rpc-twoparty.cjs +1 -1
- package/schemas/rpc-twoparty.mjs +1 -1
- package/schemas/rpc.cjs +1 -1
- package/schemas/rpc.mjs +1 -1
- package/schemas/schema.cjs +1 -1
- package/schemas/schema.mjs +1 -1
- package/schemas/{src-B-8ZXmr4.mjs → src-DLOZdE-O.mjs} +2 -1
- package/schemas/{src-B-8ZXmr4.mjs.map → src-DLOZdE-O.mjs.map} +1 -1
- package/schemas/{src-DsF0a8FH.cjs → src-rXFz6bX_.cjs} +1 -0
package/bin/capnpc.cjs
CHANGED
|
@@ -41,8 +41,9 @@ let node_buffer = require("node:buffer");
|
|
|
41
41
|
let __stryke_fs = require("@stryke/fs");
|
|
42
42
|
let __stryke_fs_json = require("@stryke/fs/json");
|
|
43
43
|
let __stryke_fs_list_files = require("@stryke/fs/list-files");
|
|
44
|
+
let __stryke_path_append = require("@stryke/path/append");
|
|
44
45
|
|
|
45
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
46
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-DJB7XLHA.js
|
|
46
47
|
var DEFAULT_COLOR_CONFIG = {
|
|
47
48
|
light: {
|
|
48
49
|
background: "#fafafa",
|
|
@@ -2236,7 +2237,7 @@ var require_source = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2236
2237
|
}));
|
|
2237
2238
|
|
|
2238
2239
|
//#endregion
|
|
2239
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2240
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-HVVJHTFS.js
|
|
2240
2241
|
var import_source = /* @__PURE__ */ __toESM(require_source(), 1);
|
|
2241
2242
|
var chalkDefault = {
|
|
2242
2243
|
hex: (_) => (message) => message,
|
|
@@ -2268,14 +2269,14 @@ var getChalk = () => {
|
|
|
2268
2269
|
};
|
|
2269
2270
|
|
|
2270
2271
|
//#endregion
|
|
2271
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2272
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-G2MK47WL.js
|
|
2272
2273
|
function isUnicodeSupported() {
|
|
2273
2274
|
if (process.platform !== "win32") return process.env.TERM !== "linux";
|
|
2274
2275
|
return Boolean(process.env.WT_SESSION) || Boolean(process.env.TERMINUS_SUBLIME) || process.env.ConEmuTask === "{cmd::Cmder}" || process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
2275
2276
|
}
|
|
2276
2277
|
|
|
2277
2278
|
//#endregion
|
|
2278
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2279
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
|
|
2279
2280
|
var LogLevel = {
|
|
2280
2281
|
SILENT: 0,
|
|
2281
2282
|
FATAL: 10,
|
|
@@ -2300,7 +2301,7 @@ var LogLevelLabel = {
|
|
|
2300
2301
|
};
|
|
2301
2302
|
|
|
2302
2303
|
//#endregion
|
|
2303
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2304
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-AITAR5W5.js
|
|
2304
2305
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
2305
2306
|
var CONSOLE_ICONS = {
|
|
2306
2307
|
[LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
@@ -2314,13 +2315,13 @@ var CONSOLE_ICONS = {
|
|
|
2314
2315
|
};
|
|
2315
2316
|
|
|
2316
2317
|
//#endregion
|
|
2317
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2318
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-CZ4IE2QN.js
|
|
2318
2319
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
2319
2320
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
2320
2321
|
};
|
|
2321
2322
|
|
|
2322
2323
|
//#endregion
|
|
2323
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2324
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-K4CDYUQR.js
|
|
2324
2325
|
var getLogLevel = (label) => {
|
|
2325
2326
|
switch (label) {
|
|
2326
2327
|
case "all": return LogLevel.ALL;
|
|
@@ -2336,7 +2337,7 @@ var getLogLevel = (label) => {
|
|
|
2336
2337
|
};
|
|
2337
2338
|
|
|
2338
2339
|
//#endregion
|
|
2339
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2340
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-SPHE3YEH.js
|
|
2340
2341
|
var daysInYear = 365.2425;
|
|
2341
2342
|
-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
|
|
2342
2343
|
var secondsInDay = 3600 * 24;
|
|
@@ -2932,7 +2933,7 @@ var _isFunction = (value) => {
|
|
|
2932
2933
|
var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("🗲");
|
|
2933
2934
|
|
|
2934
2935
|
//#endregion
|
|
2935
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2936
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-T4YVVO6G.js
|
|
2936
2937
|
var exitWithError = (config) => {
|
|
2937
2938
|
writeFatal("Exiting script with an error status...", config);
|
|
2938
2939
|
process.exit(1);
|
|
@@ -2967,7 +2968,7 @@ Stacktrace: ${error.stack}`, config);
|
|
|
2967
2968
|
};
|
|
2968
2969
|
|
|
2969
2970
|
//#endregion
|
|
2970
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2971
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-RUKM6FCF.js
|
|
2971
2972
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
2972
2973
|
var depth = 0;
|
|
2973
2974
|
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
@@ -2978,7 +2979,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
2978
2979
|
}
|
|
2979
2980
|
|
|
2980
2981
|
//#endregion
|
|
2981
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2982
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-V3GMJ4TX.js
|
|
2982
2983
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
2983
2984
|
function normalizeWindowsPath(input = "") {
|
|
2984
2985
|
if (!input) return input;
|
|
@@ -3060,7 +3061,7 @@ var isAbsolute = function(p) {
|
|
|
3060
3061
|
};
|
|
3061
3062
|
|
|
3062
3063
|
//#endregion
|
|
3063
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
3064
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-LF3SAK2O.js
|
|
3064
3065
|
var rootFiles = [
|
|
3065
3066
|
"storm-workspace.json",
|
|
3066
3067
|
"storm-workspace.yaml",
|
|
@@ -11896,10 +11897,12 @@ async function resolveOptions(options) {
|
|
|
11896
11897
|
(0, __stryke_path_join_paths.joinPaths)(options.projectRoot, "tsconfig.lib.json"),
|
|
11897
11898
|
(0, __stryke_path_join_paths.joinPaths)(options.projectRoot, "tsconfig.app.json"),
|
|
11898
11899
|
(0, __stryke_path_join_paths.joinPaths)(options.projectRoot, "tsconfig.capnp.json"),
|
|
11900
|
+
(0, __stryke_path_join_paths.joinPaths)(options.projectRoot, "tsconfig.schema.json"),
|
|
11899
11901
|
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.json"),
|
|
11900
11902
|
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.lib.json"),
|
|
11901
11903
|
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.app.json"),
|
|
11902
|
-
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.capnp.json")
|
|
11904
|
+
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.capnp.json"),
|
|
11905
|
+
(0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, "tsconfig.schema.json")
|
|
11903
11906
|
].find((path$1) => (0, __stryke_fs_exists.existsSync)(path$1));
|
|
11904
11907
|
if (found) resolvedTsconfigPath = found;
|
|
11905
11908
|
}
|
|
@@ -11929,7 +11932,7 @@ async function resolveOptions(options) {
|
|
|
11929
11932
|
writeWarning(`✖ No Cap'n Proto schema files found in the specified source paths: ${schemas.join(", ")}. As a result, the Cap'n Proto compiler will not be able to generate any output files. Please ensure that the paths are correct and contain .capnp files.`, { logLevel: "all" });
|
|
11930
11933
|
return null;
|
|
11931
11934
|
}
|
|
11932
|
-
const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : (0,
|
|
11935
|
+
const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : (0, __stryke_path_append.appendPath)((0, __stryke_path_file_path_fns.relativePath)(tsconfigPath ? (0, __stryke_path_file_path_fns.findFilePath)(tsconfigPath) : options.projectRoot, (0, __stryke_path_join_paths.joinPaths)(options.workspaceRoot, resolvedSchemas[0].endsWith(".capnp") ? (0, __stryke_path_file_path_fns.findFilePath)(resolvedSchemas[0]) : resolvedSchemas[0])), options.projectRoot);
|
|
11933
11936
|
if (!(0, __stryke_fs_exists.existsSync)(output)) {
|
|
11934
11937
|
if ((0, __stryke_fs.isFile)(output)) {
|
|
11935
11938
|
const errorMessage = `✖ The specified output path "${output}" is a file. Please provide a valid directory path.`;
|
package/bin/capnpc.mjs
CHANGED
|
@@ -13,6 +13,7 @@ import { Buffer as Buffer$1 } from "node:buffer";
|
|
|
13
13
|
import { createDirectory, isFile } from "@stryke/fs";
|
|
14
14
|
import { readJsonFile } from "@stryke/fs/json";
|
|
15
15
|
import { listFiles, listSync } from "@stryke/fs/list-files";
|
|
16
|
+
import { appendPath } from "@stryke/path/append";
|
|
16
17
|
|
|
17
18
|
//#region rolldown:runtime
|
|
18
19
|
var __create = Object.create;
|
|
@@ -43,7 +44,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
43
44
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
44
45
|
|
|
45
46
|
//#endregion
|
|
46
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
47
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-DJB7XLHA.js
|
|
47
48
|
var DEFAULT_COLOR_CONFIG = {
|
|
48
49
|
light: {
|
|
49
50
|
background: "#fafafa",
|
|
@@ -2237,7 +2238,7 @@ var require_source = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2237
2238
|
}));
|
|
2238
2239
|
|
|
2239
2240
|
//#endregion
|
|
2240
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2241
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-HVVJHTFS.js
|
|
2241
2242
|
var import_source = /* @__PURE__ */ __toESM(require_source(), 1);
|
|
2242
2243
|
var chalkDefault = {
|
|
2243
2244
|
hex: (_) => (message) => message,
|
|
@@ -2269,14 +2270,14 @@ var getChalk = () => {
|
|
|
2269
2270
|
};
|
|
2270
2271
|
|
|
2271
2272
|
//#endregion
|
|
2272
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2273
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-G2MK47WL.js
|
|
2273
2274
|
function isUnicodeSupported() {
|
|
2274
2275
|
if (process.platform !== "win32") return process.env.TERM !== "linux";
|
|
2275
2276
|
return Boolean(process.env.WT_SESSION) || Boolean(process.env.TERMINUS_SUBLIME) || process.env.ConEmuTask === "{cmd::Cmder}" || process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
2276
2277
|
}
|
|
2277
2278
|
|
|
2278
2279
|
//#endregion
|
|
2279
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2280
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
|
|
2280
2281
|
var LogLevel = {
|
|
2281
2282
|
SILENT: 0,
|
|
2282
2283
|
FATAL: 10,
|
|
@@ -2301,7 +2302,7 @@ var LogLevelLabel = {
|
|
|
2301
2302
|
};
|
|
2302
2303
|
|
|
2303
2304
|
//#endregion
|
|
2304
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2305
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-AITAR5W5.js
|
|
2305
2306
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
2306
2307
|
var CONSOLE_ICONS = {
|
|
2307
2308
|
[LogLevelLabel.ERROR]: useIcon("✘", "×"),
|
|
@@ -2315,13 +2316,13 @@ var CONSOLE_ICONS = {
|
|
|
2315
2316
|
};
|
|
2316
2317
|
|
|
2317
2318
|
//#endregion
|
|
2318
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2319
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-CZ4IE2QN.js
|
|
2319
2320
|
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
2320
2321
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
2321
2322
|
};
|
|
2322
2323
|
|
|
2323
2324
|
//#endregion
|
|
2324
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2325
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-K4CDYUQR.js
|
|
2325
2326
|
var getLogLevel = (label) => {
|
|
2326
2327
|
switch (label) {
|
|
2327
2328
|
case "all": return LogLevel.ALL;
|
|
@@ -2337,7 +2338,7 @@ var getLogLevel = (label) => {
|
|
|
2337
2338
|
};
|
|
2338
2339
|
|
|
2339
2340
|
//#endregion
|
|
2340
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2341
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-SPHE3YEH.js
|
|
2341
2342
|
var daysInYear = 365.2425;
|
|
2342
2343
|
-(Math.pow(10, 8) * 24 * 60 * 60 * 1e3);
|
|
2343
2344
|
var secondsInDay = 3600 * 24;
|
|
@@ -2933,7 +2934,7 @@ var _isFunction = (value) => {
|
|
|
2933
2934
|
var brandIcon = (config = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config))("🗲");
|
|
2934
2935
|
|
|
2935
2936
|
//#endregion
|
|
2936
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2937
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-T4YVVO6G.js
|
|
2937
2938
|
var exitWithError = (config) => {
|
|
2938
2939
|
writeFatal("Exiting script with an error status...", config);
|
|
2939
2940
|
process.exit(1);
|
|
@@ -2968,7 +2969,7 @@ Stacktrace: ${error.stack}`, config);
|
|
|
2968
2969
|
};
|
|
2969
2970
|
|
|
2970
2971
|
//#endregion
|
|
2971
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2972
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-RUKM6FCF.js
|
|
2972
2973
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
2973
2974
|
var depth = 0;
|
|
2974
2975
|
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
@@ -2979,7 +2980,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
2979
2980
|
}
|
|
2980
2981
|
|
|
2981
2982
|
//#endregion
|
|
2982
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2983
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-V3GMJ4TX.js
|
|
2983
2984
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
2984
2985
|
function normalizeWindowsPath(input = "") {
|
|
2985
2986
|
if (!input) return input;
|
|
@@ -3061,7 +3062,7 @@ var isAbsolute = function(p) {
|
|
|
3061
3062
|
};
|
|
3062
3063
|
|
|
3063
3064
|
//#endregion
|
|
3064
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
3065
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.32/node_modules/@storm-software/config-tools/dist/chunk-LF3SAK2O.js
|
|
3065
3066
|
var rootFiles = [
|
|
3066
3067
|
"storm-workspace.json",
|
|
3067
3068
|
"storm-workspace.yaml",
|
|
@@ -11897,10 +11898,12 @@ async function resolveOptions(options) {
|
|
|
11897
11898
|
joinPaths(options.projectRoot, "tsconfig.lib.json"),
|
|
11898
11899
|
joinPaths(options.projectRoot, "tsconfig.app.json"),
|
|
11899
11900
|
joinPaths(options.projectRoot, "tsconfig.capnp.json"),
|
|
11901
|
+
joinPaths(options.projectRoot, "tsconfig.schema.json"),
|
|
11900
11902
|
joinPaths(options.workspaceRoot, "tsconfig.json"),
|
|
11901
11903
|
joinPaths(options.workspaceRoot, "tsconfig.lib.json"),
|
|
11902
11904
|
joinPaths(options.workspaceRoot, "tsconfig.app.json"),
|
|
11903
|
-
joinPaths(options.workspaceRoot, "tsconfig.capnp.json")
|
|
11905
|
+
joinPaths(options.workspaceRoot, "tsconfig.capnp.json"),
|
|
11906
|
+
joinPaths(options.workspaceRoot, "tsconfig.schema.json")
|
|
11904
11907
|
].find((path$1) => existsSync$1(path$1));
|
|
11905
11908
|
if (found) resolvedTsconfigPath = found;
|
|
11906
11909
|
}
|
|
@@ -11930,7 +11933,7 @@ async function resolveOptions(options) {
|
|
|
11930
11933
|
writeWarning(`✖ No Cap'n Proto schema files found in the specified source paths: ${schemas.join(", ")}. As a result, the Cap'n Proto compiler will not be able to generate any output files. Please ensure that the paths are correct and contain .capnp files.`, { logLevel: "all" });
|
|
11931
11934
|
return null;
|
|
11932
11935
|
}
|
|
11933
|
-
const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) :
|
|
11936
|
+
const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : appendPath(relativePath(tsconfigPath ? findFilePath(tsconfigPath) : options.projectRoot, joinPaths(options.workspaceRoot, resolvedSchemas[0].endsWith(".capnp") ? findFilePath(resolvedSchemas[0]) : resolvedSchemas[0])), options.projectRoot);
|
|
11934
11937
|
if (!existsSync$1(output)) {
|
|
11935
11938
|
if (isFile(output)) {
|
|
11936
11939
|
const errorMessage = `✖ The specified output path "${output}" is a file. Please provide a valid directory path.`;
|