@fedify/vocab-tools 2.5.0-dev.2500 → 2.5.0-dev.2513

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/vocab-tools",
3
- "version": "2.5.0-dev.2500+0a9d005b",
3
+ "version": "2.5.0-dev.2513+d7ab5950",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./src/mod.ts"
package/dist/mod.cjs CHANGED
@@ -8,7 +8,7 @@ let yaml = require("yaml");
8
8
  let es_toolkit = require("es-toolkit");
9
9
  //#region deno.json
10
10
  var name = "@fedify/vocab-tools";
11
- var version = "2.5.0-dev.2500+0a9d005b";
11
+ var version = "2.5.0-dev.2513+d7ab5950";
12
12
  //#endregion
13
13
  //#region src/type.ts
14
14
  const HEURISTICS_CONTEXTS = [
package/dist/mod.js CHANGED
@@ -7,7 +7,7 @@ import { parse } from "yaml";
7
7
  import { pascalCase } from "es-toolkit";
8
8
  //#region deno.json
9
9
  var name = "@fedify/vocab-tools";
10
- var version = "2.5.0-dev.2500+0a9d005b";
10
+ var version = "2.5.0-dev.2513+d7ab5950";
11
11
  //#endregion
12
12
  //#region src/type.ts
13
13
  const HEURISTICS_CONTEXTS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/vocab-tools",
3
- "version": "2.5.0-dev.2500+0a9d005b",
3
+ "version": "2.5.0-dev.2513+d7ab5950",
4
4
  "description": "Code generator for Activity Vocabulary APIs",
5
5
  "homepage": "https://fedify.dev/",
6
6
  "repository": {
@@ -51,7 +51,7 @@
51
51
  "@types/node": "^24.12.2",
52
52
  "tsdown": "^0.22.0",
53
53
  "typescript": "^6.0.0",
54
- "@fedify/vocab-runtime": "^2.5.0-dev.2500+0a9d005b"
54
+ "@fedify/vocab-runtime": "^2.5.0-dev.2513+d7ab5950"
55
55
  },
56
56
  "dependencies": {
57
57
  "@cfworker/json-schema": "^4.1.1",
package/tsdown.config.ts CHANGED
@@ -2,6 +2,10 @@ import { cp } from "node:fs/promises";
2
2
  import { join } from "node:path";
3
3
  import { defineConfig } from "tsdown";
4
4
 
5
+ // ESM and CJS hooks run concurrently but share the same output directory.
6
+ // Serialize schema copies to avoid Windows EBUSY errors on the destination.
7
+ let schemaCopy = Promise.resolve();
8
+
5
9
  export default defineConfig({
6
10
  entry: ["src/mod.ts"],
7
11
  dts: { compilerOptions: { isolatedDeclarations: true, declaration: true } },
@@ -10,11 +14,15 @@ export default defineConfig({
10
14
  deps: { neverBundle: [/^node:/] },
11
15
  hooks: {
12
16
  "build:done": async (ctx) => {
13
- await cp(
14
- join("src", "schema.yaml"),
15
- join(ctx.options.outDir, "schema.yaml"),
16
- { force: false, errorOnExist: false },
17
+ // Each hook reports its own failure; a later watch rebuild can retry.
18
+ schemaCopy = schemaCopy.catch(() => {}).then(() =>
19
+ cp(
20
+ join("src", "schema.yaml"),
21
+ join(ctx.options.outDir, "schema.yaml"),
22
+ { force: false, errorOnExist: false },
23
+ )
17
24
  );
25
+ await schemaCopy;
18
26
  },
19
27
  },
20
28
  });