diff --git a/.releaserc b/.releaserc index 9d11bf3..16bfd7c 100644 --- a/.releaserc +++ b/.releaserc @@ -4,8 +4,7 @@ "branches": [ { "name": "main", "channel": "latest" }, "+([0-9])?(.{+([0-9]),x}).x", - { "name": "beta", "prerelease": true }, - { "name": "sdk2", "channel": "sdk2", "prerelease": "beta" } + { "name": "beta", "prerelease": true } ], "plugins": [ "@semantic-release/commit-analyzer", diff --git a/src/static.ts b/src/static.ts index 5332bb4..d89abe0 100644 --- a/src/static.ts +++ b/src/static.ts @@ -8,8 +8,8 @@ import type { CommerceLayerProvisioningClient, CommerceLayerInitConfig } from '. /* Static functions */ export const CommerceLayerProvisioningStatic = { - resources: (): readonly string[] => { - return api.resourceList + resources: (sort?: boolean): readonly string[] => { + return sort? [ ...api.resourceList ].sort() : api.resourceList }, isSdkError: (error: unknown): error is SdkError => {