fix version release for Dockerfile build (#1080)

This commit is contained in:
Zach Sais
2025-06-16 01:13:39 -05:00
committed by GitHub
parent 40fbb61a1b
commit cc7459e403
4 changed files with 19 additions and 4 deletions

View File

@@ -5,9 +5,14 @@
*/
import esbuild from 'esbuild';
import { readFileSync } from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import { createRequire } from 'module';
const pkg = JSON.parse(readFileSync('./package.json', 'utf-8'));
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const require = createRequire(import.meta.url);
const pkg = require(path.resolve(__dirname, 'package.json'));
esbuild
.build({