From: Jérôme Benoit Date: Tue, 4 Jul 2023 14:43:11 +0000 (+0200) Subject: Revert "fix: use version from package.json" X-Git-Tag: v2.6.9~20^2~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7afd4514165c3cbb3435e230654643c389990a3f;p=poolifier.git Revert "fix: use version from package.json" This reverts commit 3f547eaffb7b81eac5389d8ddb40b4957770f400. --- 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'