Skip to content

Commit 4c7dae5

Browse files
authored
restore profiles export (#1973)
1 parent 82fbac8 commit 4c7dae5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/util.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ export const allProfiles = [
5353
...filesSUBM.map(x => `SUBM/${x}`),
5454
];
5555

56+
export const profiles = Object.fromEntries(
57+
allProfiles
58+
.map(file => {
59+
const match =
60+
/((TR|SUBM)\/([A-Za-z]+\/)?([A-Z][A-Z-]*[A-Z](-Echidna)?))\.js$/.exec(
61+
file
62+
);
63+
if (match && match[4]) {
64+
const key = match[4];
65+
return [key, import(`./profiles/${match[0]}`)];
66+
}
67+
return null;
68+
})
69+
.filter(Boolean)
70+
);
71+
5672
/**
5773
* Build a function that builds an “options” object based on certain parameters.
5874
*

0 commit comments

Comments
 (0)