@stryke/capnp 0.12.6 → 0.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/capnpc.cjs +37 -43
- package/bin/capnpc.js +37 -43
- package/dist/{chunk-3SRHLQJQ.cjs → chunk-EQ2QX2E5.cjs} +4 -4
- package/dist/{chunk-WHITFR3H.cjs → chunk-GZC57DK6.cjs} +2 -2
- package/dist/{chunk-AIT6OPBM.js → chunk-JRYM3L2C.js} +2 -2
- package/dist/{chunk-672JVU4M.js → chunk-PHGBDPXG.js} +1 -1
- package/dist/compile.cjs +3 -3
- package/dist/compile.js +2 -2
- package/dist/helpers.cjs +2 -2
- package/dist/helpers.d.cts +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/dist/types.d.cts +5 -4
- package/dist/types.d.ts +5 -4
- package/dts/index.d.cts +5 -4
- package/dts/index.d.ts +5 -4
- package/package.json +2 -2
package/bin/capnpc.cjs
CHANGED
|
@@ -8099,7 +8099,7 @@ __name(listFiles, "listFiles");
|
|
|
8099
8099
|
// src/helpers.ts
|
|
8100
8100
|
var import_typescript3 = require("typescript");
|
|
8101
8101
|
async function resolveOptions(options) {
|
|
8102
|
-
const tsconfigPath = options.tsconfigPath ? options.tsconfigPath.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) :
|
|
8102
|
+
const tsconfigPath = options.tsconfigPath ? options.tsconfigPath.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, "tsconfig.json");
|
|
8103
8103
|
const schemas = toArray(options.schemas ? options.schemas : joinPaths(options.projectRoot, "schemas/**/*.capnp")).filter(Boolean).map((schema) => schema.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot));
|
|
8104
8104
|
let resolvedTsconfig;
|
|
8105
8105
|
if (options.tsconfig) {
|
|
@@ -8143,8 +8143,8 @@ async function resolveOptions(options) {
|
|
|
8143
8143
|
const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, relativePath(tsconfigPath ? findFilePath(tsconfigPath) : options.projectRoot, joinPaths(options.workspaceRoot, resolvedSchemas[0].endsWith(".capnp") ? findFilePath(resolvedSchemas[0]) : resolvedSchemas[0])));
|
|
8144
8144
|
resolvedTsconfig.options.outDir = output;
|
|
8145
8145
|
return {
|
|
8146
|
-
importPath: [],
|
|
8147
8146
|
...options,
|
|
8147
|
+
importPath: options.importPath ? options.importPath.split(",").map((dir) => dir.trim()) : [],
|
|
8148
8148
|
workspaceRoot: options.workspaceRoot,
|
|
8149
8149
|
projectRoot: options.projectRoot,
|
|
8150
8150
|
schemas: resolvedSchemas,
|
|
@@ -8211,50 +8211,15 @@ async function capnpc(options) {
|
|
|
8211
8211
|
__name(capnpc, "capnpc");
|
|
8212
8212
|
|
|
8213
8213
|
// bin/capnpc.ts
|
|
8214
|
-
|
|
8215
|
-
(
|
|
8216
|
-
|
|
8217
|
-
});
|
|
8218
|
-
const root = (0, import_utilities.findWorkspaceRootSafe)(process.cwd());
|
|
8219
|
-
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
8220
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
8221
|
-
if (root) {
|
|
8222
|
-
process.chdir(root);
|
|
8214
|
+
var compileAction = /* @__PURE__ */ __name((workspaceRoot) => async (options) => {
|
|
8215
|
+
if (!options.projectRoot) {
|
|
8216
|
+
throw new Error("\u2716 The project root directory must be specified using the -p or --project-root option.");
|
|
8223
8217
|
}
|
|
8224
|
-
const program = new import_commander.Command("storm-capnpc");
|
|
8225
|
-
program.version("1.0.0", "-v --version", "display CLI version");
|
|
8226
|
-
const projectRootOption = new import_commander.Option("-p --project-root <path>", "The path to the project root directory");
|
|
8227
|
-
const noTsOption = new import_commander.Option("--no-ts", "An indicator to disable generation of TypeScript files");
|
|
8228
|
-
const jsOption = new import_commander.Option("--js", "An indicator to generate JavaScript files");
|
|
8229
|
-
const dtsOption = new import_commander.Option("--dts", "An indicator to generate TypeScript declaration files");
|
|
8230
|
-
const noDtsOption = new import_commander.Option("--no-dts", "An indicator to disable generation of TypeScript declaration files");
|
|
8231
|
-
const ttyOption = new import_commander.Option("--tty", "An indicator to enable TTY mode for the compiler");
|
|
8232
|
-
const importPathOption = new import_commander.Option("-I --import-path <dir...>", "Add <dir> to the list of directories searched for non-relative imports").argParser((val) => {
|
|
8233
|
-
if (val.startsWith("-I") || val.startsWith("--import-path")) {
|
|
8234
|
-
return val.split(",").map((dir) => dir.trim());
|
|
8235
|
-
}
|
|
8236
|
-
return [
|
|
8237
|
-
val.trim()
|
|
8238
|
-
];
|
|
8239
|
-
});
|
|
8240
|
-
const skipGenerateId = new import_commander.Option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema");
|
|
8241
|
-
const skipStandardImportOption = new import_commander.Option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I");
|
|
8242
|
-
const schemaOption = new import_commander.Option("-s --schema <path>", "The directory (or a glob to the directory) containing the Cap'n Proto schema files to compile (default: current working directory)").default(joinPaths("{projectRoot}", "**/*.capnp"));
|
|
8243
|
-
const outputOption = new import_commander.Option("-o --output <path>", "The directory to output the generated files to");
|
|
8244
|
-
const tsconfigOption = new import_commander.Option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").default(joinPaths("{projectRoot}", "tsconfig.json"));
|
|
8245
|
-
const workspaceRootOption = new import_commander.Option("-w --workspace-root <path>", "The path to the workspace root directory").default(root);
|
|
8246
|
-
program.command("compile", {
|
|
8247
|
-
isDefault: true
|
|
8248
|
-
}).description("Run the Storm Cap'n Proto compiler").addOption(projectRootOption).addOption(schemaOption).addOption(outputOption).addOption(importPathOption).addOption(tsconfigOption).addOption(skipGenerateId).addOption(skipStandardImportOption).addOption(noTsOption).addOption(jsOption).addOption(dtsOption).addOption(noDtsOption).addOption(workspaceRootOption).addOption(ttyOption).action(compileAction).showSuggestionAfterError(true).showHelpAfterError(true);
|
|
8249
|
-
return program;
|
|
8250
|
-
}
|
|
8251
|
-
__name(createProgram, "createProgram");
|
|
8252
|
-
async function compileAction(options) {
|
|
8253
8218
|
const resolvedOptions = await resolveOptions({
|
|
8219
|
+
workspaceRoot,
|
|
8254
8220
|
...options,
|
|
8255
|
-
projectRoot: options.projectRoot,
|
|
8256
8221
|
tsconfig: void 0,
|
|
8257
|
-
tsconfigPath: options.tsconfig
|
|
8222
|
+
tsconfigPath: options.tsconfig,
|
|
8258
8223
|
schemas: options.schema
|
|
8259
8224
|
});
|
|
8260
8225
|
if (!resolvedOptions) {
|
|
@@ -8299,8 +8264,37 @@ async function compileAction(options) {
|
|
|
8299
8264
|
(0, import_console3.writeSuccess)("\u26A1 Storm Cap'n Proto Compiler completed successfully.", {
|
|
8300
8265
|
logLevel: "all"
|
|
8301
8266
|
});
|
|
8267
|
+
}, "compileAction");
|
|
8268
|
+
function createProgram() {
|
|
8269
|
+
(0, import_console3.writeInfo)("\u26A1 Running Storm Cap'n Proto Compiler Tools", {
|
|
8270
|
+
logLevel: "all"
|
|
8271
|
+
});
|
|
8272
|
+
const root = (0, import_utilities.findWorkspaceRootSafe)(process.cwd());
|
|
8273
|
+
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
8274
|
+
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
8275
|
+
if (root) {
|
|
8276
|
+
process.chdir(root);
|
|
8277
|
+
}
|
|
8278
|
+
const program = new import_commander.Command("storm-capnpc");
|
|
8279
|
+
program.version("1.0.0", "-v --version", "display CLI version");
|
|
8280
|
+
const projectRootOption = new import_commander.Option("-p --project-root <path>", "The path to the project root directory");
|
|
8281
|
+
const noTsOption = new import_commander.Option("--no-ts", "An indicator to disable generation of TypeScript files");
|
|
8282
|
+
const jsOption = new import_commander.Option("--js", "An indicator to generate JavaScript files");
|
|
8283
|
+
const dtsOption = new import_commander.Option("--dts", "An indicator to generate TypeScript declaration files");
|
|
8284
|
+
const noDtsOption = new import_commander.Option("--no-dts", "An indicator to disable generation of TypeScript declaration files");
|
|
8285
|
+
const ttyOption = new import_commander.Option("--tty", "An indicator to enable TTY mode for the compiler");
|
|
8286
|
+
const skipGenerateId = new import_commander.Option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema");
|
|
8287
|
+
const skipStandardImportOption = new import_commander.Option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I");
|
|
8288
|
+
const schemaOption = new import_commander.Option("-s --schema <path>", "The directory (or a glob to the directory) containing the Cap'n Proto schema files to compile (default: current working directory)").default(joinPaths("{projectRoot}", "**/*.capnp"));
|
|
8289
|
+
const outputOption = new import_commander.Option("-o --output <path>", "The directory to output the generated files to");
|
|
8290
|
+
const tsconfigOption = new import_commander.Option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").default(joinPaths("{projectRoot}", "tsconfig.json"));
|
|
8291
|
+
const workspaceRootOption = new import_commander.Option("-w --workspace-root <path>", "The path to the workspace root directory");
|
|
8292
|
+
program.command("compile", {
|
|
8293
|
+
isDefault: true
|
|
8294
|
+
}).description("Run the Storm Cap'n Proto compiler").addOption(projectRootOption).addOption(schemaOption).addOption(outputOption).addOption(tsconfigOption).addOption(skipGenerateId).addOption(skipStandardImportOption).addOption(noTsOption).addOption(jsOption).addOption(dtsOption).addOption(noDtsOption).addOption(workspaceRootOption).addOption(ttyOption).action(compileAction(root)).showSuggestionAfterError(true).showHelpAfterError(true);
|
|
8295
|
+
return program;
|
|
8302
8296
|
}
|
|
8303
|
-
__name(
|
|
8297
|
+
__name(createProgram, "createProgram");
|
|
8304
8298
|
void (async () => {
|
|
8305
8299
|
try {
|
|
8306
8300
|
(0, import_utilities.handleProcess)();
|
package/bin/capnpc.js
CHANGED
|
@@ -8068,7 +8068,7 @@ __name(listFiles, "listFiles");
|
|
|
8068
8068
|
// src/helpers.ts
|
|
8069
8069
|
import { parseJsonConfigFileContent, sys } from "typescript";
|
|
8070
8070
|
async function resolveOptions(options) {
|
|
8071
|
-
const tsconfigPath = options.tsconfigPath ? options.tsconfigPath.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) :
|
|
8071
|
+
const tsconfigPath = options.tsconfigPath ? options.tsconfigPath.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, "tsconfig.json");
|
|
8072
8072
|
const schemas = toArray(options.schemas ? options.schemas : joinPaths(options.projectRoot, "schemas/**/*.capnp")).filter(Boolean).map((schema) => schema.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot));
|
|
8073
8073
|
let resolvedTsconfig;
|
|
8074
8074
|
if (options.tsconfig) {
|
|
@@ -8112,8 +8112,8 @@ async function resolveOptions(options) {
|
|
|
8112
8112
|
const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, relativePath(tsconfigPath ? findFilePath(tsconfigPath) : options.projectRoot, joinPaths(options.workspaceRoot, resolvedSchemas[0].endsWith(".capnp") ? findFilePath(resolvedSchemas[0]) : resolvedSchemas[0])));
|
|
8113
8113
|
resolvedTsconfig.options.outDir = output;
|
|
8114
8114
|
return {
|
|
8115
|
-
importPath: [],
|
|
8116
8115
|
...options,
|
|
8116
|
+
importPath: options.importPath ? options.importPath.split(",").map((dir) => dir.trim()) : [],
|
|
8117
8117
|
workspaceRoot: options.workspaceRoot,
|
|
8118
8118
|
projectRoot: options.projectRoot,
|
|
8119
8119
|
schemas: resolvedSchemas,
|
|
@@ -8180,50 +8180,15 @@ async function capnpc(options) {
|
|
|
8180
8180
|
__name(capnpc, "capnpc");
|
|
8181
8181
|
|
|
8182
8182
|
// bin/capnpc.ts
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
});
|
|
8187
|
-
const root = findWorkspaceRootSafe(process.cwd());
|
|
8188
|
-
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
8189
|
-
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
8190
|
-
if (root) {
|
|
8191
|
-
process.chdir(root);
|
|
8183
|
+
var compileAction = /* @__PURE__ */ __name((workspaceRoot) => async (options) => {
|
|
8184
|
+
if (!options.projectRoot) {
|
|
8185
|
+
throw new Error("\u2716 The project root directory must be specified using the -p or --project-root option.");
|
|
8192
8186
|
}
|
|
8193
|
-
const program = new Command("storm-capnpc");
|
|
8194
|
-
program.version("1.0.0", "-v --version", "display CLI version");
|
|
8195
|
-
const projectRootOption = new Option("-p --project-root <path>", "The path to the project root directory");
|
|
8196
|
-
const noTsOption = new Option("--no-ts", "An indicator to disable generation of TypeScript files");
|
|
8197
|
-
const jsOption = new Option("--js", "An indicator to generate JavaScript files");
|
|
8198
|
-
const dtsOption = new Option("--dts", "An indicator to generate TypeScript declaration files");
|
|
8199
|
-
const noDtsOption = new Option("--no-dts", "An indicator to disable generation of TypeScript declaration files");
|
|
8200
|
-
const ttyOption = new Option("--tty", "An indicator to enable TTY mode for the compiler");
|
|
8201
|
-
const importPathOption = new Option("-I --import-path <dir...>", "Add <dir> to the list of directories searched for non-relative imports").argParser((val) => {
|
|
8202
|
-
if (val.startsWith("-I") || val.startsWith("--import-path")) {
|
|
8203
|
-
return val.split(",").map((dir) => dir.trim());
|
|
8204
|
-
}
|
|
8205
|
-
return [
|
|
8206
|
-
val.trim()
|
|
8207
|
-
];
|
|
8208
|
-
});
|
|
8209
|
-
const skipGenerateId = new Option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema");
|
|
8210
|
-
const skipStandardImportOption = new Option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I");
|
|
8211
|
-
const schemaOption = new Option("-s --schema <path>", "The directory (or a glob to the directory) containing the Cap'n Proto schema files to compile (default: current working directory)").default(joinPaths("{projectRoot}", "**/*.capnp"));
|
|
8212
|
-
const outputOption = new Option("-o --output <path>", "The directory to output the generated files to");
|
|
8213
|
-
const tsconfigOption = new Option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").default(joinPaths("{projectRoot}", "tsconfig.json"));
|
|
8214
|
-
const workspaceRootOption = new Option("-w --workspace-root <path>", "The path to the workspace root directory").default(root);
|
|
8215
|
-
program.command("compile", {
|
|
8216
|
-
isDefault: true
|
|
8217
|
-
}).description("Run the Storm Cap'n Proto compiler").addOption(projectRootOption).addOption(schemaOption).addOption(outputOption).addOption(importPathOption).addOption(tsconfigOption).addOption(skipGenerateId).addOption(skipStandardImportOption).addOption(noTsOption).addOption(jsOption).addOption(dtsOption).addOption(noDtsOption).addOption(workspaceRootOption).addOption(ttyOption).action(compileAction).showSuggestionAfterError(true).showHelpAfterError(true);
|
|
8218
|
-
return program;
|
|
8219
|
-
}
|
|
8220
|
-
__name(createProgram, "createProgram");
|
|
8221
|
-
async function compileAction(options) {
|
|
8222
8187
|
const resolvedOptions = await resolveOptions({
|
|
8188
|
+
workspaceRoot,
|
|
8223
8189
|
...options,
|
|
8224
|
-
projectRoot: options.projectRoot,
|
|
8225
8190
|
tsconfig: void 0,
|
|
8226
|
-
tsconfigPath: options.tsconfig
|
|
8191
|
+
tsconfigPath: options.tsconfig,
|
|
8227
8192
|
schemas: options.schema
|
|
8228
8193
|
});
|
|
8229
8194
|
if (!resolvedOptions) {
|
|
@@ -8268,8 +8233,37 @@ async function compileAction(options) {
|
|
|
8268
8233
|
writeSuccess("\u26A1 Storm Cap'n Proto Compiler completed successfully.", {
|
|
8269
8234
|
logLevel: "all"
|
|
8270
8235
|
});
|
|
8236
|
+
}, "compileAction");
|
|
8237
|
+
function createProgram() {
|
|
8238
|
+
writeInfo("\u26A1 Running Storm Cap'n Proto Compiler Tools", {
|
|
8239
|
+
logLevel: "all"
|
|
8240
|
+
});
|
|
8241
|
+
const root = findWorkspaceRootSafe(process.cwd());
|
|
8242
|
+
process.env.STORM_WORKSPACE_ROOT ??= root;
|
|
8243
|
+
process.env.NX_WORKSPACE_ROOT_PATH ??= root;
|
|
8244
|
+
if (root) {
|
|
8245
|
+
process.chdir(root);
|
|
8246
|
+
}
|
|
8247
|
+
const program = new Command("storm-capnpc");
|
|
8248
|
+
program.version("1.0.0", "-v --version", "display CLI version");
|
|
8249
|
+
const projectRootOption = new Option("-p --project-root <path>", "The path to the project root directory");
|
|
8250
|
+
const noTsOption = new Option("--no-ts", "An indicator to disable generation of TypeScript files");
|
|
8251
|
+
const jsOption = new Option("--js", "An indicator to generate JavaScript files");
|
|
8252
|
+
const dtsOption = new Option("--dts", "An indicator to generate TypeScript declaration files");
|
|
8253
|
+
const noDtsOption = new Option("--no-dts", "An indicator to disable generation of TypeScript declaration files");
|
|
8254
|
+
const ttyOption = new Option("--tty", "An indicator to enable TTY mode for the compiler");
|
|
8255
|
+
const skipGenerateId = new Option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema");
|
|
8256
|
+
const skipStandardImportOption = new Option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I");
|
|
8257
|
+
const schemaOption = new Option("-s --schema <path>", "The directory (or a glob to the directory) containing the Cap'n Proto schema files to compile (default: current working directory)").default(joinPaths("{projectRoot}", "**/*.capnp"));
|
|
8258
|
+
const outputOption = new Option("-o --output <path>", "The directory to output the generated files to");
|
|
8259
|
+
const tsconfigOption = new Option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").default(joinPaths("{projectRoot}", "tsconfig.json"));
|
|
8260
|
+
const workspaceRootOption = new Option("-w --workspace-root <path>", "The path to the workspace root directory");
|
|
8261
|
+
program.command("compile", {
|
|
8262
|
+
isDefault: true
|
|
8263
|
+
}).description("Run the Storm Cap'n Proto compiler").addOption(projectRootOption).addOption(schemaOption).addOption(outputOption).addOption(tsconfigOption).addOption(skipGenerateId).addOption(skipStandardImportOption).addOption(noTsOption).addOption(jsOption).addOption(dtsOption).addOption(noDtsOption).addOption(workspaceRootOption).addOption(ttyOption).action(compileAction(root)).showSuggestionAfterError(true).showHelpAfterError(true);
|
|
8264
|
+
return program;
|
|
8271
8265
|
}
|
|
8272
|
-
__name(
|
|
8266
|
+
__name(createProgram, "createProgram");
|
|
8273
8267
|
void (async () => {
|
|
8274
8268
|
try {
|
|
8275
8269
|
handleProcess();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13; var _class14; var _class15; var _class16; var _class17; var _class18; var _class19; var _class20; var _class21; var _class22; var _class23; var _class24; var _class25; var _class26; var _class27; var _class28; var _class29; var _class30; var _class31; var _class32; var _class33; var _class34; var _class35; var _class36; var _class37;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGZC57DK6cjs = require('./chunk-GZC57DK6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -4053,10 +4053,10 @@ async function capnpc(options) {
|
|
|
4053
4053
|
}
|
|
4054
4054
|
if (dataBuf.byteLength === 0) {
|
|
4055
4055
|
const opts = [];
|
|
4056
|
-
if (output &&
|
|
4056
|
+
if (output && _chunkGZC57DK6cjs.existsSync.call(void 0, output)) {
|
|
4057
4057
|
opts.push(`-o-:${output}`);
|
|
4058
4058
|
} else {
|
|
4059
|
-
if (output && !
|
|
4059
|
+
if (output && !_chunkGZC57DK6cjs.existsSync.call(void 0, output)) {
|
|
4060
4060
|
_console.writeWarning.call(void 0, `Output directory "${output}" does not exist, will write to schema path...`);
|
|
4061
4061
|
}
|
|
4062
4062
|
opts.push("-o-");
|
|
@@ -4084,7 +4084,7 @@ async function capnpc(options) {
|
|
|
4084
4084
|
}
|
|
4085
4085
|
_chunkUSNT2KNTcjs.__name.call(void 0, capnpc, "capnpc");
|
|
4086
4086
|
async function compile(dataBuf, options) {
|
|
4087
|
-
const resolvedOptions = await
|
|
4087
|
+
const resolvedOptions = await _chunkGZC57DK6cjs.resolveOptions.call(void 0, options);
|
|
4088
4088
|
if (!resolvedOptions) {
|
|
4089
4089
|
_console.writeWarning.call(void 0, "\u2716 Unable to resolve Cap'n Proto compiler options - the program will terminate", {
|
|
4090
4090
|
logLevel: "all"
|
|
@@ -1018,7 +1018,7 @@ _chunkUSNT2KNTcjs.__name.call(void 0, listFiles, "listFiles");
|
|
|
1018
1018
|
// src/helpers.ts
|
|
1019
1019
|
var _typescript = require('typescript');
|
|
1020
1020
|
async function resolveOptions(options) {
|
|
1021
|
-
const tsconfigPath = options.tsconfigPath ? options.tsconfigPath.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) :
|
|
1021
|
+
const tsconfigPath = options.tsconfigPath ? options.tsconfigPath.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, "tsconfig.json");
|
|
1022
1022
|
const schemas = toArray(options.schemas ? options.schemas : joinPaths(options.projectRoot, "schemas/**/*.capnp")).filter(Boolean).map((schema) => schema.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot));
|
|
1023
1023
|
let resolvedTsconfig;
|
|
1024
1024
|
if (options.tsconfig) {
|
|
@@ -1062,8 +1062,8 @@ async function resolveOptions(options) {
|
|
|
1062
1062
|
const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, relativePath(tsconfigPath ? findFilePath(tsconfigPath) : options.projectRoot, joinPaths(options.workspaceRoot, resolvedSchemas[0].endsWith(".capnp") ? findFilePath(resolvedSchemas[0]) : resolvedSchemas[0])));
|
|
1063
1063
|
resolvedTsconfig.options.outDir = output;
|
|
1064
1064
|
return {
|
|
1065
|
-
importPath: [],
|
|
1066
1065
|
...options,
|
|
1066
|
+
importPath: options.importPath ? options.importPath.split(",").map((dir) => dir.trim()) : [],
|
|
1067
1067
|
workspaceRoot: options.workspaceRoot,
|
|
1068
1068
|
projectRoot: options.projectRoot,
|
|
1069
1069
|
schemas: resolvedSchemas,
|
|
@@ -1018,7 +1018,7 @@ __name(listFiles, "listFiles");
|
|
|
1018
1018
|
// src/helpers.ts
|
|
1019
1019
|
import { parseJsonConfigFileContent, sys } from "typescript";
|
|
1020
1020
|
async function resolveOptions(options) {
|
|
1021
|
-
const tsconfigPath = options.tsconfigPath ? options.tsconfigPath.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) :
|
|
1021
|
+
const tsconfigPath = options.tsconfigPath ? options.tsconfigPath.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, "tsconfig.json");
|
|
1022
1022
|
const schemas = toArray(options.schemas ? options.schemas : joinPaths(options.projectRoot, "schemas/**/*.capnp")).filter(Boolean).map((schema) => schema.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot));
|
|
1023
1023
|
let resolvedTsconfig;
|
|
1024
1024
|
if (options.tsconfig) {
|
|
@@ -1062,8 +1062,8 @@ async function resolveOptions(options) {
|
|
|
1062
1062
|
const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : joinPaths(options.projectRoot, relativePath(tsconfigPath ? findFilePath(tsconfigPath) : options.projectRoot, joinPaths(options.workspaceRoot, resolvedSchemas[0].endsWith(".capnp") ? findFilePath(resolvedSchemas[0]) : resolvedSchemas[0])));
|
|
1063
1063
|
resolvedTsconfig.options.outDir = output;
|
|
1064
1064
|
return {
|
|
1065
|
-
importPath: [],
|
|
1066
1065
|
...options,
|
|
1066
|
+
importPath: options.importPath ? options.importPath.split(",").map((dir) => dir.trim()) : [],
|
|
1067
1067
|
workspaceRoot: options.workspaceRoot,
|
|
1068
1068
|
projectRoot: options.projectRoot,
|
|
1069
1069
|
schemas: resolvedSchemas,
|
package/dist/compile.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkEQ2QX2E5cjs = require('./chunk-EQ2QX2E5.cjs');
|
|
5
|
+
require('./chunk-GZC57DK6.cjs');
|
|
6
6
|
require('./chunk-KMCJ5MIQ.cjs');
|
|
7
7
|
require('./chunk-USNT2KNT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.capnpc =
|
|
11
|
+
exports.capnpc = _chunkEQ2QX2E5cjs.capnpc; exports.compile = _chunkEQ2QX2E5cjs.compile;
|
package/dist/compile.js
CHANGED
package/dist/helpers.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGZC57DK6cjs = require('./chunk-GZC57DK6.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.resolveOptions =
|
|
7
|
+
exports.resolveOptions = _chunkGZC57DK6cjs.resolveOptions;
|
package/dist/helpers.d.cts
CHANGED
|
@@ -8,6 +8,6 @@ import 'typescript';
|
|
|
8
8
|
* @param options - The options to resolve
|
|
9
9
|
* @returns The resolved options
|
|
10
10
|
*/
|
|
11
|
-
declare function resolveOptions(options: CapnpcOptions): Promise<CapnpcResolvedOptions | null>;
|
|
11
|
+
declare function resolveOptions(options: Omit<CapnpcOptions, "workspaceRoot" | "projectRoot"> & Required<Pick<CapnpcOptions, "workspaceRoot" | "projectRoot">>): Promise<CapnpcResolvedOptions | null>;
|
|
12
12
|
|
|
13
13
|
export { resolveOptions };
|
package/dist/helpers.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ import 'typescript';
|
|
|
8
8
|
* @param options - The options to resolve
|
|
9
9
|
* @returns The resolved options
|
|
10
10
|
*/
|
|
11
|
-
declare function resolveOptions(options: CapnpcOptions): Promise<CapnpcResolvedOptions | null>;
|
|
11
|
+
declare function resolveOptions(options: Omit<CapnpcOptions, "workspaceRoot" | "projectRoot"> & Required<Pick<CapnpcOptions, "workspaceRoot" | "projectRoot">>): Promise<CapnpcResolvedOptions | null>;
|
|
12
12
|
|
|
13
13
|
export { resolveOptions };
|
package/dist/helpers.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkEQ2QX2E5cjs = require('./chunk-EQ2QX2E5.cjs');
|
|
5
|
+
require('./chunk-GZC57DK6.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -135,4 +135,4 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
|
|
138
|
-
exports.AnyPointerList = _chunkHF5CIG6Fcjs.AnyPointerList; exports.BoolList = _chunkHF5CIG6Fcjs.BoolList; exports.CapnpRPC = _chunkHF5CIG6Fcjs.CapnpRPC; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkKMCJ5MIQcjs.CompositeList; exports.Conn = _chunkHF5CIG6Fcjs.Conn; exports.Data = _chunkKMCJ5MIQcjs.Data; exports.DataList = _chunkHF5CIG6Fcjs.DataList; exports.Deferred = _chunkHF5CIG6Fcjs.Deferred; exports.DeferredTransport = _chunkHF5CIG6Fcjs.DeferredTransport; exports.ErrorClient = _chunkKMCJ5MIQcjs.ErrorClient; exports.Float32List = _chunkHF5CIG6Fcjs.Float32List; exports.Float64List = _chunkHF5CIG6Fcjs.Float64List; exports.Int16List = _chunkHF5CIG6Fcjs.Int16List; exports.Int32List = _chunkHF5CIG6Fcjs.Int32List; exports.Int64List = _chunkHF5CIG6Fcjs.Int64List; exports.Int8List = _chunkHF5CIG6Fcjs.Int8List; exports.Interface = _chunkHF5CIG6Fcjs.Interface; exports.InterfaceList = _chunkHF5CIG6Fcjs.InterfaceList; exports.List = _chunkKMCJ5MIQcjs.List; exports.ListElementSize = _chunkKMCJ5MIQcjs.ListElementSize; exports.Message = _chunkKMCJ5MIQcjs.Message; exports.MessageChannelTransport = _chunkHF5CIG6Fcjs.MessageChannelTransport; exports.ObjectSize = _chunkKMCJ5MIQcjs.ObjectSize; exports.Orphan = _chunkKMCJ5MIQcjs.Orphan; exports.Pipeline = _chunkHF5CIG6Fcjs.Pipeline; exports.Pointer = _chunkKMCJ5MIQcjs.Pointer; exports.PointerList = _chunkHF5CIG6Fcjs.PointerList; exports.PointerType = _chunkKMCJ5MIQcjs.PointerType; exports.Registry = _chunkHF5CIG6Fcjs.Registry; exports.Server = _chunkHF5CIG6Fcjs.Server; exports.Struct = _chunkKMCJ5MIQcjs.Struct; exports.Text = _chunkKMCJ5MIQcjs.Text; exports.TextList = _chunkHF5CIG6Fcjs.TextList; exports.Uint16List = _chunkHF5CIG6Fcjs.Uint16List; exports.Uint32List = _chunkHF5CIG6Fcjs.Uint32List; exports.Uint64List = _chunkHF5CIG6Fcjs.Uint64List; exports.Uint8List = _chunkHF5CIG6Fcjs.Uint8List; exports.Void = _chunkHF5CIG6Fcjs.Void; exports.VoidList = _chunkHF5CIG6Fcjs.VoidList; exports.answerPipelineClient = _chunkHF5CIG6Fcjs.answerPipelineClient; exports.capnpc =
|
|
138
|
+
exports.AnyPointerList = _chunkHF5CIG6Fcjs.AnyPointerList; exports.BoolList = _chunkHF5CIG6Fcjs.BoolList; exports.CapnpRPC = _chunkHF5CIG6Fcjs.CapnpRPC; exports.CodeGeneratorContext = _chunkR2JXWA7Qcjs.CodeGeneratorContext; exports.CompositeList = _chunkKMCJ5MIQcjs.CompositeList; exports.Conn = _chunkHF5CIG6Fcjs.Conn; exports.Data = _chunkKMCJ5MIQcjs.Data; exports.DataList = _chunkHF5CIG6Fcjs.DataList; exports.Deferred = _chunkHF5CIG6Fcjs.Deferred; exports.DeferredTransport = _chunkHF5CIG6Fcjs.DeferredTransport; exports.ErrorClient = _chunkKMCJ5MIQcjs.ErrorClient; exports.Float32List = _chunkHF5CIG6Fcjs.Float32List; exports.Float64List = _chunkHF5CIG6Fcjs.Float64List; exports.Int16List = _chunkHF5CIG6Fcjs.Int16List; exports.Int32List = _chunkHF5CIG6Fcjs.Int32List; exports.Int64List = _chunkHF5CIG6Fcjs.Int64List; exports.Int8List = _chunkHF5CIG6Fcjs.Int8List; exports.Interface = _chunkHF5CIG6Fcjs.Interface; exports.InterfaceList = _chunkHF5CIG6Fcjs.InterfaceList; exports.List = _chunkKMCJ5MIQcjs.List; exports.ListElementSize = _chunkKMCJ5MIQcjs.ListElementSize; exports.Message = _chunkKMCJ5MIQcjs.Message; exports.MessageChannelTransport = _chunkHF5CIG6Fcjs.MessageChannelTransport; exports.ObjectSize = _chunkKMCJ5MIQcjs.ObjectSize; exports.Orphan = _chunkKMCJ5MIQcjs.Orphan; exports.Pipeline = _chunkHF5CIG6Fcjs.Pipeline; exports.Pointer = _chunkKMCJ5MIQcjs.Pointer; exports.PointerList = _chunkHF5CIG6Fcjs.PointerList; exports.PointerType = _chunkKMCJ5MIQcjs.PointerType; exports.Registry = _chunkHF5CIG6Fcjs.Registry; exports.Server = _chunkHF5CIG6Fcjs.Server; exports.Struct = _chunkKMCJ5MIQcjs.Struct; exports.Text = _chunkKMCJ5MIQcjs.Text; exports.TextList = _chunkHF5CIG6Fcjs.TextList; exports.Uint16List = _chunkHF5CIG6Fcjs.Uint16List; exports.Uint32List = _chunkHF5CIG6Fcjs.Uint32List; exports.Uint64List = _chunkHF5CIG6Fcjs.Uint64List; exports.Uint8List = _chunkHF5CIG6Fcjs.Uint8List; exports.Void = _chunkHF5CIG6Fcjs.Void; exports.VoidList = _chunkHF5CIG6Fcjs.VoidList; exports.answerPipelineClient = _chunkHF5CIG6Fcjs.answerPipelineClient; exports.capnpc = _chunkEQ2QX2E5cjs.capnpc; exports.clientFromResolution = _chunkHF5CIG6Fcjs.clientFromResolution; exports.clientOrNull = _chunkKMCJ5MIQcjs.clientOrNull; exports.compile = _chunkEQ2QX2E5cjs.compile; exports.copyCall = _chunkHF5CIG6Fcjs.copyCall; exports.getBitMask = _chunkKMCJ5MIQcjs.getBitMask; exports.getFloat32Mask = _chunkKMCJ5MIQcjs.getFloat32Mask; exports.getFloat64Mask = _chunkKMCJ5MIQcjs.getFloat64Mask; exports.getInt16Mask = _chunkKMCJ5MIQcjs.getInt16Mask; exports.getInt32Mask = _chunkKMCJ5MIQcjs.getInt32Mask; exports.getInt64Mask = _chunkKMCJ5MIQcjs.getInt64Mask; exports.getInt8Mask = _chunkKMCJ5MIQcjs.getInt8Mask; exports.getUint16Mask = _chunkKMCJ5MIQcjs.getUint16Mask; exports.getUint32Mask = _chunkKMCJ5MIQcjs.getUint32Mask; exports.getUint64Mask = _chunkKMCJ5MIQcjs.getUint64Mask; exports.getUint8Mask = _chunkKMCJ5MIQcjs.getUint8Mask; exports.isDataCall = _chunkHF5CIG6Fcjs.isDataCall; exports.isFuncCall = _chunkHF5CIG6Fcjs.isFuncCall; exports.isSameClient = _chunkHF5CIG6Fcjs.isSameClient; exports.placeParams = _chunkHF5CIG6Fcjs.placeParams; exports.readRawPointer = _chunkKMCJ5MIQcjs.readRawPointer; exports.utils = _chunkHF5CIG6Fcjs.utils;
|
package/dist/index.js
CHANGED
package/dist/types.d.cts
CHANGED
|
@@ -22,12 +22,12 @@ interface CapnpcCLIOptions {
|
|
|
22
22
|
noDts?: boolean;
|
|
23
23
|
schema: string;
|
|
24
24
|
output?: string;
|
|
25
|
-
importPath?: string
|
|
25
|
+
importPath?: string;
|
|
26
26
|
tsconfig: string;
|
|
27
27
|
skipGenerateId?: boolean;
|
|
28
28
|
noStandardImport?: boolean;
|
|
29
|
-
projectRoot
|
|
30
|
-
workspaceRoot
|
|
29
|
+
projectRoot?: string;
|
|
30
|
+
workspaceRoot?: string;
|
|
31
31
|
tty?: boolean;
|
|
32
32
|
}
|
|
33
33
|
type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
|
|
@@ -39,8 +39,9 @@ type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
|
|
|
39
39
|
tsconfig?: ParsedCommandLine;
|
|
40
40
|
tsconfigPath: string;
|
|
41
41
|
});
|
|
42
|
-
type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output"> & Required<Pick<CapnpcOptions, "output">> & {
|
|
42
|
+
type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output" | "importPath" | "projectRoot" | "workspaceRoot"> & Required<Pick<CapnpcOptions, "output" | "projectRoot" | "workspaceRoot">> & {
|
|
43
43
|
ts: boolean;
|
|
44
|
+
importPath: string[];
|
|
44
45
|
schemas: string[];
|
|
45
46
|
tsconfig: ParsedCommandLine;
|
|
46
47
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -22,12 +22,12 @@ interface CapnpcCLIOptions {
|
|
|
22
22
|
noDts?: boolean;
|
|
23
23
|
schema: string;
|
|
24
24
|
output?: string;
|
|
25
|
-
importPath?: string
|
|
25
|
+
importPath?: string;
|
|
26
26
|
tsconfig: string;
|
|
27
27
|
skipGenerateId?: boolean;
|
|
28
28
|
noStandardImport?: boolean;
|
|
29
|
-
projectRoot
|
|
30
|
-
workspaceRoot
|
|
29
|
+
projectRoot?: string;
|
|
30
|
+
workspaceRoot?: string;
|
|
31
31
|
tty?: boolean;
|
|
32
32
|
}
|
|
33
33
|
type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
|
|
@@ -39,8 +39,9 @@ type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
|
|
|
39
39
|
tsconfig?: ParsedCommandLine;
|
|
40
40
|
tsconfigPath: string;
|
|
41
41
|
});
|
|
42
|
-
type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output"> & Required<Pick<CapnpcOptions, "output">> & {
|
|
42
|
+
type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output" | "importPath" | "projectRoot" | "workspaceRoot"> & Required<Pick<CapnpcOptions, "output" | "projectRoot" | "workspaceRoot">> & {
|
|
43
43
|
ts: boolean;
|
|
44
|
+
importPath: string[];
|
|
44
45
|
schemas: string[];
|
|
45
46
|
tsconfig: ParsedCommandLine;
|
|
46
47
|
};
|
package/dts/index.d.cts
CHANGED
|
@@ -4100,12 +4100,12 @@ export interface CapnpcCLIOptions {
|
|
|
4100
4100
|
noDts?: boolean;
|
|
4101
4101
|
schema: string;
|
|
4102
4102
|
output?: string;
|
|
4103
|
-
importPath?: string
|
|
4103
|
+
importPath?: string;
|
|
4104
4104
|
tsconfig: string;
|
|
4105
4105
|
skipGenerateId?: boolean;
|
|
4106
4106
|
noStandardImport?: boolean;
|
|
4107
|
-
projectRoot
|
|
4108
|
-
workspaceRoot
|
|
4107
|
+
projectRoot?: string;
|
|
4108
|
+
workspaceRoot?: string;
|
|
4109
4109
|
tty?: boolean;
|
|
4110
4110
|
}
|
|
4111
4111
|
export type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
|
|
@@ -4117,8 +4117,9 @@ export type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
|
|
|
4117
4117
|
tsconfig?: ParsedCommandLine;
|
|
4118
4118
|
tsconfigPath: string;
|
|
4119
4119
|
});
|
|
4120
|
-
export type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output"> & Required<Pick<CapnpcOptions, "output">> & {
|
|
4120
|
+
export type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output" | "importPath" | "projectRoot" | "workspaceRoot"> & Required<Pick<CapnpcOptions, "output" | "projectRoot" | "workspaceRoot">> & {
|
|
4121
4121
|
ts: boolean;
|
|
4122
|
+
importPath: string[];
|
|
4122
4123
|
schemas: string[];
|
|
4123
4124
|
tsconfig: ParsedCommandLine;
|
|
4124
4125
|
};
|
package/dts/index.d.ts
CHANGED
|
@@ -4100,12 +4100,12 @@ export interface CapnpcCLIOptions {
|
|
|
4100
4100
|
noDts?: boolean;
|
|
4101
4101
|
schema: string;
|
|
4102
4102
|
output?: string;
|
|
4103
|
-
importPath?: string
|
|
4103
|
+
importPath?: string;
|
|
4104
4104
|
tsconfig: string;
|
|
4105
4105
|
skipGenerateId?: boolean;
|
|
4106
4106
|
noStandardImport?: boolean;
|
|
4107
|
-
projectRoot
|
|
4108
|
-
workspaceRoot
|
|
4107
|
+
projectRoot?: string;
|
|
4108
|
+
workspaceRoot?: string;
|
|
4109
4109
|
tty?: boolean;
|
|
4110
4110
|
}
|
|
4111
4111
|
export type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
|
|
@@ -4117,8 +4117,9 @@ export type CapnpcOptions = Omit<CapnpcCLIOptions, "tsconfig" | "schema"> & {
|
|
|
4117
4117
|
tsconfig?: ParsedCommandLine;
|
|
4118
4118
|
tsconfigPath: string;
|
|
4119
4119
|
});
|
|
4120
|
-
export type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output"> & Required<Pick<CapnpcOptions, "output">> & {
|
|
4120
|
+
export type CapnpcResolvedOptions = Omit<CapnpcOptions, "noTs" | "noDts" | "schemas" | "tsconfigPath" | "output" | "importPath" | "projectRoot" | "workspaceRoot"> & Required<Pick<CapnpcOptions, "output" | "projectRoot" | "workspaceRoot">> & {
|
|
4121
4121
|
ts: boolean;
|
|
4122
|
+
importPath: string[];
|
|
4122
4123
|
schemas: string[];
|
|
4123
4124
|
tsconfig: ParsedCommandLine;
|
|
4124
4125
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/capnp",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package to assist in running the Cap'n Proto compiler and creating Cap'n Proto serialization protocol schemas.",
|
|
6
6
|
"repository": {
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"tsx": "^4.20.1"
|
|
149
149
|
},
|
|
150
150
|
"publishConfig": { "access": "public" },
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "7404bfc8a5a6e93dfd01373da0a0bb8da528bba6"
|
|
152
152
|
}
|