From a2acb0559f040647dfce0faac3e34ee77ea60c14 Mon Sep 17 00:00:00 2001 From: Jake Teton-Landis Date: Mon, 2 Sep 2024 18:46:11 -0400 Subject: [PATCH] prettier --- README.md | 2 +- packages/quickjs-for-quickjs/README.md | 6 ++---- packages/quickjs-for-quickjs/tsup.config.ts | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 20fad1b1..67dc356b 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ main() [values]: #interfacing-with-the-interpreter [asyncify]: #asyncify [functions]: #exposing-apis -[quickjs-for-quickjs]: https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-for-quickjs +[quickjs-for-quickjs]: https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-for-quickjs - [quickjs-emscripten](#quickjs-emscripten) - [Usage](#usage) diff --git a/packages/quickjs-for-quickjs/README.md b/packages/quickjs-for-quickjs/README.md index 2bf6c126..6e8cc1ea 100644 --- a/packages/quickjs-for-quickjs/README.md +++ b/packages/quickjs-for-quickjs/README.md @@ -40,7 +40,7 @@ const context = QuickJS.createContext() setUpContext(context) // allow the host QuickJS to import quickjs-for-quickjs module -context.runtime.setModuleLoader(name => { +context.runtime.setModuleLoader((name) => { if (name === "quickjs-for-quickjs") { return quickjsSource } @@ -60,9 +60,7 @@ export const result = innerResult.consume(context.dump) ` // eval the quickjs host -const handle = context - .evalCode(quickjsHost, "quickjs-host.mjs") - .unwrap() +const handle = context.evalCode(quickjsHost, "quickjs-host.mjs").unwrap() // get the result context.runtime.executePendingJob() diff --git a/packages/quickjs-for-quickjs/tsup.config.ts b/packages/quickjs-for-quickjs/tsup.config.ts index 38953e77..cf490f78 100644 --- a/packages/quickjs-for-quickjs/tsup.config.ts +++ b/packages/quickjs-for-quickjs/tsup.config.ts @@ -1,4 +1,4 @@ -import {extendConfig} from "@jitl/tsconfig/tsup.base.config.js" +import { extendConfig } from "@jitl/tsconfig/tsup.base.config.js" export default extendConfig({ entry: ["src/index.mts"],