Skip to content

Commit 89a0666

Browse files
authored
Merge pull request #96 from mdapi-issues/feat/export-mapping
feat: export MAPPING
2 parents 374e55b + 96b2bfc commit 89a0666

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"MWE"
2424
],
2525
"license": "MIT",
26-
"exports": "./lib/workaround.js",
26+
"exports": "./lib/index.js",
2727
"publishConfig": {
2828
"access": "public"
2929
},

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from "./workaround.js";
2+
export * from "./mapping.js";

src/mapping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/standardvalueset_names.htm
2-
export default {
2+
export const MAPPING = {
33
"AccountContactRelation.Roles": "AccountContactMultiRoles",
44
"AccountContactRole.Role": "AccountContactRole",
55
"Account.Ownership": "AccountOwnership",

src/workaround.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { FileProperties } from "@jsforce/jsforce-node/lib/api/metadata.js";
22
import type { Connection } from "@salesforce/core";
3-
import MAPPING from "./mapping.js";
3+
import { MAPPING } from "./mapping.js";
44

55
export async function listStandardValueSets(
66
conn: Connection

0 commit comments

Comments
 (0)