Explorar el Código

Slight changes to tsconfigs to fix bug with `yarn docs`

main
Steve Ruiz hace 4 años
padre
commit
9e12f96904

+ 2
- 0
packages/core/tsconfig.build.json Ver fichero

@@ -10,6 +10,8 @@
10 10
     "dist"
11 11
   ],
12 12
   "compilerOptions": {
13
+    "noEmit": false,
14
+    "emitDeclarationOnly": true,
13 15
     "outDir": "./dist/types"
14 16
   }
15 17
 }

+ 0
- 1
packages/core/tsconfig.json Ver fichero

@@ -3,7 +3,6 @@
3 3
   "include": ["src"],
4 4
   "exclude": ["node_modules", "dist"],
5 5
   "compilerOptions": {
6
-    "emitDeclarationOnly": true,
7 6
     "rootDir": "src",
8 7
     "outDir": "./dist/types",
9 8
     "baseUrl": "src",

+ 2
- 5
packages/tldraw/README.md Ver fichero

@@ -22,11 +22,7 @@ Import the `TLDraw` React component and use it in your app.
22 22
 import { TLDraw } from '@tldraw/tldraw'
23 23
 
24 24
 function App() {
25
-  return (
26
-    <div>
27
-      <TLDraw />
28
-    </div>
29
-  )
25
+  return <TLDraw />
30 26
 }
31 27
 ```
32 28
 
@@ -38,6 +34,7 @@ The `TLDraw` React component is the [tldraw](https://tldraw.com) editor exported
38 34
 
39 35
 | Prop            | Type                            | Description                                                                                                                                                             |
40 36
 | --------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
37
+| `id`            | `string`                        | (optional) An id under which to persist the component's state.                                                                                                          |
41 38
 | `document`      | `TLDrawDocument`                | (optional) An initial [`TLDrawDocument`](#tldrawdocument) object.                                                                                                       |
42 39
 | `currentPageId` | `string`                        | (optional) A current page id, referencing the `TLDrawDocument` object provided via the `document` prop.                                                                 |
43 40
 | `onMount`       | `(TLDrawState) => void`         | (optional) A callback function that will be called when the editor first mounts, receiving the current `TLDrawState`.                                                   |

+ 2
- 0
packages/tldraw/tsconfig.build.json Ver fichero

@@ -10,6 +10,8 @@
10 10
     "dist"
11 11
   ],
12 12
   "compilerOptions": {
13
+    "noEmit": false,
14
+    "emitDeclarationOnly": true,
13 15
     "outDir": "./dist/types"
14 16
   }
15 17
 }

+ 0
- 1
packages/tldraw/tsconfig.json Ver fichero

@@ -3,7 +3,6 @@
3 3
   "include": ["src"],
4 4
   "exclude": ["node_modules", "dist"],
5 5
   "compilerOptions": {
6
-    "emitDeclarationOnly": true,
7 6
     "rootDir": "src",
8 7
     "outDir": "./dist/types",
9 8
     "baseUrl": "src",

Loading…
Cancelar
Guardar