From 8edee2c3ade33340e5cfe84c6373f6c5a6f74919 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 21 Jun 2024 13:09:25 -0700 Subject: [PATCH] cross-platform NODE_OPTIONS env var --- core/jest.config.js | 1 + core/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/jest.config.js b/core/jest.config.js index 1dfa0e681b..4ddc23f507 100644 --- a/core/jest.config.js +++ b/core/jest.config.js @@ -1,3 +1,4 @@ +process.env.NODE_OPTIONS = "--experimental-vm-modules"; export default { transform: { "\\.[jt]sx?$": ["ts-jest", { useESM: true }], diff --git a/core/package.json b/core/package.json index fd34477ef6..37fdb0c16f 100644 --- a/core/package.json +++ b/core/package.json @@ -3,7 +3,7 @@ "version": "1.0.13", "description": "The Continue Core contains functionality that can be shared across web, VS Code, or Node.js server. It is written in TypeScript and contains much of the functionality that was previously inside of the legacy Continue Python Server.", "scripts": { - "test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest", + "test": "jest", "build:npm": "tsc -p ./tsconfig.npm.json", "lint": "eslint . --ext ts", "lint:fix": "eslint . --ext ts --fix"