best-summer-38252
02/01/2023, 5:31 AMconst compliedApp = new pulumi.asset.FileAsset("src/app.ts").path
.then((inPath) => {
const name = path.parse(inPath).name;
const outPath = path.join("dist", name, "index.mjs");
return new local.Command(`compile${startcase(name)}`, {
assetPaths: [outPath],
dir: ".",
create: `pnpm exec ncc build -m -s ${inPath} -o ${path.join("dist", name)}`,
delete: `rm -rf ${path.dirname(outPath)}`,
});
})
.then((r) => ({
inputPath: "src/app.ts",
outputPath: r.assetPaths[0],
}));
little-cartoon-10569
02/01/2023, 6:33 AMpulumi.output(promise)
. Would that help?best-summer-38252
02/14/2023, 12:56 AM