Skip to content

Commit

Permalink
update .mjs in all files
Browse files Browse the repository at this point in the history
Signed-off-by: Himani1519 <[email protected]>
  • Loading branch information
Himani1519 committed Nov 7, 2023
1 parent 3a307f8 commit 39bbba4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions bin/app-server.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if defined NODE_HOME (
set NODE_BIN=node
)

if not exist "..\lib\zluxArgs.js" (
if not exist "..\lib\zluxArgs.mjs" (
if defined CONDA_PREFIX (
cd "%CONDA_PREFIX%\share\zowe\app-server\zlux-app-server\bin"
)
Expand All @@ -36,7 +36,7 @@ if exist "%ZLUX_CONFIG_FILE%" (
set CONFIG_FILE=%WORKSPACE_DIR%\app-server\serverConfig\zowe.yaml
) else (
cd ..\lib
!NODE_BIN! initInstance.js
!NODE_BIN! initInstance.mjs
cd ..\bin
)
) else (
Expand All @@ -45,7 +45,7 @@ if exist "%ZLUX_CONFIG_FILE%" (
set CONFIG_FILE=%INSTANCE_DIR%\workspace\app-server\serverConfig\zowe.yaml
) else (
cd ..\lib
!NODE_BIN! initInstance.js
!NODE_BIN! initInstance.mjs
cd ..\bin
)
) else (
Expand All @@ -57,7 +57,7 @@ if exist "%ZLUX_CONFIG_FILE%" (
set INSTANCE_DIR=%USERPROFILE%\.zowe
call :makedir "!INSTANCE_DIR!\logs"
cd ..\lib
!NODE_BIN! initInstance.js
!NODE_BIN! initInstance.mjs
set CONFIG_FILE=%USERPROFILE%\.zowe\workspace\app-server\serverConfig\zowe.yaml
cd ..\bin
)
Expand Down Expand Up @@ -96,9 +96,9 @@ if not defined ZLUX_MIN_WORKERS (
set NODE_CLUSTER_SCHED_POLICY=none

if "%ZLUX_NO_CLUSTER%" == "1" (
set ZLUX_SERVER_FILE=zluxServer.js
set ZLUX_SERVER_FILE=zluxServer.mjs
) else (
set ZLUX_SERVER_FILE=zluxCluster.js
set ZLUX_SERVER_FILE=zluxCluster.mjs
)

if not defined ZOWE_WORKING_DIR (
Expand Down
4 changes: 2 additions & 2 deletions bin/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ fi

. ./init/node-init.sh
cd ../lib
CONFIG_FILE=$ZWE_CLI_PARAMETER_CONFIG $NODE_BIN initInstance.js
CONFIG_FILE=$ZWE_CLI_PARAMETER_CONFIG $NODE_BIN initInstance.mjs

cd ${COMPONENT_HOME}/share/zlux-app-server/bin/init
if [ "${ZWE_zowe_useConfigmgr}" = "true" ]; then
_CEE_RUNOPTS="XPLINK(ON),HEAPPOOLS(OFF)" ${ZWE_zowe_runtimeDirectory}/bin/utils/configmgr -script "${ZWE_zowe_runtimeDirectory}/components/app-server/share/zlux-app-server/bin/init/plugins-init.js"
_CEE_RUNOPTS="XPLINK(ON),HEAPPOOLS(OFF)" ${ZWE_zowe_runtimeDirectory}/bin/utils/configmgr -script "${ZWE_zowe_runtimeDirectory}/components/app-server/share/zlux-app-server/bin/init/plugins-init.mjs"
else
. ./plugins-init.sh
fi
2 changes: 1 addition & 1 deletion bin/init/plugins-init.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import * as common from '../../../../../../bin/libs/common';
import * as componentlib from '../../../../../../bin/libs/component';
import { PathAPI as pathoid } from '../../../../../../bin/libs/pathoid';

common.printFormattedDebug("ZWED", "plugins-init", `Started plugins-init.js, platform=${os.platform}`);
common.printFormattedDebug("ZWED", "plugins-init", `Started plugins-init.mjs, platform=${os.platform}`);

const runtimeDirectory=std.getenv('ZWE_zowe_runtimeDirectory');
const extensionDirectory=std.getenv('ZWE_zowe_extensionDirectory');
Expand Down
2 changes: 1 addition & 1 deletion bin/install-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if [ -n "${ZWE_zowe_workspaceDirectory}" -a -n "${ZWE_zowe_runtimeDirectory}" ];
setVars
if [ ! -e "${ZWE_zowe_workspaceDirectory}/app-server/plugins/org.zowe.zlux.json" ]; then
cd ${zlux_path}/zlux-app-server/lib
CONFIG_FILE=$ZWE_CLI_PARAMETER_CONFIG $NODE_BIN initInstance.js
CONFIG_FILE=$ZWE_CLI_PARAMETER_CONFIG $NODE_BIN initInstance.mjs
fi
fi
else
Expand Down
6 changes: 3 additions & 3 deletions bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ if [ -z "${ZWE_zowe_runtimeDirectory}" ]; then
fi
if [ ! -e "${ZWE_zowe_workspaceDirectory}/app-server/plugins/org.zowe.zlux.json}" ]; then
cd ${ZLUX_APP_SERVER_DIR}/lib
$NODE_BIN initInstance.js
$NODE_BIN initInstance.mjs
fi
fi

if [ -z "$ZLUX_NO_CLUSTER" ]; then
ZLUX_SERVER_FILE=zluxCluster.js
ZLUX_SERVER_FILE=zluxCluster.mjs
export ZLUX_MIN_WORKERS=${ZLUX_MIN_WORKERS:-2}
else
ZLUX_SERVER_FILE=zluxServer.js
ZLUX_SERVER_FILE=zluxServer.mjs
fi

if [ "$ZWE_zowe_verifyCertificates" = "DISABLED" ]; then
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "zlux-app-server",
"version": "1.0.0",
"type": "module",
"main": "lib/zluxServer.js",
"main": "lib/zluxServer.mjs",
"directories": {
"doc": "doc"
},
Expand Down

0 comments on commit 39bbba4

Please sign in to comment.