From c363c224b8bac34e0a98e63504f5d399f1ce48d6 Mon Sep 17 00:00:00 2001 From: jonathan Date: Mon, 9 Oct 2023 10:08:06 +0200 Subject: [PATCH 1/2] fix: meta env usage --- package.json | 2 +- src/utils/env.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index edd4a0140..5ab33062f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@inseefr/lunatic", - "version": "2.6.3-rc.1", + "version": "2.7.0", "workersVersion": "0.2.5-experimental", "description": "Library of questionnaire components", "repository": { diff --git a/src/utils/env.ts b/src/utils/env.ts index 347ab75d7..8c9315d7d 100644 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -1,4 +1,4 @@ export function isTestEnv(): boolean { - const meta = import.meta as any; - return meta && meta?.env ? (import.meta as any).env.MODE === 'test' : false; + // @ts-ignore + return import.meta.env.MODE === 'test'; } From 91511d21ec5472bb89d8f0c264f11807d97c1a85 Mon Sep 17 00:00:00 2001 From: Quentin Ruhier Date: Mon, 9 Oct 2023 11:25:38 +0200 Subject: [PATCH 2/2] bump: version lunatic --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5ab33062f..8de8fd512 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@inseefr/lunatic", - "version": "2.7.0", + "version": "2.7.0-rc.1", "workersVersion": "0.2.5-experimental", "description": "Library of questionnaire components", "repository": {