Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

Update run.ts

LongYinane320240f2487
diff --git a/tools/cli/src/run.ts b/tools/cli/src/run.ts
index 7dcfa41bde..a2df3802fb 100644
--- a/tools/cli/src/run.ts
+++ b/tools/cli/src/run.ts
@@ -165,7 +165,9 @@ export class RunCommand extends PackageCommand {
// very simple test for auto ts/mjs scripts
const isLoaderRequired =
!ignoreLoaderScripts.some(ignore => new RegExp(ignore).test(bin)) ||
- process.env.NODE_OPTIONS?.includes('@oxc-node/core/register');
+const isLoaderRequired =
+ !ignoreLoaderScripts.some(ignore => new RegExp(ignore).test(bin)) &&
+ !process.env.NODE_OPTIONS?.includes('@oxc-node/core/register');
let NODE_OPTIONS = process.env.NODE_OPTIONS
? [process.env.NODE_OPTIONS]