Skip to content

Commit

Permalink
fix(general): Fix tsconfig (#303)
Browse files Browse the repository at this point in the history
* refactor(general): 🎨 Made global tsconfig

* refactor(general): 🏷️ Fixed tsconfig and global types

* fix(TSWebm): 💚 Fixed TSWebM build
  • Loading branch information
Joery-M authored Nov 13, 2024
1 parent b6d0c3b commit c1ce64b
Show file tree
Hide file tree
Showing 48 changed files with 152 additions and 2,207 deletions.
3 changes: 0 additions & 3 deletions globals.d.ts

This file was deleted.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"devDependencies": {
"@eslint/js": "^9.14.0",
"@intlify/eslint-plugin-vue-i18n": "^3.0.0",
"@types/dom-webcodecs": "^0.1.13",
"@types/eslint__js": "^8.42.3",
"@types/wicg-file-system-access": "^2023.10.5",
"@vitejs/plugin-vue": "^5.1.5",
"@vitest/browser": "^2.1.4",
"@vitest/ui": "^2.1.4",
Expand All @@ -47,10 +49,12 @@
"prettier-plugin-tailwindcss": "^0.6.8",
"typescript": "^5.6.3",
"typescript-eslint": "^8.14.0",
"unplugin-vue-router": "^0.10.8",
"vite": "^5.4.11",
"vite-plugin-hot-glob": "^1.0.0",
"vitest": "^2.1.4",
"vue": "^3.5.12"
"vue": "^3.5.12",
"vue-i18n": "10.0.4"
},
"packageManager": "[email protected]+sha512.e5a7e52a4183a02d5931057f7a0dbff9d5e9ce3161e33fa68ae392125b79282a8a8a470a51dfc8a0ed86221442eb2fb57019b0990ed24fab519bf0e1bc5ccfc4"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFile, writeFile } from 'fs/promises';
import { glob } from 'glob';
import path from 'path';
import { Plugin } from 'vite';
import type { Plugin } from 'vite';

export default function generatePlugin(options: Options): Plugin {
return {
Expand Down
2 changes: 1 addition & 1 deletion packages/safelight/src/views/dev/Packages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
</template>

<script setup lang="ts">
import type { Dependency, DependencyWithName, Packages } from '@@/types/packages';
import { useDebounce, useFetch } from '@vueuse/core';
import Button from 'primevue/button';
import Card from 'primevue/card';
Expand All @@ -177,7 +178,6 @@ import TabList from 'primevue/tablist';
import TabPanel from 'primevue/tabpanel';
import TabPanels from 'primevue/tabpanels';
import Tabs from 'primevue/tabs';
import type { Dependency, DependencyWithName, Packages } from 'types/packages';
import { onMounted, reactive, ref, watch } from 'vue';
import VueMarkdown from 'vue-markdown-render';
import { RouterLink } from 'vue-router/auto';
Expand Down
7 changes: 0 additions & 7 deletions packages/safelight/src/workers/tsconfig.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/safelight/src/workers/workers.d.ts

This file was deleted.

33 changes: 0 additions & 33 deletions packages/safelight/tsconfig.app.json

This file was deleted.

31 changes: 17 additions & 14 deletions packages/safelight/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{
"files": [],
"include": ["src/**/*.ts", "src/**/*.vue", "../../types/**/*.d.ts", "./types/**/*.d.ts"],
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"allowSyntheticDefaultImports": true
},
"references": [
{
"path": "./tsconfig.node.json"
"paths": {
"@/*": ["./packages/safelight/src/*"],
"@@/*": ["./packages/safelight/*"],
"$/*": ["./packages/safelight/public/*"]
},
{
"path": "./tsconfig.app.json"
},
{
"path": "./src/workers/tsconfig.json"
}
]

// Keep up-to date with /tsconfig.json, but add "unplugin-vue-router/client"
"types": [
"vite/client",
"vue-i18n",
"@types/dom-webcodecs",
"@types/wicg-file-system-access",
"unplugin-vue-router/client",
"vite-plugin-hot-glob/types"
]
}
}
15 changes: 0 additions & 15 deletions packages/safelight/tsconfig.node.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/safelight/types/captureStream.d.ts

This file was deleted.

1 change: 1 addition & 0 deletions packages/shared/src/Demuxer/webm/WebmDemuxer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Observable } from 'rxjs';
import { type BaseDemuxer, type DemuxerOutput } from '../FileDemuxer';
import DemuxWorker from './demux.worker?worker';

console.log(DemuxWorker);
export class WebmDemuxer implements BaseDemuxer {
demuxFile(source: File) {
const worker = wrap<typeof import('./demux.worker')>(new DemuxWorker());
Expand Down
36 changes: 0 additions & 36 deletions packages/shared/tsconfig.json

This file was deleted.

22 changes: 0 additions & 22 deletions packages/shared/tsconfig.workers.json

This file was deleted.

13 changes: 0 additions & 13 deletions packages/shared/types/MaybePromise.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/shared/types/webkitAudioContext.d.ts

This file was deleted.

Loading

0 comments on commit c1ce64b

Please sign in to comment.