@stryke/capnp 0.12.88 → 0.12.89

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.
@@ -1,4 +1,4 @@
1
- const require_helpers = require('./helpers-nWE-SpSm.cjs');
1
+ const require_helpers = require('./helpers-B2lDU1eQ.cjs');
2
2
  const require_capnp_es_GpvEvMIK = require('./capnp-es.GpvEvMIK-BY4gHyC5.cjs');
3
3
  let __stryke_fs_exists = require("@stryke/fs/exists");
4
4
  let typescript = require("typescript");
package/dist/compile.cjs CHANGED
@@ -1,5 +1,5 @@
1
- require('./helpers-nWE-SpSm.cjs');
2
- const require_compile = require('./compile-GRO1_ka5.cjs');
1
+ require('./helpers-B2lDU1eQ.cjs');
2
+ const require_compile = require('./compile-e2xqm0Q3.cjs');
3
3
 
4
4
  exports.capnpc = require_compile.capnpc;
5
5
  exports.compile = require_compile.compile;
package/dist/compile.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import "./helpers-jlhgVQPM.mjs";
2
- import { n as compile, t as capnpc } from "./compile-DwHB9xBy.mjs";
1
+ import "./helpers-C-a9QDSv.mjs";
2
+ import { n as compile, t as capnpc } from "./compile-DshE0Oj0.mjs";
3
3
 
4
4
  export { capnpc, compile };
@@ -2974,7 +2974,7 @@ async function resolveOptions(options) {
2974
2974
  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" });
2975
2975
  return null;
2976
2976
  }
2977
- 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);
2977
+ 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_append.appendPath)(resolvedSchemas[0].endsWith(".capnp") ? (0, __stryke_path_file_path_fns.findFilePath)(resolvedSchemas[0]) : resolvedSchemas[0], options.workspaceRoot)), options.projectRoot);
2978
2978
  if (!(0, __stryke_fs_exists.existsSync)(output)) {
2979
2979
  if ((0, __stryke_fs.isFile)(output)) {
2980
2980
  const errorMessage = `✖ The specified output path "${output}" is a file. Please provide a valid directory path.`;
@@ -2976,7 +2976,7 @@ async function resolveOptions(options) {
2976
2976
  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" });
2977
2977
  return null;
2978
2978
  }
2979
- 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);
2979
+ const output = options.output ? options.output.replace("{projectRoot}", options.projectRoot).replace("{workspaceRoot}", options.workspaceRoot) : appendPath(relativePath(tsconfigPath ? findFilePath(tsconfigPath) : options.projectRoot, appendPath(resolvedSchemas[0].endsWith(".capnp") ? findFilePath(resolvedSchemas[0]) : resolvedSchemas[0], options.workspaceRoot)), options.projectRoot);
2980
2980
  if (!existsSync(output)) {
2981
2981
  if (isFile(output)) {
2982
2982
  const errorMessage = `✖ The specified output path "${output}" is a file. Please provide a valid directory path.`;
@@ -3003,4 +3003,4 @@ async function resolveOptions(options) {
3003
3003
 
3004
3004
  //#endregion
3005
3005
  export { writeWarning as n, resolveOptions as t };
3006
- //# sourceMappingURL=helpers-jlhgVQPM.mjs.map
3006
+ //# sourceMappingURL=helpers-C-a9QDSv.mjs.map