Compare commits

...

1 Commits

Author SHA1 Message Date
paoloricciuti
5fcd02a4ec fix: import ts files directly 2026-04-10 16:53:15 +02:00
3 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
'@sveltejs/opencode': patch
---
fix: import `ts` files directly

View File

@@ -2,8 +2,8 @@ import type { Plugin } from '@opencode-ai/plugin';
import { readdir } from 'node:fs/promises';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { agents } from './agents.js';
import { get_mcp_config } from './config.js';
import { agents } from './agents.ts';
import { get_mcp_config } from './config.ts';
const current_dir = dirname(fileURLToPath(import.meta.url));

View File

@@ -1,5 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"allowImportingTsExtensions": true,
"types": ["@types/node"]
},
"include": ["index.ts", "config.ts", "agents.ts", "scripts/*"],
"exclude": ["node_modules"]
}