Skip to content

Commit

Permalink
Revert "small changes to dev"
Browse files Browse the repository at this point in the history
This reverts commit 8a361fa.
  • Loading branch information
steveruizok committed Mar 9, 2024
1 parent 8a361fa commit 80663e0
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 35 deletions.
2 changes: 1 addition & 1 deletion packages/dev/src/state/shapes/draw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { Vec } from '@tldraw/vec'
import { getStroke } from 'perfect-freehand'
import type { DrawShape } from '../../types'
import { EASINGS } from '../easings'
import { EASINGS } from 'state/easings'

type T = DrawShape
type E = SVGSVGElement
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/src/state/state.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from 'react'
import type { Doc, DrawShape, DrawStyles, State } from 'types'
import {
TLPinchEventHandler,
TLPointerEventHandler,
Expand All @@ -13,7 +14,6 @@ import sample from './sample.json'
import type { StateSelector } from 'zustand'
import { copyTextToClipboard, pointInPolygon } from './utils'
import { EASING_STRINGS } from './easings'
import { Doc, DrawShape, DrawStyles, State } from '../types'

export const shapeUtils: TLShapeUtilsMap<DrawShape> = {
draw: new DrawUtil(),
Expand Down
7 changes: 1 addition & 6 deletions packages/dev/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,5 @@
"exclude": ["node_modules", "**/*.test.ts", "**/*.spec.ts", "dist"],
"compilerOptions": {
"baseUrl": "./src"
},
"references": [
{
"path": "../perfect-freehand"
}
]
}
}
48 changes: 22 additions & 26 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"composite": true,
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"allowSyntheticDefaultImports": true,
"declaration": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"resolveJsonModule": true,
"importsNotUsedAsValues": "error",
"incremental": true,
"jsx": "react-jsx",
"lib": ["dom", "DOM.Iterable", "esnext"],
"experimentalDecorators": true,
"module": "esnext",
"target": "esnext",
"resolveJsonModule": true,
"importHelpers": true,
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noEmit": false,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
"noUnusedLocals": false /* Report errors on unused locals. */,
"noUnusedParameters": false /* Report errors on unused parameters. */,
"skipLibCheck": true,
"strict": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"useDefineForClassFields": true,
"noImplicitOverride": false,
"types": ["node", "@types/jest"]
},
"exclude": ["node_modules"]
"sourceMap": true,
"strict": false,
"strictFunctionTypes": true /* Enable strict checking of function types. */,
"strictNullChecks": true /* Enable strict null checks. */,
"target": "es5",
"typeRoots": ["node_modules/@types", "node_modules/jest"],
"types": ["node", "jest"],
"jsx": "preserve",
"lib": ["dom", "esnext"],
"module": "esnext"
}
}
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"extends": "./tsconfig.base.json",
"exclude": ["node_modules", "**/*.test.ts", "**/*.spec.ts"],
"compilerOptions": {
"baseUrl": "."
"baseUrl": ".",
"paths": {
"perfect-freehand": ["./packages/perfect-freehand/dist"],
"+*": ["./packages/perfect-freehand/src/*"]
}
}
}

0 comments on commit 80663e0

Please sign in to comment.