Let's say you have two users and repos likejordiup/repo1 and not_jordiup/repo2.
You want to push and pull from them using different accounts.
| import { generatorHandler } from "@prisma/generator-helper"; | |
| import fs from "node:fs/promises"; | |
| import path from "node:path"; | |
| const header = `// This file was generated by a custom prisma generator, do not edit manually.\n`; | |
| generatorHandler({ | |
| onManifest() { | |
| return { | |
| defaultOutput: "./enums/index.ts", |
| // Configuration | |
| // You'll be able to set the domain when adding/editing the widget | |
| // Make sure the stats are public on Plausible | |
| const namespace = args.widgetParameter || "plausible.io" | |
| const displayName = namespace.slice(0,namespace.lastIndexOf(".")) | |
| const accentColor = new Color("#CCCCCC") | |
| // LineChart by https://kevinkub.de/ | |
| // Used as the widget background | |
| class LineChart { |