mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
chore: add base tsconfig and restructure api imports
This commit is contained in:
parent
5faec54491
commit
8efbf00d1b
12 changed files with 30 additions and 24 deletions
|
|
@ -6,7 +6,7 @@ import {
|
|||
htmlToSpeechFile,
|
||||
SpeechFile,
|
||||
SSMLOptions,
|
||||
} from '../../../../text-to-speech/src/htmlToSsml'
|
||||
} from '@omnivore/text-to-speech-handler/build/src/htmlToSsml'
|
||||
import axios from 'axios'
|
||||
import { truncate } from 'lodash'
|
||||
import { v4 as uuid } from 'uuid'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { handleNewsletter } from '../../../../content-handler/src/index'
|
||||
import { handleNewsletter } from '@omnivore/content-handler'
|
||||
import { Converter } from 'showdown'
|
||||
import { ContentReaderType, LibraryItemState } from '../../entity/library_item'
|
||||
import { SubscriptionStatus } from '../../entity/subscription'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { LiqeQuery } from '../../../liqe/src/Liqe'
|
||||
import { LiqeQuery } from '@omnivore/liqe'
|
||||
import axios from 'axios'
|
||||
import { Any } from 'typeorm'
|
||||
import { ReadingProgressDataSource } from '../datasources/reading_progress_data_source'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||
import { htmlToSpeechFile } from '../../../text-to-speech/src/htmlToSsml'
|
||||
import { htmlToSpeechFile } from '@omnivore/text-to-speech-handler/build/src/htmlToSsml'
|
||||
import cors from 'cors'
|
||||
import express from 'express'
|
||||
import { userRepository } from '../repository/user'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||
import { htmlToSpeechFile } from '../../../text-to-speech/src/htmlToSsml'
|
||||
import { htmlToSpeechFile } from '@omnivore/text-to-speech-handler/build/src/htmlToSsml'
|
||||
import cors from 'cors'
|
||||
import express from 'express'
|
||||
import * as jwt from 'jsonwebtoken'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { SpeechFile } from '../../../text-to-speech/src/htmlToSsml'
|
||||
import { SpeechFile } from '@omnivore/text-to-speech-handler/build/src/htmlToSsml'
|
||||
import { TaskState } from '../generated/graphql'
|
||||
import { redisDataSource } from '../redis_data_source'
|
||||
import { logger } from '../utils/logger'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { ExpressionToken, LiqeQuery } from '../../../liqe/src/Liqe'
|
||||
import { ExpressionToken, LiqeQuery } from '@omnivore/liqe'
|
||||
import { camelCase } from 'lodash'
|
||||
import { DateTime } from 'luxon'
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
/* eslint-disable @typescript-eslint/no-base-to-string */
|
||||
|
||||
import { preParseContent } from '../../../content-handler/src/index'
|
||||
import { preParseContent } from '@omnivore/content-handler'
|
||||
import { Readability } from '@omnivore/readability'
|
||||
import addressparser from 'addressparser'
|
||||
import axios from 'axios'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { LiqeQuery, parse } from '../../../liqe/src/Liqe'
|
||||
import { LiqeQuery, parse } from '@omnivore/liqe'
|
||||
|
||||
export const parseSearchQuery = (query: string): LiqeQuery => {
|
||||
let searchQuery = query
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
|
|
@ -10,7 +10,9 @@
|
|||
"strict": false,
|
||||
"lib": ["ES2020"],
|
||||
"allowJs": true,
|
||||
"isolatedModules": true
|
||||
"isolatedModules": true,
|
||||
"composite": true,
|
||||
"declaration": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
|
|
|
|||
15
tsconfig.base.json
Normal file
15
tsconfig.base.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
|
||||
"compilerOptions": {
|
||||
"lib": ["es2020", "dom"],
|
||||
"module": "commonjs",
|
||||
"target": "es2020",
|
||||
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"experimentalDecorators": true
|
||||
}
|
||||
}
|
||||
|
|
@ -1,15 +1,4 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
|
||||
"compilerOptions": {
|
||||
"lib": ["es2020", "dom"],
|
||||
"module": "commonjs",
|
||||
"target": "es2020",
|
||||
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"experimentalDecorators": true
|
||||
}
|
||||
"files": [],
|
||||
"references": [{ "path": "./packages/api" }]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue