@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.
- package/README.md +1 -1
- package/bin/capnpc.cjs +1 -1
- package/bin/capnpc.mjs +1 -1
- package/bin/capnpc.mjs.map +1 -1
- package/dist/{compile-DwHB9xBy.mjs → compile-DshE0Oj0.mjs} +2 -2
- package/dist/{compile-DwHB9xBy.mjs.map → compile-DshE0Oj0.mjs.map} +1 -1
- package/dist/{compile-GRO1_ka5.cjs → compile-e2xqm0Q3.cjs} +1 -1
- package/dist/compile.cjs +2 -2
- package/dist/compile.mjs +2 -2
- package/dist/{helpers-nWE-SpSm.cjs → helpers-B2lDU1eQ.cjs} +1 -1
- package/dist/{helpers-jlhgVQPM.mjs → helpers-C-a9QDSv.mjs} +2 -2
- package/dist/{helpers-jlhgVQPM.mjs.map → helpers-C-a9QDSv.mjs.map} +1 -1
- package/dist/helpers.cjs +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 +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_helpers = require('./helpers-
|
|
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-
|
|
2
|
-
const require_compile = require('./compile-
|
|
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
|
@@ -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,
|
|
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,
|
|
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-
|
|
3006
|
+
//# sourceMappingURL=helpers-C-a9QDSv.mjs.map
|