Skip to content

Commit

Permalink
fix: set default runtime to node
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen committed Apr 2, 2024
1 parent 5292de6 commit dd065a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "all"
}
6 changes: 3 additions & 3 deletions scripts/update-supported-languages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function createLanguageTable(schema) {
for (const [key, value] of languages) {
const line = `| ${key.padEnd(languageWidth, " ")} | ${value.padEnd(
formatterWidth,
" "
" ",
)} |`;

lines.push(line);
Expand All @@ -76,14 +76,14 @@ function createLanguageTable(schema) {

const filler = `| ${"".padEnd(languageWidth, "-")} | ${"".padEnd(
formatterWidth,
"-"
"-",
)} |`;

lines.unshift(filler);

const heading = `| ${languageHeading.padEnd(
languageWidth,
" "
" ",
)} | ${formatterHeading.padEnd(formatterWidth, " ")} |`;

lines.unshift(heading);
Expand Down
6 changes: 3 additions & 3 deletions src/runners/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ impl core::fmt::Display for JavaScriptRuntime {

static RUNTIME_FLAG: AtomicU8 = AtomicU8::new(0);

const JAVASCRIPT_RUNTIME_BUN: u8 = 0;
const JAVASCRIPT_RUNTIME_DENO: u8 = 1;
const JAVASCRIPT_RUNTIME_NODE: u8 = 2;
const JAVASCRIPT_RUNTIME_NODE: u8 = 0;
const JAVASCRIPT_RUNTIME_BUN: u8 = 1;
const JAVASCRIPT_RUNTIME_DENO: u8 = 2;

impl From<JavaScriptRuntime> for u8 {
#[inline]
Expand Down

0 comments on commit dd065a8

Please sign in to comment.