Update import paths to use module aliases

This commit is contained in:
2025-10-10 15:50:14 +02:00
parent 827b53e630
commit e02737359c
9 changed files with 23 additions and 18 deletions

View File

@@ -2,8 +2,8 @@ import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import type { CollectionModel } from "pocketbase";
import { stringifyContent } from "../content.js";
import type { ResolvedConfig } from "../config.ts";
import { stringifyContent } from "@/content.js";
import type { ResolvedConfig } from "@/config.ts";
export async function generate(collections: CollectionModel[], opts: GenerateOpts) {
const stub = readFileSync(resolve(dirname(fileURLToPath(import.meta.url)), "../../assets/stubs/index.ts"), "utf-8");