Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Jan 11, 2025
1 parent b4c203b commit af18afa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
sdks
node_modules
package-lock.json
Binary file modified bun.lockb
Binary file not shown.
4 changes: 1 addition & 3 deletions generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { $ } from "bun";

const dry = process.argv.includes("--dry");

const $noThrow = new $.Shell().env(process.env).nothrow();

for (const file of new Bun.Glob("*").scanSync("metadata")) {
const provider = await import(`./metadata/${file}`);
const version = [provider.version, provider.suffix].filter(Boolean).join("-");
Expand All @@ -15,7 +13,7 @@ for (const file of new Bun.Glob("*").scanSync("metadata")) {
}
console.log("generating", name, "version", version);
const result =
await $noThrow`pulumi package add terraform-provider ${provider.terraform} ${provider.version}`;
await $`pulumi package add terraform-provider ${provider.terraform} ${provider.version}`;
const path = result.stdout
.toString()
.match(/at (\/[^\n]+)/)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dependencies": {
"@types/bun": "^1.1.11"
"@pulumi/infisical": "file:sdks/infisical",
"@types/node": "^22.10.5"
}
}

0 comments on commit af18afa

Please sign in to comment.