From 8f0f76df54b536d665045a60892083768feb0ba0 Mon Sep 17 00:00:00 2001 From: Cole Lawrence Date: Mon, 13 Jun 2022 09:08:07 -0400 Subject: [PATCH] rename playground build.ts --- packages/playground/devEnv/{build.tsx => build.ts} | 4 +++- packages/playground/package.json | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) rename packages/playground/devEnv/{build.tsx => build.ts} (98%) diff --git a/packages/playground/devEnv/build.tsx b/packages/playground/devEnv/build.ts similarity index 98% rename from packages/playground/devEnv/build.tsx rename to packages/playground/devEnv/build.ts index c88bcbc..796c135 100644 --- a/packages/playground/devEnv/build.tsx +++ b/packages/playground/devEnv/build.ts @@ -70,7 +70,9 @@ const outDirs = Object.values(groups).flatMap((group) => // Render home page contents const homeHtml = renderToStaticMarkup( - Object.keys(group))} />, + React.createElement(Home, { + groups: mapValues(groups, (group) => Object.keys(group)), + }), ) const config: BuildOptions = { diff --git a/packages/playground/package.json b/packages/playground/package.json index 80dcc67..ccfc0c3 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -8,8 +8,8 @@ "dist/**/*" ], "scripts": { - "serve": "node -r esbuild-register devEnv/build.tsx -d", - "build": "node -r esbuild-register devEnv/build.tsx", + "serve": "node -r esbuild-register devEnv/build.ts --dev", + "build": "node -r esbuild-register devEnv/build.ts", "build:static": "yarn build", "typecheck": "yarn run build", "test": "playwright test --config=devEnv/playwright.config.ts",