sync with tea/cli

This commit is contained in:
Max Howell 2022-09-25 10:41:14 -04:00
parent 1bb4eb9028
commit 2656381562
2 changed files with 3 additions and 3 deletions

View file

@ -97,7 +97,7 @@ async function __build(pkg: Package) {
}).chmod(0o500)
// copy in auxillary files from pantry directory
for await (const [path, {isFile}] of pantry.prefix(pkg).ls()) {
for await (const [path, {isFile}] of pantry.getYAML(pkg).path.parent().ls()) {
if (isFile) {
path.cp({ into: src.join("props").mkdir() })
}

View file

@ -31,7 +31,7 @@ const self = await (async () => {
return await cellar.resolve(pkg)
})()
const [yml] = await pantry.getYAML(self.pkg)
const yml = await pantry.getYAML(self.pkg).parse()
const deps = await deps4(self.pkg)
const installations = await prepare(deps)
const env = useShellEnv([self, ...installations])
@ -62,7 +62,7 @@ try {
text += await pantry.getScript(self.pkg, 'test', installations)
text += "\n"
for await (const [path, {name, isFile}] of pantry.prefix(self.pkg).ls()) {
for await (const [path, {name, isFile}] of pantry.getYAML(self.pkg).path.parent().ls()) {
if (isFile && name != 'package.yml') path.cp({ into: cwd })
}