Skip to content

Commit

Permalink
Merge pull request #545 from zowe/readManifest
Browse files Browse the repository at this point in the history
Read File Sync with proper require
  • Loading branch information
1000TurquoisePogs authored Apr 12, 2024
2 parents 5b6422c + fbad8fb commit 4555e87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ if (!global.COM_RS_COMMON_LOGGER) {

const path = require('path');
const fs = require('fs');
const fsPromises = require('node:fs/promises');
const Promise = require('bluebird');
const ipaddr = require('ipaddr.js');
const dns = require('dns');
Expand Down Expand Up @@ -97,7 +96,7 @@ let zoweVersion = "0.0.0";
module.exports.setZoweVersionFromManifest = function setZoweVersionFromManifest(zoweConfig) {
if (zoweConfig.zowe.runtimeDirectory) {
try {
const contents = fsPromises.readFileSync(path.join(zoweConfig.zowe.runtimeDirectory, 'manifest.json'), {encoding: 'utf8'});
const contents = fs.readFileSync(path.join(zoweConfig.zowe.runtimeDirectory, 'manifest.json'), {encoding: 'utf8'});
if (contents) {
const asJson = JSON.parse(contents);
if (asJson.version) {
Expand Down

0 comments on commit 4555e87

Please sign in to comment.