Skip to content

Commit

Permalink
chore: add linux-aarch64 to plugin file creation (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Dec 30, 2023
1 parent 944c7b0 commit 7b3e31c
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"build": "cd js/node && npm run build:script"
},
"imports": {
"dax": "https://deno.land/x/dax@0.33.0/mod.ts"
"dax": "https://deno.land/x/dax@0.35.0/mod.ts"
}
}
47 changes: 46 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions scripts/create_plugin_file.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/usr/bin/env -S deno run --allow-env --allow-read --allow-write --allow-net=deno.land
import $ from "dax";
import { extractCargoVersion, processPlugin } from "https://raw.githubusercontent.com/dprint/automation/0.3.0/mod.ts";
import { CargoToml, processPlugin } from "https://raw.githubusercontent.com/dprint/automation/0.8.1/mod.ts";

const currentDir = $.path(import.meta).parentOrThrow();
const rootDir = currentDir.join("../").resolve();
const cargoFilePath = rootDir.join("plugin/Cargo.toml");

await processPlugin.createDprintOrgProcessPlugin({
pluginName: "dprint-plugin-prettier",
version: await extractCargoVersion(cargoFilePath.toString()),
version: new CargoToml(cargoFilePath).version(),
platforms: [
"darwin-x86_64",
"linux-x86_64",
"linux-aarch64",
"windows-x86_64",
],
isTest: Deno.args.some(a => a == "--test"),
Expand Down

0 comments on commit 7b3e31c

Please sign in to comment.