Skip to content

Commit

Permalink
chore: fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed May 17, 2023
1 parent 6ec462d commit 41052ae
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/ai/AIAssistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Model } from "./models";
import { Notice, TFile, requestUrl } from "obsidian";
import { getMarkdownFilesInFolder } from "src/utilityObsidian";
import invariant from "src/utils/invariant";
import { OpenAIModelParameters } from "./OpenAIModelParameters";
import type { OpenAIModelParameters } from "./OpenAIModelParameters";
import { settingsStore } from "src/settingsStore";

const noticeMsg = (task: string, message: string) =>
Expand Down
5 changes: 5 additions & 0 deletions src/logger/logDecorator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* eslint-disable @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-explicit-any */
import { log } from "./logManager";

/**
Expand Down
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { QuickAddApi } from "./quickAddApi";
import migrate from "./migrations/migrate";
import { settingsStore } from "./settingsStore";
import { UpdateModal } from "./gui/UpdateModal/UpdateModal";
import logDecorator from "./logger/logDecorator";

export default class QuickAdd extends Plugin {
static instance: QuickAdd;
Expand Down
3 changes: 2 additions & 1 deletion src/types/macros/QuickCommands/AIAssistantCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { Command } from "../Command";
import { CommandType } from "../CommandType";
import type { IAIAssistantCommand } from "./IAIAssistantCommand";
import { settingsStore } from "src/settingsStore";
import { DEFAULT_FREQUENCY_PENALTY, DEFAULT_PRESENCE_PENALTY, DEFAULT_TEMPERATURE, DEFAULT_TOP_P, OpenAIModelParameters } from "src/ai/OpenAIModelParameters";
import type { OpenAIModelParameters } from "src/ai/OpenAIModelParameters";
import { DEFAULT_FREQUENCY_PENALTY, DEFAULT_PRESENCE_PENALTY, DEFAULT_TEMPERATURE, DEFAULT_TOP_P } from "src/ai/OpenAIModelParameters";

export class AIAssistantCommand extends Command implements IAIAssistantCommand {
id: string;
Expand Down
2 changes: 1 addition & 1 deletion src/types/macros/QuickCommands/IAIAssistantCommand.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Models_And_Ask_Me } from "src/ai/models";
import type { ICommand } from "../ICommand";
import { OpenAIModelParameters } from "src/ai/OpenAIModelParameters";
import type { OpenAIModelParameters } from "src/ai/OpenAIModelParameters";

export interface IAIAssistantCommand extends ICommand {
model: Models_And_Ask_Me;
Expand Down
12 changes: 6 additions & 6 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { defineConfig } from "vitest/config";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import sveltePreprocess from "svelte-preprocess";
// import { svelte } from "@sveltejs/vite-plugin-svelte";
// import sveltePreprocess from "svelte-preprocess";
import * as path from "path";

export default defineConfig({
plugins: [
svelte({
hot: !process.env.VITEST,
preprocess: sveltePreprocess(),
}),
// svelte({
// hot: !process.env.VITEST,
// preprocess: sveltePreprocess(),
// }),
],
resolve: {
alias: {
Expand Down

0 comments on commit 41052ae

Please sign in to comment.