@stryke/capnp 0.10.5 → 0.10.6
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 +11 -10
- package/bin/capnpc.js +11 -10
- package/package.json +3 -3
package/bin/capnpc.cjs
CHANGED
|
@@ -355,13 +355,6 @@ function relativePath(from, to, withEndSlash = false) {
|
|
|
355
355
|
}
|
|
356
356
|
__name(relativePath, "relativePath");
|
|
357
357
|
|
|
358
|
-
// bin/capnpc.ts
|
|
359
|
-
var import_commander = require("commander");
|
|
360
|
-
var import_promises5 = require("fs/promises");
|
|
361
|
-
|
|
362
|
-
// src/compile.ts
|
|
363
|
-
var import_console2 = require("@storm-software/config-tools/logger/console");
|
|
364
|
-
|
|
365
358
|
// ../path/src/is-parent-path.ts
|
|
366
359
|
function isParentPath(childPath, parentPath) {
|
|
367
360
|
const normalizedChild = slash(childPath.replace(/\\/g, "/").replace(/\/$/, ""));
|
|
@@ -376,6 +369,13 @@ function replacePath(childPath, parentPath = process.cwd()) {
|
|
|
376
369
|
}
|
|
377
370
|
__name(replacePath, "replacePath");
|
|
378
371
|
|
|
372
|
+
// bin/capnpc.ts
|
|
373
|
+
var import_commander = require("commander");
|
|
374
|
+
var import_promises5 = require("fs/promises");
|
|
375
|
+
|
|
376
|
+
// src/compile.ts
|
|
377
|
+
var import_console2 = require("@storm-software/config-tools/logger/console");
|
|
378
|
+
|
|
379
379
|
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.2/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
380
380
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
381
381
|
|
|
@@ -8235,9 +8235,10 @@ async function compileAction(options) {
|
|
|
8235
8235
|
}
|
|
8236
8236
|
if (options.output) {
|
|
8237
8237
|
filePath = joinPaths(options.output, fileName);
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8238
|
+
if (!existsSync(findFilePath(options.output))) {
|
|
8239
|
+
(0, import_console3.writeWarning)(`Output directory "${findFilePath(options.output)}" does not exist, it will be created...`);
|
|
8240
|
+
await createDirectory(replacePath(findFilePath(options.output), getWorkspaceRoot()));
|
|
8241
|
+
}
|
|
8241
8242
|
}
|
|
8242
8243
|
await (0, import_promises5.writeFile)(
|
|
8243
8244
|
filePath,
|
package/bin/capnpc.js
CHANGED
|
@@ -324,13 +324,6 @@ function relativePath(from, to, withEndSlash = false) {
|
|
|
324
324
|
}
|
|
325
325
|
__name(relativePath, "relativePath");
|
|
326
326
|
|
|
327
|
-
// bin/capnpc.ts
|
|
328
|
-
import { Command, Option } from "commander";
|
|
329
|
-
import { writeFile as writeFile2 } from "node:fs/promises";
|
|
330
|
-
|
|
331
|
-
// src/compile.ts
|
|
332
|
-
import { writeWarning as writeWarning2 } from "@storm-software/config-tools/logger/console";
|
|
333
|
-
|
|
334
327
|
// ../path/src/is-parent-path.ts
|
|
335
328
|
function isParentPath(childPath, parentPath) {
|
|
336
329
|
const normalizedChild = slash(childPath.replace(/\\/g, "/").replace(/\/$/, ""));
|
|
@@ -345,6 +338,13 @@ function replacePath(childPath, parentPath = process.cwd()) {
|
|
|
345
338
|
}
|
|
346
339
|
__name(replacePath, "replacePath");
|
|
347
340
|
|
|
341
|
+
// bin/capnpc.ts
|
|
342
|
+
import { Command, Option } from "commander";
|
|
343
|
+
import { writeFile as writeFile2 } from "node:fs/promises";
|
|
344
|
+
|
|
345
|
+
// src/compile.ts
|
|
346
|
+
import { writeWarning as writeWarning2 } from "@storm-software/config-tools/logger/console";
|
|
347
|
+
|
|
348
348
|
// ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=503a440bd2bef41c0cb22819bc4ced5a7f04993fb999f0d944e284220f14916b_typescript@5.9.2/node_modules/capnp-es/dist/shared/capnp-es.CbTQkT9D.mjs
|
|
349
349
|
import ts from "typescript";
|
|
350
350
|
|
|
@@ -8204,9 +8204,10 @@ async function compileAction(options) {
|
|
|
8204
8204
|
}
|
|
8205
8205
|
if (options.output) {
|
|
8206
8206
|
filePath = joinPaths(options.output, fileName);
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8207
|
+
if (!existsSync(findFilePath(options.output))) {
|
|
8208
|
+
writeWarning3(`Output directory "${findFilePath(options.output)}" does not exist, it will be created...`);
|
|
8209
|
+
await createDirectory(replacePath(findFilePath(options.output), getWorkspaceRoot()));
|
|
8210
|
+
}
|
|
8210
8211
|
}
|
|
8211
8212
|
await writeFile2(
|
|
8212
8213
|
filePath,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/capnp",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
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": {
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"peerDependenciesMeta": { "typescript": { "optional": false } },
|
|
131
131
|
"dependencies": {
|
|
132
132
|
"@stryke/fs": "^0.23.3",
|
|
133
|
-
"@stryke/path": "^0.12.
|
|
133
|
+
"@stryke/path": "^0.12.4",
|
|
134
134
|
"defu": "^6.1.4",
|
|
135
135
|
"hex2dec": "^1.1.2",
|
|
136
136
|
"nanotar": "^0.2.0"
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"tsx": "^4.20.1"
|
|
149
149
|
},
|
|
150
150
|
"publishConfig": { "access": "public" },
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "ceb7bf70391cec255b1f5a976f054611707d245f"
|
|
152
152
|
}
|