From 8feb565794d4294de71d1f913ef3f78004de53cb Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Mon, 14 Nov 2022 15:48:56 +0000 Subject: [PATCH] [fix] types in core (#1044) * Fix types * Update README.md --- packages/core/README.md | 6 ++++-- packages/core/tsconfig.build.json | 1 + packages/core/tsconfig.dev.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/core/README.md b/packages/core/README.md index 014b67e3a..965465e7c 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -15,11 +15,13 @@ You can use this package to build projects like [tldraw](https://tldraw.com), wh Use your package manager of choice to install `@tldraw/core` and its peer dependencies. ```bash -yarn add @tldraw/core +yarn add @tldraw/core && yarn build # or -npm i @tldraw/core +npm i @tldraw/core && npm run build ``` +> Note: You'll need to run the `build` script before running `dev`. + ## Examples There are two examples in this repository. diff --git a/packages/core/tsconfig.build.json b/packages/core/tsconfig.build.json index b272c9bf7..ba1ab1589 100644 --- a/packages/core/tsconfig.build.json +++ b/packages/core/tsconfig.build.json @@ -10,6 +10,7 @@ "dist" ], "compilerOptions": { + "skipLibCheck": true, "composite": false, "incremental": false, "declaration": true, diff --git a/packages/core/tsconfig.dev.json b/packages/core/tsconfig.dev.json index aad888ac0..ba1ab1589 100644 --- a/packages/core/tsconfig.dev.json +++ b/packages/core/tsconfig.dev.json @@ -1,6 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["src"], "exclude": [ "node_modules", "**/*.test.tsx", @@ -11,6 +10,7 @@ "dist" ], "compilerOptions": { + "skipLibCheck": true, "composite": false, "incremental": false, "declaration": true,