mirror of
https://github.com/sveltejs/ai-tools.git
synced 2026-07-07 05:31:03 +08:00
Compare commits
1 Commits
@sveltejs/
...
import-ts-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5fcd02a4ec |
5
.changeset/forty-lions-arrive.md
Normal file
5
.changeset/forty-lions-arrive.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@sveltejs/opencode': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: import `ts` files directly
|
||||||
@@ -2,8 +2,8 @@ import type { Plugin } from '@opencode-ai/plugin';
|
|||||||
import { readdir } from 'node:fs/promises';
|
import { readdir } from 'node:fs/promises';
|
||||||
import { dirname, join } from 'node:path';
|
import { dirname, join } from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import { agents } from './agents.js';
|
import { agents } from './agents.ts';
|
||||||
import { get_mcp_config } from './config.js';
|
import { get_mcp_config } from './config.ts';
|
||||||
|
|
||||||
const current_dir = dirname(fileURLToPath(import.meta.url));
|
const current_dir = dirname(fileURLToPath(import.meta.url));
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"allowImportingTsExtensions": true,
|
||||||
|
"types": ["@types/node"]
|
||||||
|
},
|
||||||
"include": ["index.ts", "config.ts", "agents.ts", "scripts/*"],
|
"include": ["index.ts", "config.ts", "agents.ts", "scripts/*"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user