From 7afd4514165c3cbb3435e230654643c389990a3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 4 Jul 2023 16:43:11 +0200 Subject: [PATCH] Revert "fix: use version from package.json" This reverts commit 3f547eaffb7b81eac5389d8ddb40b4957770f400. --- .release-it.json | 2 +- rollup.config.mjs | 1 - src/pools/version.ts | 8 +------- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.release-it.json b/.release-it.json index f9dd74e2..8e229285 100644 --- a/.release-it.json +++ b/.release-it.json @@ -14,7 +14,7 @@ }, "plugins": { "@release-it/bumper": { - "out": ["sonar-project.properties"] + "out": ["sonar-project.properties", "src/pools/version.ts"] }, "@release-it/keep-a-changelog": { "filename": "CHANGELOG.md", diff --git a/rollup.config.mjs b/rollup.config.mjs index a6db43ec..1410f161 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -48,7 +48,6 @@ export default { 'node:cluster', 'node:crypto', 'node:events', - 'node:module', 'node:os', 'node:perf_hooks', 'node:worker_threads' diff --git a/src/pools/version.ts b/src/pools/version.ts index 14e559c4..c7e07502 100644 --- a/src/pools/version.ts +++ b/src/pools/version.ts @@ -1,7 +1 @@ -import { createRequire } from 'node:module' - -const require = createRequire(import.meta.url) - -export const version = ( - require('../../package.json') as Record -).version as string +export const version = '2.6.8' -- 2.34.1