feat: Improve monorepo module resolution and fix clean build

This commit is contained in:
waaraawa 2026-01-05 10:30:10 +09:00
parent e584bb1ff5
commit 76c597622c
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,5 @@
import { Plugin } from 'obsidian';
import { parse, validate, createLayout, renderSVG } from '../../core/dist/index.js';
import { parse, validate, createLayout, renderSVG } from '@bytegrid/core';
export default class ByteGridPlugin extends Plugin {
onload(): void {

View file

@ -18,7 +18,11 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"baseUrl": ".",
"paths": {
"@bytegrid/core": ["packages/core/src"]
}
},
"exclude": ["node_modules", "dist", "**/*.test.ts"]
}