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.
This commit is contained in:
Michael Wang
2026-11-21 07:56:07 +00:00
committed by GitHub
parent d606c2a531
commit 48382cf360
3 changed files with 9 additions and 9 deletions
@@ -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);
+1 -1
View File
@@ -18,7 +18,7 @@
"files": 13
},
"media-use": {
"hash": "e31a0f67f111ee82",
"hash": "0b24d1016bf8cbef",
"files": 131
},
"remotion-to-hyperframes": {
@@ -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);