@stryke/capnp 0.12.9 → 0.12.10

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 CHANGED
@@ -8275,23 +8275,11 @@ function createProgram() {
8275
8275
  if (root) {
8276
8276
  process.chdir(root);
8277
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)");
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");
8291
- const workspaceRootOption = new import_commander.Option("-w --workspace-root <path>", "The path to the workspace root directory");
8278
+ const program = new import_commander.Command();
8279
+ program.name("storm-capnpc").description("Run the Storm Cap'n Proto compiler").version("1.0.0", "-v --version", "display CLI version");
8292
8280
  program.command("compile", {
8293
8281
  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);
8282
+ }).option("-p --project-root <path>", "The path to the project root directory").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)").option("-o --output <path>", "The directory to output the generated files to").option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema").option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I").option("--no-ts", "An indicator to disable generation of TypeScript files").option("--js", "An indicator to generate JavaScript files").option("--dts", "An indicator to generate TypeScript declaration files").option("--no-dts", "An indicator to disable generation of TypeScript declaration files").option("-w --workspace-root <path>", "The path to the workspace root directory", root || process.cwd()).option("--tty", "An indicator to enable TTY mode for the compiler").action(compileAction(root)).showSuggestionAfterError(true).showHelpAfterError(true);
8295
8283
  return program;
8296
8284
  }
8297
8285
  __name(createProgram, "createProgram");
package/bin/capnpc.js CHANGED
@@ -453,7 +453,7 @@ function relativePath(from, to, withEndSlash = false) {
453
453
  __name(relativePath, "relativePath");
454
454
 
455
455
  // bin/capnpc.ts
456
- import { Command, Option } from "commander";
456
+ import { Command } from "commander";
457
457
  import { writeFile as writeFile2 } from "node:fs/promises";
458
458
 
459
459
  // src/compile.ts
@@ -8244,23 +8244,11 @@ function createProgram() {
8244
8244
  if (root) {
8245
8245
  process.chdir(root);
8246
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)");
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");
8260
- const workspaceRootOption = new Option("-w --workspace-root <path>", "The path to the workspace root directory");
8247
+ const program = new Command();
8248
+ program.name("storm-capnpc").description("Run the Storm Cap'n Proto compiler").version("1.0.0", "-v --version", "display CLI version");
8261
8249
  program.command("compile", {
8262
8250
  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);
8251
+ }).option("-p --project-root <path>", "The path to the project root directory").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)").option("-o --output <path>", "The directory to output the generated files to").option("--tsconfig <path>", "The path to the TypeScript configuration file to use for compilation").option("--skip-generating-id", "Skip generating a new 64-bit unique ID for use in a Cap'n Proto schema").option("--no-standard-imports", "Skip adding default import paths; use only those specified by -I").option("--no-ts", "An indicator to disable generation of TypeScript files").option("--js", "An indicator to generate JavaScript files").option("--dts", "An indicator to generate TypeScript declaration files").option("--no-dts", "An indicator to disable generation of TypeScript declaration files").option("-w --workspace-root <path>", "The path to the workspace root directory", root || process.cwd()).option("--tty", "An indicator to enable TTY mode for the compiler").action(compileAction(root)).showSuggestionAfterError(true).showHelpAfterError(true);
8264
8252
  return program;
8265
8253
  }
8266
8254
  __name(createProgram, "createProgram");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/capnp",
3
- "version": "0.12.9",
3
+ "version": "0.12.10",
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": "70ac12872a2fd8e0509d6f67fe218e0cdab7904e"
151
+ "gitHead": "9d5e50223a6e86d5b3bc4f6b333a2a64fdced862"
152
152
  }