Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Commit 87738ba

Browse files
author
Mohith Shrivastava
committed
fix bug with package versions
1 parent 71c66e4 commit 87738ba

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

oclif.manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":"0.3.0","commands":{"deploy:apex":{"id":"deploy:apex","description":"Deploy apex class using tooling api","usage":"<%= command.id %> -p <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"mo-dx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx deploy:apex -p filepath"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"filepath":{"name":"filepath","type":"option","char":"p","description":"file path","required":true}},"args":[]},"deploy:aura":{"id":"deploy:aura","description":"Deploy aura bundles using tooling api","usage":"<%= command.id %> -p <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"mo-dx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx deploy:aura -p filepath"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"filepath":{"name":"filepath","type":"option","char":"p","description":"file path","required":true}},"args":[]},"deploy:lwc":{"id":"deploy:lwc","description":"Deploy lwc wusing tooling api","usage":"<%= command.id %> [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"mo-dx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx deploy:lwc -p filepath"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"filepath":{"name":"filepath","type":"option","char":"p","description":"file path"}},"args":[]},"deploy:staticresource":{"id":"deploy:staticresource","description":"Deploy static resource using tooling api","usage":"<%= command.id %> [-p <string>] [-r <string>] [-c <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"mo-dx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx deploy:staticresource -p <filepath>","$ sfdx deploy:staticresource -p <filepath> --cachecontrol public","$ sfdx deploy:staticresource -p <filepath> --cachecontrol public --resourcefolder <name of the folder where you have single page app>"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"filepath":{"name":"filepath","type":"option","char":"p","description":"file path of the resource bundle"},"resourcefolder":{"name":"resourcefolder","type":"option","char":"r","description":"name of the folder where you have single page app, This defaults to staticresources","default":"staticresources"},"cachecontrol":{"name":"cachecontrol","type":"option","char":"c","description":"cache control, defaults to public","default":"private"}},"args":[]},"deploy:trigger":{"id":"deploy:trigger","description":"Deploy apex triggers using tooling api","usage":"<%= command.id %> -p <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"mo-dx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx deploy:trigger -p filepath"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"filepath":{"name":"filepath","type":"option","char":"p","description":"file path","required":true}},"args":[]},"deploy:vf":{"id":"deploy:vf","description":"Deploy visualforce page using tooling api","usage":"<%= command.id %> -p <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"mo-dx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx deploy:vf -p filepath"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"filepath":{"name":"filepath","type":"option","char":"p","description":"file path","required":true}},"args":[]},"deploy:vfcomponent":{"id":"deploy:vfcomponent","description":"Deploy visualforce components using tooling api","usage":"<%= command.id %> -p <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"mo-dx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx deploy:vfcomponent -p filepath"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"filepath":{"name":"filepath","type":"option","char":"p","description":"file path","required":true}},"args":[]},"metadata:rename":{"id":"metadata:rename","description":"Rename metadata using metadata api","usage":"<%= command.id %> -t <string> -n <string> -o <string> [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"mo-dx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx metadata:rename -t <metadatatype> -n <newname> -o <oldname>","$ sfdx metadata:rename -t CustomObject -n MyCustomObject1New__c -o MyCustomObject1__c"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"metadatatype":{"name":"metadatatype","type":"option","char":"t","description":"type of the metadata. Examples are CustomObject, Profile","required":true},"newfullname":{"name":"newfullname","type":"option","char":"n","description":"new name of the metadata element","required":true},"oldfullname":{"name":"oldfullname","type":"option","char":"o","description":"old name of the metadata element","required":true}},"args":[]},"retrieve:dxsource":{"id":"retrieve:dxsource","description":"Retrieves Source is DX format from Unmanaged/Managed package","usage":"<%= command.id %> -n <string> [-p <string>] [-m <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"mo-dx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx retrieve:dxsource -n <package/changeset>","$ sfdx retrieve:dxsource -n <package/changeset> -m \"true\"","$ sfdx retrieve:dxsource -n <package/changeset> -p <[pathName]>","$ sfdx retrieve:dxsource -u myOrg@example.com -n <package/changeset> -p <[pathName]>"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"packagename":{"name":"packagename","type":"option","char":"n","description":"the name of the package you want to retrieve","required":true},"pathname":{"name":"pathname","type":"option","char":"p","description":"where to convert the result to.defaults to force-app","default":"force-app"},"retainmetadata":{"name":"retainmetadata","type":"option","char":"m","description":"If set retain the metadata folder in mdapiout directory and do not clean"}},"args":[]},"retrieve:pkgsource":{"id":"retrieve:pkgsource","description":"Retrieves Source from Unmanaged/Managed package in Metadata API format","usage":"<%= command.id %> -n <string> [-r <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"mo-dx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx retrieve:pkgsource -n <package/changeset>","$ sfdx retrieve:pkgsource -n <package/changeset> -r <relative path where source is retrieved and unzipped>","$ sfdx retrieve:pkgsource -n <package/changeset> -r /changesets/src"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"packagename":{"name":"packagename","type":"option","char":"n","description":"the name of the package you want to retrieve","required":true},"retrievedir":{"name":"retrievedir","type":"option","char":"r","description":"directory path to retrieve","required":false}},"args":[]}}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mo-dx-plugin",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"author": "Mohith Shrivastava",
55
"bugs": "https://github.com/ForceProjects/mo-dx-plugin/issues",
66
"dependencies": {

src/service/createmetadataMember.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ function createMetadataField(xmlMetadata: string) {
3737
const apiVersion = document.getElementsByTagName('apiVersion')[0]
3838
.textContent;
3939
const statusNode = document.getElementsByTagName('status')[0];
40-
const packageNode = document.getElementsByTagName('packageVersions')[0];
40+
// const packageNode = document.getElementsByTagName('packageVersions')[0];
4141
const descriptionNode = document.getElementsByTagName('description')[0];
4242
const labelNode = document.getElementsByTagName('label')[0];
4343

4444
const metadataField = {
4545
apiVersion,
4646
...(statusNode ? { status: statusNode.textContent } : {}),
47-
...(packageNode ? { packageVersions: packageNode.textContent } : {}),
47+
// ...(packageNode ? { packageVersions: packageNode.textContent } : {}),
4848
...(descriptionNode
4949
? { description: descriptionNode.textContent }
5050
: {}),

0 commit comments

Comments
 (0)