Convert core/ to NodeNext (#1877)
* convert to nodenext in core * experimental vm modules * use imports * a few ts-ignores --------- Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
This commit is contained in:
parent
100fff1324
commit
8fed0cb985
56 changed files with 291 additions and 123 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { IDE, Location } from "..";
|
||||
import { LANGUAGES } from "./languages";
|
||||
import { getSymbolsForSnippet } from "./ranking";
|
||||
import { IDE, Location } from "../index.js";
|
||||
import { LANGUAGES } from "./languages.js";
|
||||
import { getSymbolsForSnippet } from "./ranking.js";
|
||||
|
||||
interface FileInfo {
|
||||
filepath: string;
|
||||
|
|
|
|||
|
|
@ -266,7 +266,8 @@ export class CompletionProvider {
|
|||
filepath = getBasename(filepath);
|
||||
}
|
||||
|
||||
const pattern = ignore().add(options.disableInFiles);
|
||||
// @ts-ignore
|
||||
const pattern = ignore.default().add(options.disableInFiles);
|
||||
if (pattern.ignores(filepath)) {
|
||||
return undefined;
|
||||
}
|
||||
|
|
@ -586,7 +587,14 @@ export class CompletionProvider {
|
|||
});
|
||||
} else {
|
||||
// Let the template function format snippets
|
||||
prompt = template(prefix, suffix, filepath, reponame, lang.name, snippets);
|
||||
prompt = template(
|
||||
prefix,
|
||||
suffix,
|
||||
filepath,
|
||||
reponame,
|
||||
lang.name,
|
||||
snippets,
|
||||
);
|
||||
}
|
||||
|
||||
// Completion
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { LineFilter } from "./lineStream";
|
||||
import type { LineFilter } from "./lineStream.js";
|
||||
|
||||
export interface AutocompleteLanguageInfo {
|
||||
name: string;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { ILLM } from "..";
|
||||
import { longestCommonSubsequence } from "../util/lcs";
|
||||
import { lineIsRepeated } from "./lineStream";
|
||||
import type { ILLM } from "../index.js";
|
||||
import { longestCommonSubsequence } from "../util/lcs.js";
|
||||
import { lineIsRepeated } from "./lineStream.js";
|
||||
|
||||
function rewritesLineAbove(completion: string, prefix: string): boolean {
|
||||
const lineAbove = prefix
|
||||
|
|
|
|||
|
|
@ -61,9 +61,7 @@ import {
|
|||
getPromptFiles,
|
||||
slashCommandFromPromptFile,
|
||||
} from "./promptFile.js";
|
||||
|
||||
const { execSync } = require("child_process");
|
||||
|
||||
import { execSync } from "child_process";
|
||||
function resolveSerializedConfig(filepath: string): SerializedContinueConfig {
|
||||
let content = fs.readFileSync(filepath, "utf8");
|
||||
const config = JSONC.parse(content) as unknown as SerializedContinueConfig;
|
||||
|
|
@ -535,7 +533,7 @@ async function buildConfigTs() {
|
|||
);
|
||||
} else {
|
||||
// Dynamic import esbuild so potentially disastrous errors can be caught
|
||||
const esbuild = require("esbuild");
|
||||
const esbuild = await import("esbuild");
|
||||
|
||||
await esbuild.build({
|
||||
entryPoints: [getConfigTsPath()],
|
||||
|
|
@ -587,7 +585,7 @@ async function loadFullConfigNode(
|
|||
try {
|
||||
// Try config.ts first
|
||||
const configJsPath = getConfigJsPath();
|
||||
const module = await require(configJsPath);
|
||||
const module = await import(configJsPath);
|
||||
delete require.cache[require.resolve(configJsPath)];
|
||||
if (!module.modifyConfig) {
|
||||
throw new Error("config.ts does not export a modifyConfig function.");
|
||||
|
|
@ -604,7 +602,7 @@ async function loadFullConfigNode(
|
|||
const configJsPathForRemote = getConfigJsPathForRemote(
|
||||
ideSettings.remoteConfigServerUrl,
|
||||
);
|
||||
const module = await require(configJsPathForRemote);
|
||||
const module = await import(configJsPathForRemote);
|
||||
delete require.cache[require.resolve(configJsPathForRemote)];
|
||||
if (!module.modifyConfig) {
|
||||
throw new Error("config.ts does not export a modifyConfig function.");
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import { ConfigJson } from "@continuedev/config-types";
|
||||
import { ControlPlaneClient } from "../../control-plane/client.js";
|
||||
import {
|
||||
ContinueConfig,
|
||||
IDE,
|
||||
IdeSettings,
|
||||
SerializedContinueConfig,
|
||||
} from "../..";
|
||||
import { ControlPlaneClient } from "../../control-plane/client";
|
||||
import { IProfileLoader } from "./IProfileLoader";
|
||||
import doLoadConfig from "./doLoadConfig";
|
||||
} from "../../index.js";
|
||||
import { IProfileLoader } from "./IProfileLoader.js";
|
||||
import doLoadConfig from "./doLoadConfig.js";
|
||||
|
||||
export default class ControlPlaneProfileLoader implements IProfileLoader {
|
||||
private static RELOAD_INTERVAL = 1000 * 60 * 15; // every 15 minutes
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// ProfileHandlers manage the loading of a config, allowing us to abstract over different ways of getting to a ContinueConfig
|
||||
|
||||
import { ContinueConfig } from "../..";
|
||||
import { ContinueConfig } from "../../index.js";
|
||||
|
||||
// After we have the ContinueConfig, the ConfigHandler takes care of everything else (loading models, lifecycle, etc.)
|
||||
export interface IProfileLoader {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { ContinueConfig, IDE, IdeSettings } from "../..";
|
||||
import { ControlPlaneClient } from "../../control-plane/client";
|
||||
import doLoadConfig from "./doLoadConfig";
|
||||
import { IProfileLoader } from "./IProfileLoader";
|
||||
import { ControlPlaneClient } from "../../control-plane/client.js";
|
||||
import { ContinueConfig, IDE, IdeSettings } from "../../index.js";
|
||||
import doLoadConfig from "./doLoadConfig.js";
|
||||
import { IProfileLoader } from "./IProfileLoader.js";
|
||||
|
||||
export default class LocalProfileLoader implements IProfileLoader {
|
||||
static ID = "local";
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
import { ContinueProxyReranker } from "../../context/rerankers/ContinueProxyReranker.js";
|
||||
import { ControlPlaneClient } from "../../control-plane/client.js";
|
||||
import { TeamAnalytics } from "../../control-plane/TeamAnalytics.js";
|
||||
import {
|
||||
ContinueRcJson,
|
||||
IDE,
|
||||
IdeSettings,
|
||||
SerializedContinueConfig,
|
||||
} from "../..";
|
||||
import { ContinueProxyReranker } from "../../context/rerankers/ContinueProxyReranker";
|
||||
import { ControlPlaneClient } from "../../control-plane/client";
|
||||
import { TeamAnalytics } from "../../control-plane/TeamAnalytics";
|
||||
import ContinueProxyEmbeddingsProvider from "../../indexing/embeddings/ContinueProxyEmbeddingsProvider";
|
||||
import ContinueProxy from "../../llm/llms/stubs/ContinueProxy";
|
||||
import { Telemetry } from "../../util/posthog";
|
||||
import { loadFullConfigNode } from "../load";
|
||||
} from "../../index.js";
|
||||
import ContinueProxyEmbeddingsProvider from "../../indexing/embeddings/ContinueProxyEmbeddingsProvider.js";
|
||||
import ContinueProxy from "../../llm/llms/stubs/ContinueProxy.js";
|
||||
import { Telemetry } from "../../util/posthog.js";
|
||||
import { loadFullConfigNode } from "../load.js";
|
||||
|
||||
export default async function doLoadConfig(
|
||||
ide: IDE,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import Handlebars from "handlebars";
|
||||
import path from "path";
|
||||
import * as YAML from "yaml";
|
||||
import type { IDE, SlashCommand } from "..";
|
||||
import { walkDir } from "../indexing/walkDir";
|
||||
import { stripImages } from "../llm/images";
|
||||
import type { IDE, SlashCommand } from "../index.js";
|
||||
import { walkDir } from "../indexing/walkDir.js";
|
||||
import { stripImages } from "../llm/images.js";
|
||||
import { renderTemplatedString } from "../llm/llms/index.js";
|
||||
import { getBasename } from "../util/index.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class DatabaseContextProvider extends BaseContextProvider {
|
|||
|
||||
const [connectionName, table] = query.split(".");
|
||||
|
||||
const getDatabaseAdapter = await require("dbinfoz");
|
||||
const { getDatabaseAdapter } = await import("dbinfoz");
|
||||
|
||||
for (const connection of connections) {
|
||||
if (connection.name === connectionName) {
|
||||
|
|
@ -87,7 +87,7 @@ class DatabaseContextProvider extends BaseContextProvider {
|
|||
return contextItems;
|
||||
}
|
||||
|
||||
const getDatabaseAdapter = await require("dbinfoz");
|
||||
const { getDatabaseAdapter } = await import("dbinfoz");
|
||||
|
||||
for (const connection of connections) {
|
||||
const adapter = getDatabaseAdapter(
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { RequestOptions } from "../../../index.js";
|
||||
const { convert: adf2md } = require("adf-to-md");
|
||||
|
||||
// @ts-ignore
|
||||
import adf2md from "adf-to-md";
|
||||
interface JiraClientOptions {
|
||||
domain: string;
|
||||
username: string;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,9 @@ class PostgresContextProvider extends BaseContextProvider {
|
|||
static DEFAULT_SAMPLE_ROWS = 3;
|
||||
|
||||
private async getPool() {
|
||||
const pg = await require("pg");
|
||||
// @ts-ignore
|
||||
const pg = await import("pg");
|
||||
|
||||
return new pg.Pool({
|
||||
host: this.options.host,
|
||||
port: this.options.port,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Chunk } from "../..";
|
||||
import { deduplicateArray } from "../../util";
|
||||
import { Chunk } from "../../index.js";
|
||||
import { deduplicateArray } from "../../util/index.js";
|
||||
|
||||
export function deduplicateChunks(chunks: Chunk[]): Chunk[] {
|
||||
return deduplicateArray(chunks, (a, b) => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { constants, getTimestamp } from "../../deploy/constants";
|
||||
import { Telemetry } from "../../util/posthog";
|
||||
import { constants, getTimestamp } from "../../deploy/constants.js";
|
||||
import { Telemetry } from "../../util/posthog.js";
|
||||
|
||||
export async function getHeaders() {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { Analytics } from "@continuedev/config-types";
|
||||
import os from "node:os";
|
||||
import ContinueProxyAnalyticsProvider from "./analytics/ContinueProxyAnalyticsProvider";
|
||||
import { IAnalyticsProvider } from "./analytics/IAnalyticsProvider";
|
||||
import LogStashAnalyticsProvider from "./analytics/LogStashAnalyticsProvider";
|
||||
import PostHogAnalyticsProvider from "./analytics/PostHogAnalyticsProvider";
|
||||
import ContinueProxyAnalyticsProvider from "./analytics/ContinueProxyAnalyticsProvider.js";
|
||||
import { IAnalyticsProvider } from "./analytics/IAnalyticsProvider.js";
|
||||
import LogStashAnalyticsProvider from "./analytics/LogStashAnalyticsProvider.js";
|
||||
import PostHogAnalyticsProvider from "./analytics/PostHogAnalyticsProvider.js";
|
||||
|
||||
function createAnalyticsProvider(
|
||||
config: Analytics,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { Analytics } from "@continuedev/config-types";
|
||||
import fetch from "node-fetch";
|
||||
import { CONTROL_PLANE_URL } from "../client";
|
||||
import { IAnalyticsProvider } from "./IAnalyticsProvider";
|
||||
import { CONTROL_PLANE_URL } from "../client.js";
|
||||
import { IAnalyticsProvider } from "./IAnalyticsProvider.js";
|
||||
|
||||
export default class ContinueProxyAnalyticsProvider
|
||||
implements IAnalyticsProvider
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Analytics } from "@continuedev/config-types";
|
||||
import net from "node:net";
|
||||
import { IAnalyticsProvider } from "./IAnalyticsProvider";
|
||||
import { IAnalyticsProvider } from "./IAnalyticsProvider.js";
|
||||
|
||||
export default class LogStashAnalyticsProvider implements IAnalyticsProvider {
|
||||
private host?: string;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Analytics } from "@continuedev/config-types";
|
||||
import { IAnalyticsProvider } from "./IAnalyticsProvider";
|
||||
import { IAnalyticsProvider } from "./IAnalyticsProvider.js";
|
||||
|
||||
export default class PostHogAnalyticsProvider implements IAnalyticsProvider {
|
||||
client?: any;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { ConfigJson } from "@continuedev/config-types";
|
||||
import fetch, { RequestInit, Response } from "node-fetch";
|
||||
import { ModelDescription } from "..";
|
||||
import { ModelDescription } from "../index.js";
|
||||
|
||||
export interface ControlPlaneSessionInfo {
|
||||
accessToken: string;
|
||||
|
|
|
|||
20
core/core.ts
20
core/core.ts
|
|
@ -1,11 +1,4 @@
|
|||
import { v4 as uuidv4 } from "uuid";
|
||||
import type {
|
||||
ContextItemId,
|
||||
EmbeddingsProvider,
|
||||
IDE,
|
||||
IndexingProgressUpdate,
|
||||
SiteIndexingConfig,
|
||||
} from ".";
|
||||
import { CompletionProvider } from "./autocomplete/completionProvider.js";
|
||||
import { ConfigHandler } from "./config/ConfigHandler.js";
|
||||
import {
|
||||
|
|
@ -19,17 +12,24 @@ import { addModel, addOpenAIKey, deleteModel } from "./config/util.js";
|
|||
import { recentlyEditedFilesCache } from "./context/retrieval/recentlyEditedFilesCache.js";
|
||||
import { ContinueServerClient } from "./continueServer/stubs/client.js";
|
||||
import { getAuthUrlForTokenPage } from "./control-plane/auth/index.js";
|
||||
import { ControlPlaneClient } from "./control-plane/client";
|
||||
import { ControlPlaneClient } from "./control-plane/client.js";
|
||||
import type {
|
||||
ContextItemId,
|
||||
EmbeddingsProvider,
|
||||
IDE,
|
||||
IndexingProgressUpdate,
|
||||
SiteIndexingConfig,
|
||||
} from "./index.js";
|
||||
import { CodebaseIndexer, PauseToken } from "./indexing/CodebaseIndexer.js";
|
||||
import { DocsService } from "./indexing/docs/DocsService.js";
|
||||
import Ollama from "./llm/llms/Ollama.js";
|
||||
import type { FromCoreProtocol, ToCoreProtocol } from "./protocol";
|
||||
import type { FromCoreProtocol, ToCoreProtocol } from "./protocol/index.js";
|
||||
import { GlobalContext } from "./util/GlobalContext.js";
|
||||
import { logDevData } from "./util/devdata.js";
|
||||
import { DevDataSqliteDb } from "./util/devdataSqlite.js";
|
||||
import { fetchwithRequestOptions } from "./util/fetchWithOptions.js";
|
||||
import historyManager from "./util/history.js";
|
||||
import type { IMessenger, Message } from "./util/messenger";
|
||||
import type { IMessenger, Message } from "./util/messenger.js";
|
||||
import { editConfigJson } from "./util/paths.js";
|
||||
import { Telemetry } from "./util/posthog.js";
|
||||
import { streamDiffLines } from "./util/verticalEdit.js";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { Chunk } from "../../index.js";
|
||||
|
||||
const request = require("request");
|
||||
import request from "request";
|
||||
|
||||
export async function downloadFromS3(
|
||||
bucket: string,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { EmbeddingsProviderName, EmbedOptions } from "../..";
|
||||
import { CONTROL_PLANE_URL } from "../../control-plane/client";
|
||||
import OpenAIEmbeddingsProvider from "./OpenAIEmbeddingsProvider";
|
||||
import { CONTROL_PLANE_URL } from "../../control-plane/client.js";
|
||||
import { EmbeddingsProviderName, EmbedOptions } from "../../index.js";
|
||||
import OpenAIEmbeddingsProvider from "./OpenAIEmbeddingsProvider.js";
|
||||
|
||||
class ContinueProxyEmbeddingsProvider extends OpenAIEmbeddingsProvider {
|
||||
static providerName: EmbeddingsProviderName = "continue-proxy";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,11 @@
|
|||
import { Response } from "node-fetch";
|
||||
import { EmbeddingsProviderName, EmbedOptions, FetchFunction } from "../..";
|
||||
import { withExponentialBackoff } from "../../util/withExponentialBackoff";
|
||||
import BaseEmbeddingsProvider from "./BaseEmbeddingsProvider";
|
||||
import {
|
||||
EmbeddingsProviderName,
|
||||
EmbedOptions,
|
||||
FetchFunction,
|
||||
} from "../../index.js";
|
||||
import { withExponentialBackoff } from "../../util/withExponentialBackoff.js";
|
||||
import BaseEmbeddingsProvider from "./BaseEmbeddingsProvider.js";
|
||||
|
||||
class HuggingFaceTEIEmbeddingsProvider extends BaseEmbeddingsProvider {
|
||||
static providerName: EmbeddingsProviderName = "huggingface-tei";
|
||||
|
|
|
|||
|
|
@ -67,7 +67,9 @@ export const DEFAULT_IGNORE_FILETYPES = [
|
|||
".csv",
|
||||
// "*.prompt", // can be incredibly confusing for the LLM to have another set of instructions injected into the prompt
|
||||
];
|
||||
export const defaultIgnoreFile = ignore().add(DEFAULT_IGNORE_FILETYPES);
|
||||
|
||||
// @ts-ignore
|
||||
export const defaultIgnoreFile = ignore.default().add(DEFAULT_IGNORE_FILETYPES);
|
||||
export const DEFAULT_IGNORE_DIRS = [
|
||||
".git",
|
||||
".svn",
|
||||
|
|
@ -94,7 +96,9 @@ export const DEFAULT_IGNORE_DIRS = [
|
|||
"gems",
|
||||
"vendor",
|
||||
];
|
||||
export const defaultIgnoreDir = ignore().add(DEFAULT_IGNORE_DIRS);
|
||||
|
||||
// @ts-ignore
|
||||
export const defaultIgnoreDir = ignore.default().add(DEFAULT_IGNORE_DIRS);
|
||||
|
||||
export const DEFAULT_IGNORE =
|
||||
DEFAULT_IGNORE_FILETYPES.join("\n") + "\n" + DEFAULT_IGNORE_DIRS.join("\n");
|
||||
|
|
|
|||
|
|
@ -1,15 +1,13 @@
|
|||
import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
process.env.NODE_OPTIONS = "--experimental-vm-modules";
|
||||
|
||||
export default {
|
||||
transform: {
|
||||
"\\.[jt]sx?$": ["ts-jest", { useESM: true }],
|
||||
},
|
||||
|
||||
moduleNameMapper: {
|
||||
"(.+)\\.js": "$1",
|
||||
"^(\\.{1,2}/.*)\\.js$": "$1",
|
||||
},
|
||||
extensionsToTreatAsEsm: [".ts"],
|
||||
preset: "ts-jest/presets/default-esm",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import Ollama from "./Ollama";
|
||||
import {LLMOptions, ModelProvider} from "../../index";
|
||||
import { LLMOptions, ModelProvider } from "../../index.js";
|
||||
import Ollama from "./Ollama.js";
|
||||
|
||||
class Msty extends Ollama {
|
||||
static providerName: ModelProvider = "msty";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { LLMOptions, ModelProvider } from "../../..";
|
||||
import { CONTROL_PLANE_URL } from "../../../control-plane/client";
|
||||
import { CONTROL_PLANE_URL } from "../../../control-plane/client.js";
|
||||
import type { LLMOptions, ModelProvider } from "../../../index.js";
|
||||
import OpenAI from "../OpenAI.js";
|
||||
|
||||
class ContinueProxy extends OpenAI {
|
||||
|
|
|
|||
143
core/package-lock.json
generated
143
core/package-lock.json
generated
|
|
@ -71,7 +71,10 @@
|
|||
"@types/jest": "^29.5.12",
|
||||
"@types/jquery": "^3.5.29",
|
||||
"@types/mustache": "^4.2.5",
|
||||
"@types/pg": "^8.11.6",
|
||||
"@types/request": "^2.48.12",
|
||||
"@types/uuid": "^9.0.7",
|
||||
"@types/win-ca": "^3.5.4",
|
||||
"esbuild": "0.17.19",
|
||||
"eslint": "^8",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
|
|
@ -4320,6 +4323,12 @@
|
|||
"@babel/types": "^7.20.7"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/caseless": {
|
||||
"version": "0.12.5",
|
||||
"resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.5.tgz",
|
||||
"integrity": "sha512-hWtVTC2q7hc7xZ/RLbxapMvDMgUnDvKvMOpKal4DrMyfGBUfB1oKaZlIRr6mJL+If3bAP6sV/QneGzF6tJjZDg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/command-line-args": {
|
||||
"version": "5.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/command-line-args/-/command-line-args-5.2.0.tgz",
|
||||
|
|
@ -4438,12 +4447,115 @@
|
|||
"form-data": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node-forge": {
|
||||
"version": "1.3.11",
|
||||
"resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-1.3.11.tgz",
|
||||
"integrity": "sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@types/node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/pad-left": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/pad-left/-/pad-left-2.1.1.tgz",
|
||||
"integrity": "sha512-Xd22WCRBydkGSApl5Bw0PhAOHKSVjNL3E3AwzKaps96IMraPqy5BvZIsBVK6JLwdybUzjHnuWVwpDd0JjTfHXA==",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/@types/pg": {
|
||||
"version": "8.11.6",
|
||||
"resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.11.6.tgz",
|
||||
"integrity": "sha512-/2WmmBXHLsfRqzfHW7BNZ8SbYzE8OSk7i3WjFYvfgRHj7S1xj+16Je5fUKv3lVdVzk/zn9TXOqf+avFCFIE0yQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@types/node": "*",
|
||||
"pg-protocol": "*",
|
||||
"pg-types": "^4.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/pg/node_modules/pg-types": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/pg-types/-/pg-types-4.0.2.tgz",
|
||||
"integrity": "sha512-cRL3JpS3lKMGsKaWndugWQoLOCoP+Cic8oseVcbr0qhPzYD5DWXK+RZ9LY9wxRf7RQia4SCwQlXk0q6FCPrVng==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"pg-int8": "1.0.1",
|
||||
"pg-numeric": "1.0.2",
|
||||
"postgres-array": "~3.0.1",
|
||||
"postgres-bytea": "~3.0.0",
|
||||
"postgres-date": "~2.1.0",
|
||||
"postgres-interval": "^3.0.0",
|
||||
"postgres-range": "^1.1.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/pg/node_modules/postgres-array": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-3.0.2.tgz",
|
||||
"integrity": "sha512-6faShkdFugNQCLwucjPcY5ARoW1SlbnrZjmGl0IrrqewpvxvhSLHimCVzqeuULCbG0fQv7Dtk1yDbG3xv7Veog==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/pg/node_modules/postgres-bytea": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-3.0.0.tgz",
|
||||
"integrity": "sha512-CNd4jim9RFPkObHSjVHlVrxoVQXz7quwNFpz7RY1okNNme49+sVyiTvTRobiLV548Hx/hb1BG+iE7h9493WzFw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"obuf": "~1.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/pg/node_modules/postgres-date": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-2.1.0.tgz",
|
||||
"integrity": "sha512-K7Juri8gtgXVcDfZttFKVmhglp7epKb1K4pgrkLxehjqkrgPhfG6OO8LHLkfaqkbpjNRnra018XwAr1yQFWGcA==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/pg/node_modules/postgres-interval": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-3.0.0.tgz",
|
||||
"integrity": "sha512-BSNDnbyZCXSxgA+1f5UU2GmwhoI0aU5yMxRGO8CdFEcY2BQF9xm/7MqKnYoM1nJDk8nONNWDk9WeSmePFhQdlw==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/request": {
|
||||
"version": "2.48.12",
|
||||
"resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.12.tgz",
|
||||
"integrity": "sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@types/caseless": "*",
|
||||
"@types/node": "*",
|
||||
"@types/tough-cookie": "*",
|
||||
"form-data": "^2.5.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/request/node_modules/form-data": {
|
||||
"version": "2.5.1",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",
|
||||
"integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"asynckit": "^0.4.0",
|
||||
"combined-stream": "^1.0.6",
|
||||
"mime-types": "^2.1.12"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.12"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/sizzle": {
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.8.tgz",
|
||||
|
|
@ -4467,6 +4579,16 @@
|
|||
"integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/win-ca": {
|
||||
"version": "3.5.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/win-ca/-/win-ca-3.5.4.tgz",
|
||||
"integrity": "sha512-WDlA6ZvTg1g9ygKcDCQb4GjEtk0RcZyx09btQea9NZqfKPl+WtyOlEwNfYMhK2E5sRCo6hMtct1EX3l04yAC1A==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@types/node": "*",
|
||||
"@types/node-forge": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/yargs": {
|
||||
"version": "17.0.32",
|
||||
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz",
|
||||
|
|
@ -10067,6 +10189,12 @@
|
|||
"resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.4.tgz",
|
||||
"integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ=="
|
||||
},
|
||||
"node_modules/obuf": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz",
|
||||
"integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/ollama": {
|
||||
"version": "0.4.9",
|
||||
"resolved": "https://registry.npmjs.org/ollama/-/ollama-0.4.9.tgz",
|
||||
|
|
@ -10430,6 +10558,15 @@
|
|||
"node": ">=4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/pg-numeric": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/pg-numeric/-/pg-numeric-1.0.2.tgz",
|
||||
"integrity": "sha512-BM/Thnrw5jm2kKLE5uJkXqqExRUY/toLHda65XgFTBTFYZyopbKjBe29Ii3RbkvlsMoFwD+tHeGaCjjv0gHlyw==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/pg-pool": {
|
||||
"version": "3.6.2",
|
||||
"resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.2.tgz",
|
||||
|
|
@ -10613,6 +10750,12 @@
|
|||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/postgres-range": {
|
||||
"version": "1.1.4",
|
||||
"resolved": "https://registry.npmjs.org/postgres-range/-/postgres-range-1.1.4.tgz",
|
||||
"integrity": "sha512-i/hbxIE9803Alj/6ytL7UHQxRvZkI9O4Sy+J3HGc4F4oo/2eQAjTSNJ0bfxyse3bH0nuVesCk+3IRLaMtG3H6w==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/posthog-node": {
|
||||
"version": "3.6.3",
|
||||
"resolved": "https://registry.npmjs.org/posthog-node/-/posthog-node-3.6.3.tgz",
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"version": "1.0.13",
|
||||
"description": "The Continue Core contains functionality that can be shared across web, VS Code, or Node.js server. It is written in TypeScript and contains much of the functionality that was previously inside of the legacy Continue Python Server.",
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
||||
"build:npm": "tsc -p ./tsconfig.npm.json",
|
||||
"lint": "eslint . --ext ts",
|
||||
"lint:fix": "eslint . --ext ts --fix"
|
||||
|
|
@ -19,7 +19,10 @@
|
|||
"@types/jest": "^29.5.12",
|
||||
"@types/jquery": "^3.5.29",
|
||||
"@types/mustache": "^4.2.5",
|
||||
"@types/pg": "^8.11.6",
|
||||
"@types/request": "^2.48.12",
|
||||
"@types/uuid": "^9.0.7",
|
||||
"@types/win-ca": "^3.5.4",
|
||||
"esbuild": "0.17.19",
|
||||
"eslint": "^8",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import type { AutocompleteInput } from "../autocomplete/completionProvider.js";
|
||||
import { ProfileDescription } from "../config/ConfigHandler.js";
|
||||
import type {
|
||||
BrowserSerializedContinueConfig,
|
||||
ChatMessage,
|
||||
|
|
@ -14,9 +16,7 @@ import type {
|
|||
SerializedContinueConfig,
|
||||
SessionInfo,
|
||||
SiteIndexingConfig,
|
||||
} from "..";
|
||||
import type { AutocompleteInput } from "../autocomplete/completionProvider";
|
||||
import { ProfileDescription } from "../config/ConfigHandler";
|
||||
} from "../index.js";
|
||||
|
||||
export type ProtocolGeneratorType<T> = AsyncGenerator<{
|
||||
done?: boolean;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { ControlPlaneSessionInfo } from "../control-plane/client.js";
|
||||
import type {
|
||||
ContinueRcJson,
|
||||
DiffLine,
|
||||
|
|
@ -10,8 +11,7 @@ import type {
|
|||
Range,
|
||||
RangeInFile,
|
||||
Thread,
|
||||
} from "..";
|
||||
import { ControlPlaneSessionInfo } from "../control-plane/client";
|
||||
} from "../index.js";
|
||||
|
||||
export type ToIdeFromWebviewOrCoreProtocol = {
|
||||
// Methods from IDE type
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { ContextSubmenuItem } from "..";
|
||||
import type { RangeInFileWithContents } from "../commands/util";
|
||||
import type { RangeInFileWithContents } from "../commands/util.js";
|
||||
import type { ContextSubmenuItem } from "../index.js";
|
||||
import { ToIdeFromWebviewOrCoreProtocol } from "./ide.js";
|
||||
import { ToWebviewFromIdeOrCoreProtocol } from "./webview.js";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { ContextItemWithId, IndexingProgressUpdate } from "..";
|
||||
import type { ContextItemWithId, IndexingProgressUpdate } from "../index.js";
|
||||
|
||||
export type ToWebviewFromIdeOrCoreProtocol = {
|
||||
configUpdate: [undefined, void];
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { ChatMessage, LLMOptions, ModelProvider } from "../index";
|
||||
import { ChatMessage, LLMOptions, ModelProvider } from "../index.js";
|
||||
import { BaseLLM } from "../llm/index.js";
|
||||
|
||||
class DummyLLM extends BaseLLM {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
import { IRetrievalPipeline } from "../../../context/retrieval/pipelines/BaseRetrievalPipeline";
|
||||
import { IRetrievalPipeline } from "../../../context/retrieval/pipelines/BaseRetrievalPipeline.js";
|
||||
|
||||
function testRetrievalPipeline(pipeline: IRetrievalPipeline) {
|
||||
test("should successfully run");
|
||||
}
|
||||
|
||||
|
||||
describe.skip("RetrievalPipeline", () => {
|
||||
test.todo("should successfully run");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,22 +1,25 @@
|
|||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { ConfigHandler } from "../../config/ConfigHandler";
|
||||
import { ContinueServerClient } from "../../continueServer/stubs/client";
|
||||
import { CodebaseIndexer, PauseToken } from "../../indexing/CodebaseIndexer";
|
||||
import { LanceDbIndex } from "../../indexing/LanceDbIndex";
|
||||
import TransformersJsEmbeddingsProvider from "../../indexing/embeddings/TransformersJsEmbeddingsProvider";
|
||||
import FileSystemIde from "../../util/filesystem";
|
||||
import { ConfigHandler } from "../../config/ConfigHandler.js";
|
||||
import { ContinueServerClient } from "../../continueServer/stubs/client.js";
|
||||
import { CodebaseIndexer, PauseToken } from "../../indexing/CodebaseIndexer.js";
|
||||
import { LanceDbIndex } from "../../indexing/LanceDbIndex.js";
|
||||
import TransformersJsEmbeddingsProvider from "../../indexing/embeddings/TransformersJsEmbeddingsProvider.js";
|
||||
import FileSystemIde from "../../util/filesystem.js";
|
||||
import {
|
||||
getIndexFolderPath,
|
||||
getIndexSqlitePath,
|
||||
getLanceDbPath,
|
||||
} from "../../util/paths";
|
||||
} from "../../util/paths.js";
|
||||
import {
|
||||
addToTestDir,
|
||||
setUpTestDir,
|
||||
tearDownTestDir,
|
||||
TEST_DIR,
|
||||
} from "../testUtils/testDir";
|
||||
} from "../testUtils/testDir.js";
|
||||
import { jest } from "@jest/globals";
|
||||
|
||||
jest.useFakeTimers();
|
||||
|
||||
const TEST_TS = `\
|
||||
function main() {
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import { ChunkWithoutID } from "../../..";
|
||||
import { codeChunker } from "../../../indexing/chunk/code";
|
||||
import { ChunkWithoutID } from "../../../index.js";
|
||||
import { codeChunker } from "../../../indexing/chunk/code.js";
|
||||
|
||||
async function genToArr<T>(generator: AsyncGenerator<T>): Promise<T[]> {
|
||||
const result: T[] = [];
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { stopAtStopTokens } from "../../autocomplete/charStream";
|
||||
import { stopAtStopTokens } from "../../autocomplete/charStream.js";
|
||||
|
||||
describe("stopAtStopTokens", () => {
|
||||
async function* createMockStream(chunks: string[]): AsyncGenerator<string> {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// File generated by Continue
|
||||
import { dedentAndGetCommonWhitespace } from "../../util";
|
||||
import { dedentAndGetCommonWhitespace } from "../../util/index.js";
|
||||
|
||||
describe("dedentAndGetCommonWhitespace", () => {
|
||||
let originalString: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { deduplicateArray } from "../../util";
|
||||
import { deduplicateArray } from "../../util/index.js";
|
||||
|
||||
describe("deduplicateArray", () => {
|
||||
it("should return an empty array when given an empty array", () => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// File generated by Continue
|
||||
import { getLastNPathParts } from "../../util";
|
||||
import { getLastNPathParts } from "../../util/index.js";
|
||||
|
||||
describe("getLastNPathParts", () => {
|
||||
const SEP_REGEX = /[\\/]+/;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// This file is generated by Continue
|
||||
import { longestCommonSubsequence } from "../../util/lcs";
|
||||
import { longestCommonSubsequence } from "../../util/lcs.js";
|
||||
|
||||
describe("longestCommonSubsequence", () => {
|
||||
beforeAll(() => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// File generated by Continue
|
||||
import { mergeJson } from "../../util/merge";
|
||||
import { mergeJson } from "../../util/merge.js";
|
||||
|
||||
describe("mergeJson", () => {
|
||||
it("should merge two simple JSON objects", () => {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// This file is generated by Continue
|
||||
|
||||
import { getRangeInString } from "../../../util/ranges";
|
||||
import { getRangeInString } from "../../../util/ranges.js";
|
||||
|
||||
describe.skip("getRangeInString", () => {
|
||||
let content: string;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// This file is generated by Continue
|
||||
|
||||
import { intersection } from "../../../util/ranges";
|
||||
import { intersection } from "../../../util/ranges.js";
|
||||
|
||||
interface Position {
|
||||
line: number;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { maxPosition, minPosition } from "../../../util/ranges";
|
||||
import { maxPosition, minPosition } from "../../../util/ranges.js";
|
||||
|
||||
// This file is generated by Continue
|
||||
interface Position {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { union } from "../../../util/ranges";
|
||||
import { union } from "../../../util/ranges.js";
|
||||
|
||||
// This file is generated by Continue
|
||||
interface Position {
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@
|
|||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Node",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { globalAgent } from "https";
|
||||
// @ts-ignore
|
||||
import { systemCertsAsync } from "system-ca";
|
||||
|
||||
export async function setupCa() {
|
||||
|
|
@ -6,11 +7,13 @@ export async function setupCa() {
|
|||
switch (process.platform) {
|
||||
case "darwin":
|
||||
// https://www.npmjs.com/package/mac-ca#usage
|
||||
require("mac-ca").addToGlobalAgent();
|
||||
const macCa = await import("mac-ca");
|
||||
macCa.addToGlobalAgent();
|
||||
break;
|
||||
case "win32":
|
||||
// https://www.npmjs.com/package/win-ca#caveats
|
||||
require("win-ca").inject("+");
|
||||
const winCa = await import("win-ca");
|
||||
winCa.inject("+");
|
||||
break;
|
||||
default:
|
||||
// https://www.npmjs.com/package/system-ca
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { v4 as uuidv4 } from "uuid";
|
||||
import type { IProtocol } from "../protocol";
|
||||
import type { IProtocol } from "../protocol/index.js";
|
||||
|
||||
export interface Message<T = any> {
|
||||
messageType: string;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import os from "node:os";
|
||||
import { TeamAnalytics } from "../control-plane/TeamAnalytics";
|
||||
import { TeamAnalytics } from "../control-plane/TeamAnalytics.js";
|
||||
|
||||
export class Telemetry {
|
||||
// Set to undefined whenever telemetry is disabled
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { IDE } from "..";
|
||||
import { ToIdeFromWebviewOrCoreProtocol } from "../protocol/ide";
|
||||
import { Message } from "./messenger";
|
||||
import { IDE } from "../index.js";
|
||||
import { ToIdeFromWebviewOrCoreProtocol } from "../protocol/ide.js";
|
||||
import { Message } from "./messenger.js";
|
||||
|
||||
export class ReverseMessageIde {
|
||||
private on<T extends keyof ToIdeFromWebviewOrCoreProtocol>(
|
||||
|
|
|
|||
3
extensions/vscode/package-lock.json
generated
3
extensions/vscode/package-lock.json
generated
|
|
@ -157,7 +157,10 @@
|
|||
"@types/jest": "^29.5.12",
|
||||
"@types/jquery": "^3.5.29",
|
||||
"@types/mustache": "^4.2.5",
|
||||
"@types/pg": "^8.11.6",
|
||||
"@types/request": "^2.48.12",
|
||||
"@types/uuid": "^9.0.7",
|
||||
"@types/win-ca": "^3.5.4",
|
||||
"esbuild": "0.17.19",
|
||||
"eslint": "^8",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
|
|
|
|||
3
gui/package-lock.json
generated
3
gui/package-lock.json
generated
|
|
@ -150,7 +150,10 @@
|
|||
"@types/jest": "^29.5.12",
|
||||
"@types/jquery": "^3.5.29",
|
||||
"@types/mustache": "^4.2.5",
|
||||
"@types/pg": "^8.11.6",
|
||||
"@types/request": "^2.48.12",
|
||||
"@types/uuid": "^9.0.7",
|
||||
"@types/win-ca": "^3.5.4",
|
||||
"esbuild": "0.17.19",
|
||||
"eslint": "^8",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
import path from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
process.env.NODE_OPTIONS = "--experimental-vm-modules";
|
||||
|
||||
export default {
|
||||
transform: {
|
||||
"\\.[jt]sx?$": ["ts-jest", { useESM: true }],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue