JSFiddle - React, Tailwind, and code Playground

by Gerald Gillespie

JavaScript

/** @type {{path: `$~/Objects/{string}`}[]} Paths for Objects */
const objects = [
  './code/Objects/customrecordtype/customrecord_oura_shiprating_meta.xml'
].map((f) => ({
  path: f.replace(/^(?:.*\/Objects\/)?(.*)(?:[.]xml)$/, '~/Objects/$1.xml')
}));

console.log({objects});