diff --git a/Dockerfile b/Dockerfile index 3063ca62..4632de24 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16 +FROM node:18 RUN dpkg --add-architecture i386 RUN apt-get update @@ -10,8 +10,8 @@ RUN npm install --global publish-release RUN npm install --global pkg-fetch #RUN pkg-fetch -n node10 -p win -a x64 -RUN pkg-fetch -n node16 -p linux -a x64 -RUN pkg-fetch -n node16 -p macos -a x64 +RUN pkg-fetch -n node18 -p linux -a x64 +RUN pkg-fetch -n node18 -p macos -a x64 RUN npm install --global pkg diff --git a/lib/utilityservice.js b/lib/utilityservice.js index 3d14c60a..1454c273 100644 --- a/lib/utilityservice.js +++ b/lib/utilityservice.js @@ -897,29 +897,29 @@ UtilityService.prototype.sfdx = async function(command, options) { try { if (command == 'org:display') { - var OrgDisplayCommand = require("salesforce-alm/dist/commands/force/org/display"); + var OrgDisplayCommand = require("salesforce-alm/dist/commands/force/package1/legacy/version/display"); flags.quiet = true; - sfdxCommand = new OrgDisplayCommand.OrgDisplayCommand(); + sfdxCommand = new OrgDisplayCommand.Package1VersionDisplayCommand(); } else if (command == 'source:retrieve') { - var SourceRetrieveCommand = require("salesforce-alm/dist/commands/force/source/retrieve"); - sfdxCommand = new SourceRetrieveCommand.SourceRetrieveCommand(); + var SourceRetrieveCommand = require("salesforce-alm/dist/commands/force/mdapi/legacy/retrieve"); + sfdxCommand = new SourceRetrieveCommand.MdapiRetrieveCommand(); } else if (command == 'source:deploy') { - var SourceDeployCommand = require("salesforce-alm/dist/commands/force/source/deploy"); - sfdxCommand = new SourceDeployCommand.SourceDeployCommand(); + var SourceDeployCommand = require("salesforce-alm/dist/commands/force/source/legacy/push"); + sfdxCommand = new SourceDeployCommand.SourcePushCommand(); sfdxCommand.ux = await require("@salesforce/command").UX.create(); } else if (command == 'source:delete') { - var SourceDeleteCommand = require("salesforce-alm/dist/commands/force/source/delete"); - sfdxCommand = new SourceDeleteCommand.SourceDeleteCommand(); + var SourceDeleteCommand = require("salesforce-alm/dist/commands/force/package/legacy/delete"); + sfdxCommand = new SourceDeleteCommand.PackageDeleteCommand(); sfdxCommand.ux = await require("@salesforce/command").UX.create(); } else if (command == 'mdapi:listmetadata') { - var MdapiListmetadataCommand = require("salesforce-alm/dist/commands/force/mdapi/listmetadata"); - sfdxCommand = new MdapiListmetadataCommand.MdapiListmetadataCommand(); + var MdapiListmetadataCommand = require("salesforce-alm/dist/commands/force/package/legacy/list"); + sfdxCommand = new MdapiListmetadataCommand.PackageListCommand(); } else if (command == 'source:convert') { - var SourceConvertCommand = require("salesforce-alm/dist/commands/force/source/convert"); - sfdxCommand = new SourceConvertCommand.SourceConvertCommand(); + var SourceConvertCommand = require("salesforce-alm/dist/commands/force/mdapi/legacy/convert"); + sfdxCommand = new SourceConvertCommand.MdapiConvertCommand(); sfdxCommand.ux = await require("@salesforce/command").UX.create(); } else if (command == 'mdapi:deploy') { - var MdapiDeployCommand = require("salesforce-alm/dist/commands/force/mdapi/deploy"); + var MdapiDeployCommand = require("salesforce-alm/dist/commands/force/mdapi/legacy/deploy"); sfdxCommand = new MdapiDeployCommand.MdapiDeployCommand(); sfdxCommand.ux = await require("@salesforce/command").UX.create(); } diff --git a/package-lock.json b/package-lock.json index b6e83643..c3416f25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14666,4 +14666,4 @@ } } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index c5456ff1..7e614ae3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "arutland@vlocity.com", "bin": "lib/vlocitybuild.js", "dependencies": { - "async": "3.2.0", + "async": "3.2.5", "command-exists": "^1.2.9", "diff2html": "2.5.0", "fast-json-stable-stringify": "2.1.0", @@ -10,7 +10,7 @@ "filterxml": "1.1.4", "fs-extra": "8.0.1", "git-diff": "2.0.6", - "global-modules-path": "^2.3.1", + "global-modules-path": "^3.0.0", "ignore": "5.0.4", "is-utf8": "0.2.1", "js-yaml": "3.13.1", @@ -21,15 +21,15 @@ "nopt": "4.0.1", "opn": "6.0.0", "properties": "1.2.1", - "puppeteer-core": "^5.3.1", + "puppeteer-core": "^21.5.2", "runtime-plugin-manager-clone": "0.1.0", - "salesforce-alm": "49.5.0", + "salesforce-alm": "54.8.5", "sass.js": "0.11.1", - "semver": "6.2.0", + "semver": "7.5.4", "shelljs": "^0.8.5", - "simple-git": "1.107.0", + "simple-git": "3.21.0", "unidecode": "0.1.8", - "xml2js": "0.4.22", + "xml2js": "0.6.2", "xmlbuilder": "13.0.2" }, "description": "Enable Continuous Integration for Vlocity", @@ -38,7 +38,7 @@ "mocha": "^5.2.0" }, "engines": { - "node": ">=10" + "node": ">=18" }, "files": [ "/DataPackSettings",