@stryke/capnp 0.10.6 → 0.10.7
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 +24 -25
- package/bin/capnpc.js +21 -22
- package/package.json +2 -2
package/bin/capnpc.cjs
CHANGED
|
@@ -47,20 +47,6 @@ var exists = /* @__PURE__ */ __name(async (filePath) => {
|
|
|
47
47
|
return (0, import_promises.access)(filePath, import_promises.constants.F_OK).then(() => true).catch(() => false);
|
|
48
48
|
}, "exists");
|
|
49
49
|
|
|
50
|
-
// ../fs/src/helpers.ts
|
|
51
|
-
var import_nanotar = require("nanotar");
|
|
52
|
-
var import_node_fs2 = require("fs");
|
|
53
|
-
var import_promises2 = require("fs/promises");
|
|
54
|
-
async function createDirectory(path) {
|
|
55
|
-
if (await exists(path)) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
return (0, import_promises2.mkdir)(path, {
|
|
59
|
-
recursive: true
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
__name(createDirectory, "createDirectory");
|
|
63
|
-
|
|
64
50
|
// ../types/src/base.ts
|
|
65
51
|
var EMPTY_STRING = "";
|
|
66
52
|
var $NestedValue = Symbol("NestedValue");
|
|
@@ -69,7 +55,7 @@ var $NestedValue = Symbol("NestedValue");
|
|
|
69
55
|
var import_node_path = require("path");
|
|
70
56
|
|
|
71
57
|
// ../path/src/is-file.ts
|
|
72
|
-
var
|
|
58
|
+
var import_node_fs2 = require("fs");
|
|
73
59
|
|
|
74
60
|
// ../path/src/join-paths.ts
|
|
75
61
|
var _DRIVE_LETTER_START_RE = /^[A-Z]:\//i;
|
|
@@ -212,13 +198,13 @@ __name(slash, "slash");
|
|
|
212
198
|
|
|
213
199
|
// ../path/src/is-file.ts
|
|
214
200
|
function isFile(path, additionalPath) {
|
|
215
|
-
return Boolean((0,
|
|
201
|
+
return Boolean((0, import_node_fs2.statSync)(additionalPath ? joinPaths(additionalPath, path) : path, {
|
|
216
202
|
throwIfNoEntry: false
|
|
217
203
|
})?.isFile());
|
|
218
204
|
}
|
|
219
205
|
__name(isFile, "isFile");
|
|
220
206
|
function isDirectory(path, additionalPath) {
|
|
221
|
-
return Boolean((0,
|
|
207
|
+
return Boolean((0, import_node_fs2.statSync)(additionalPath ? joinPaths(additionalPath, path) : path, {
|
|
222
208
|
throwIfNoEntry: false
|
|
223
209
|
})?.isDirectory());
|
|
224
210
|
}
|
|
@@ -355,6 +341,27 @@ function relativePath(from, to, withEndSlash = false) {
|
|
|
355
341
|
}
|
|
356
342
|
__name(relativePath, "relativePath");
|
|
357
343
|
|
|
344
|
+
// bin/capnpc.ts
|
|
345
|
+
var import_commander = require("commander");
|
|
346
|
+
var import_promises5 = require("fs/promises");
|
|
347
|
+
|
|
348
|
+
// src/compile.ts
|
|
349
|
+
var import_console2 = require("@storm-software/config-tools/logger/console");
|
|
350
|
+
|
|
351
|
+
// ../fs/src/helpers.ts
|
|
352
|
+
var import_nanotar = require("nanotar");
|
|
353
|
+
var import_node_fs3 = require("fs");
|
|
354
|
+
var import_promises2 = require("fs/promises");
|
|
355
|
+
async function createDirectory(path) {
|
|
356
|
+
if (await exists(path)) {
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
return (0, import_promises2.mkdir)(path, {
|
|
360
|
+
recursive: true
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
__name(createDirectory, "createDirectory");
|
|
364
|
+
|
|
358
365
|
// ../path/src/is-parent-path.ts
|
|
359
366
|
function isParentPath(childPath, parentPath) {
|
|
360
367
|
const normalizedChild = slash(childPath.replace(/\\/g, "/").replace(/\/$/, ""));
|
|
@@ -369,13 +376,6 @@ function replacePath(childPath, parentPath = process.cwd()) {
|
|
|
369
376
|
}
|
|
370
377
|
__name(replacePath, "replacePath");
|
|
371
378
|
|
|
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
|
|
|
@@ -8237,7 +8237,6 @@ async function compileAction(options) {
|
|
|
8237
8237
|
filePath = joinPaths(options.output, fileName);
|
|
8238
8238
|
if (!existsSync(findFilePath(options.output))) {
|
|
8239
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
8240
|
}
|
|
8242
8241
|
}
|
|
8243
8242
|
await (0, import_promises5.writeFile)(
|
package/bin/capnpc.js
CHANGED
|
@@ -16,20 +16,6 @@ var exists = /* @__PURE__ */ __name(async (filePath) => {
|
|
|
16
16
|
return access(filePath, constants.F_OK).then(() => true).catch(() => false);
|
|
17
17
|
}, "exists");
|
|
18
18
|
|
|
19
|
-
// ../fs/src/helpers.ts
|
|
20
|
-
import { parseTar, parseTarGzip } from "nanotar";
|
|
21
|
-
import { createWriteStream, mkdirSync, rmSync } from "node:fs";
|
|
22
|
-
import { mkdir, readFile, rm } from "node:fs/promises";
|
|
23
|
-
async function createDirectory(path) {
|
|
24
|
-
if (await exists(path)) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
return mkdir(path, {
|
|
28
|
-
recursive: true
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
__name(createDirectory, "createDirectory");
|
|
32
|
-
|
|
33
19
|
// ../types/src/base.ts
|
|
34
20
|
var EMPTY_STRING = "";
|
|
35
21
|
var $NestedValue = Symbol("NestedValue");
|
|
@@ -324,6 +310,27 @@ function relativePath(from, to, withEndSlash = false) {
|
|
|
324
310
|
}
|
|
325
311
|
__name(relativePath, "relativePath");
|
|
326
312
|
|
|
313
|
+
// bin/capnpc.ts
|
|
314
|
+
import { Command, Option } from "commander";
|
|
315
|
+
import { writeFile as writeFile2 } from "node:fs/promises";
|
|
316
|
+
|
|
317
|
+
// src/compile.ts
|
|
318
|
+
import { writeWarning as writeWarning2 } from "@storm-software/config-tools/logger/console";
|
|
319
|
+
|
|
320
|
+
// ../fs/src/helpers.ts
|
|
321
|
+
import { parseTar, parseTarGzip } from "nanotar";
|
|
322
|
+
import { createWriteStream, mkdirSync, rmSync } from "node:fs";
|
|
323
|
+
import { mkdir, readFile, rm } from "node:fs/promises";
|
|
324
|
+
async function createDirectory(path) {
|
|
325
|
+
if (await exists(path)) {
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
return mkdir(path, {
|
|
329
|
+
recursive: true
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
__name(createDirectory, "createDirectory");
|
|
333
|
+
|
|
327
334
|
// ../path/src/is-parent-path.ts
|
|
328
335
|
function isParentPath(childPath, parentPath) {
|
|
329
336
|
const normalizedChild = slash(childPath.replace(/\\/g, "/").replace(/\/$/, ""));
|
|
@@ -338,13 +345,6 @@ function replacePath(childPath, parentPath = process.cwd()) {
|
|
|
338
345
|
}
|
|
339
346
|
__name(replacePath, "replacePath");
|
|
340
347
|
|
|
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
|
|
|
@@ -8206,7 +8206,6 @@ async function compileAction(options) {
|
|
|
8206
8206
|
filePath = joinPaths(options.output, fileName);
|
|
8207
8207
|
if (!existsSync(findFilePath(options.output))) {
|
|
8208
8208
|
writeWarning3(`Output directory "${findFilePath(options.output)}" does not exist, it will be created...`);
|
|
8209
|
-
await createDirectory(replacePath(findFilePath(options.output), getWorkspaceRoot()));
|
|
8210
8209
|
}
|
|
8211
8210
|
}
|
|
8212
8211
|
await writeFile2(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/capnp",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.7",
|
|
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": "73e7e322ba240f2a3157568d55f8c2c6e125bf73"
|
|
152
152
|
}
|