From 252abbd3a9ef57526a0260f6fa2cd1bed28fbb26 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sun, 30 Dec 2018 22:56:09 -0800 Subject: [PATCH] Fix type checking of demo site --- demo/js/mediaSession.ts | 4 ++-- demo/js/screenshotInitialState.ts | 2 +- tsconfig.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/js/mediaSession.ts b/demo/js/mediaSession.ts index 8ddcc519..1ca84c32 100644 --- a/demo/js/mediaSession.ts +++ b/demo/js/mediaSession.ts @@ -1,5 +1,5 @@ -import WebampLazy from "../webampLazy"; -import { LoadedURLTrack } from "../types"; +import WebampLazy from "../../js/webampLazy"; +import { LoadedURLTrack } from "../../js/types"; export default function enableMediaSession(webamp: WebampLazy) { if ("mediaSession" in navigator) { diff --git a/demo/js/screenshotInitialState.ts b/demo/js/screenshotInitialState.ts index f24cc0f2..54cc3b39 100644 --- a/demo/js/screenshotInitialState.ts +++ b/demo/js/screenshotInitialState.ts @@ -1,5 +1,5 @@ import { DeepPartial } from "redux"; -import { AppState } from "../types"; +import { AppState } from "../../js/types"; const defaultTracksState = { "0": { diff --git a/tsconfig.json b/tsconfig.json index 7107d1a7..641d2b01 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,6 +12,6 @@ "noEmit": true, "pretty": true }, - "include": ["js/**/*.js", "js/**/*.ts"], + "include": ["**/*.js", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules", "**/*.spec.ts"] }