From 0383f482539828357ed3c35e51c7d953a3d8930a Mon Sep 17 00:00:00 2001 From: Wojciech Gajda Date: Wed, 18 May 2022 21:20:53 +0200 Subject: [PATCH] added paths @ in tsconfig --- sandbox/index.tsx | 1 + tsconfig.json | 25 +++++++++++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/sandbox/index.tsx b/sandbox/index.tsx index df916b4..fd0e280 100644 --- a/sandbox/index.tsx +++ b/sandbox/index.tsx @@ -3,6 +3,7 @@ import ReactDOM from "react-dom"; import { style } from "typestyle"; import { ReactPDFEditor } from "../src"; + export const AppContainer = style({ $debugName: "AppContainer", fontFamily: "Fira Sans", diff --git a/tsconfig.json b/tsconfig.json index 9c23ea5..01f09cc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,9 +13,26 @@ "incremental": true, "strict": true, "outDir": "./lib", - "lib": ["es6", "es7", "esnext", "dom"], + "lib": [ + "es6", + "es7", + "esnext", + "dom" + ], "rootDir": "./src", - "baseUrl": "./src/" + "baseUrl": "./src/", + "paths": { + "@/*": [ + "./src/*" + ], + "sandbox/*": [ + "./sandbox/*" + ] + }, }, - "exclude": ["lib", "node_modules", "sandbox"] -} + "exclude": [ + "lib", + "node_modules", + "sandbox" + ] +} \ No newline at end of file