mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-23 11:29:54 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user