import fs from 'node:fs/promises' import path from 'node:path' import { load } from 'js-yaml' import { htmlEscape, parseModuleProps } from '../helpers/common.ts' import type { ModuleProp } from '../helpers/common.ts' /** * The two places a provider's markup can be asked to go. * * `head` is where nearly everything belongs — a tracking tag is loaded as early as possible so that * it sees the page load it is meant to be counting. `bodyStart` exists for the one thing that cannot * go in the head: Google Tag Manager's `