How to use Deno in Raycast scripts commands
You can create Raycast script commands using Deno. Be aware that this is not official way of doing things - you should be using Node scripts. I tested Deno scripts and for now they are working just fine but they may broke in the future.
To use Deno you need your command file with ts
or js
ending and following content:
#!/usr/bin/env -S deno run
// Required parameters:
// @raycast.schemaVersion 1
// @raycast.title Example command using Deno
// @raycast.mode silent
// Optional parameters:
// @raycast.icon ❓
// @raycast.argument1 { "type": "text", "placeholder": "param" }
// @raycast.packageName Deno
// Documentation:
// @raycast.description Example command - be aware it may break in the future
// @raycast.author YOUR NAME
// @raycast.authorURL YOUR URL
const [example] = Deno.args;
console.log("Hello from Deno script 👋 with arg:", example);