From 48382cf3601c1ab6bb6f284580e33ce4bf8f33b6 Mon Sep 17 00:00:00 2001 From: Michael Wang Date: Sat, 21 Nov 2026 07:56:07 +0000 Subject: [PATCH] docs(media-use): put the writeRecipeFiles doc comment back above writeRecipeFiles (#8358) readProjectSource was added between writeRecipeFiles and its doc comment, so the comment sat above the wrong function. Comment move only, in both copies of recipe-store.mjs, with the skills manifest regenerated. --- packages/cli/src/media-use/lib/recipe-store.mjs | 8 ++++---- skills-manifest.json | 2 +- skills/media-use/scripts/lib/recipe-store.mjs | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/cli/src/media-use/lib/recipe-store.mjs b/packages/cli/src/media-use/lib/recipe-store.mjs index dc96ce3e8a..228d058b96 100644 --- a/packages/cli/src/media-use/lib/recipe-store.mjs +++ b/packages/cli/src/media-use/lib/recipe-store.mjs @@ -254,10 +254,6 @@ export function readRegularFile(path, noFollow = constants.O_NOFOLLOW ?? 0) { } } -/** - * Writes each named file into `dir` as a new regular file, replacing a link at that name instead - * of following it, and removes a leftover brief skeleton the bundle does not have. - */ /** * The content of the project's own `name`, or undefined when it is missing. Throws when it is a link * or not a regular file, since a received project could link it to a file outside the project. @@ -271,6 +267,10 @@ function readProjectSource(root, name) { return content; } +/** + * Writes each named file into `dir` as a new regular file, replacing a link at that name instead + * of following it, and removes a leftover brief skeleton the bundle does not have. + */ function writeRecipeFiles(dir, files) { mkdirSync(dir, { recursive: true }); for (const [name, content] of Object.entries(files)) replaceFile(join(dir, name), content); diff --git a/skills-manifest.json b/skills-manifest.json index 36dd66ad55..f8a87958f0 100644 --- a/skills-manifest.json +++ b/skills-manifest.json @@ -18,7 +18,7 @@ "files": 13 }, "media-use": { - "hash": "e31a0f67f111ee82", + "hash": "0b24d1016bf8cbef", "files": 131 }, "remotion-to-hyperframes": { diff --git a/skills/media-use/scripts/lib/recipe-store.mjs b/skills/media-use/scripts/lib/recipe-store.mjs index dc96ce3e8a..228d058b96 100644 --- a/skills/media-use/scripts/lib/recipe-store.mjs +++ b/skills/media-use/scripts/lib/recipe-store.mjs @@ -254,10 +254,6 @@ export function readRegularFile(path, noFollow = constants.O_NOFOLLOW ?? 0) { } } -/** - * Writes each named file into `dir` as a new regular file, replacing a link at that name instead - * of following it, and removes a leftover brief skeleton the bundle does not have. - */ /** * The content of the project's own `name`, or undefined when it is missing. Throws when it is a link * or not a regular file, since a received project could link it to a file outside the project. @@ -271,6 +267,10 @@ function readProjectSource(root, name) { return content; } +/** + * Writes each named file into `dir` as a new regular file, replacing a link at that name instead + * of following it, and removes a leftover brief skeleton the bundle does not have. + */ function writeRecipeFiles(dir, files) { mkdirSync(dir, { recursive: true }); for (const [name, content] of Object.entries(files)) replaceFile(join(dir, name), content);