Skip to content

Commit

Permalink
chore(console): use .mjs for the dev scripts (#6220)
Browse files Browse the repository at this point in the history
This is a workaround to make the dev scripts for the Console work again. The issue was related to using `tsx` as the dev script executor.
  • Loading branch information
skyrpex authored Apr 12, 2024
1 parent 4e5335a commit e7eca55
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apps/wing-console/console/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"dist"
],
"scripts": {
"preview": "tsx scripts/preview.mts",
"dev": "tsx watch scripts/dev.mts",
"preview": "node scripts/preview.mjs",
"dev": "node scripts/dev.mjs",
"compile": "tsup",
"eslint": "eslint --ext .js,.cjs,.ts,.cts,.mts,.tsx --no-error-on-unmatched-pattern . --fix",
"test:playwright": "playwright test --update-snapshots",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { fileURLToPath } from "node:url";

import react from "@vitejs/plugin-react";
import { type InlineConfig } from "vite";

export const viteConfig: InlineConfig = {
/** @type {import("vite".InlineConfig)} */
export const viteConfig = {
configFile: false,
root: fileURLToPath(new URL("../web", import.meta.url)),
plugins: [react()],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ const options = parseArgs({
config: {
addEventListener(event, listener) {},
removeEventListener(event, listener) {},
get(key: any) {
return undefined as any;
},
get(key) {},
set(key, value) {},
},
hostUtils: {
Expand Down

0 comments on commit e7eca55

Please sign in to comment.