Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
get unleash-server version in a less complicated way
Browse files Browse the repository at this point in the history
  • Loading branch information
theneva committed Feb 3, 2021
1 parent 2889f77 commit b6e864c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
4 changes: 2 additions & 2 deletions tools/docker-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const fs = require('fs');
const path = require('path');
const tempy = require('tempy');
const execa = require('execa');
const { getUnleashServerVersion } = require('./unleash-server-utils');

const tempDirPath = tempy.directory();

Expand Down Expand Up @@ -114,7 +113,8 @@ async function buildDockerImages({
nodeDockerVersions,
defaultNodeDockerVersion,
}) {
const unleashServerVersion = await getUnleashServerVersion();
/** @type string */
const unleashServerVersion = require('unleash-server/package.json').version;

/** @type {{tag: string, nodeDockerVersion: string}[]} */
const artifacts = [];
Expand Down
18 changes: 0 additions & 18 deletions tools/unleash-server-utils.js

This file was deleted.

0 comments on commit b6e864c

Please sign in to comment.