| 17 | export const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); |
| 18 | export const local = path.join(root, 'perf/.local'); |
| 19 | export const hash = text => createHash('sha256').update(text).digest('hex'); |
| 20 | |
| 21 | export function buildPath(name) { |
| 22 | if (!/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/.test(name)) { |