Skip to content

Commit

Permalink
Merge pull request #774 from streamich/tsconfig-update
Browse files Browse the repository at this point in the history
`tsconfig` update
  • Loading branch information
streamich authored Nov 12, 2024
2 parents e7c3c41 + 38c0e0c commit 63771d1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
},
"files": [
"LICENSE",
"lib/"
"bin/",
"lib/",
"esm/"
],
"scripts": {
"format": "biome format ./src",
Expand All @@ -82,7 +84,8 @@
"lint:fix": "biome lint --apply ./src",
"clean": "npx [email protected] lib es6 es2019 es2020 esm typedocs coverage gh-pages yarn-error.log src/**/__bench__/node_modules src/**/__bench__/yarn-error.log",
"build:es2020": "tsc --project tsconfig.build.json --module commonjs --target es2020 --outDir lib",
"build:all": "npx [email protected] \"yarn build:es2020\"",
"build:esm": "tsc --project tsconfig.build.json --module ESNext --target ESNEXT --outDir esm",
"build:all": "npx [email protected] \"yarn build:es2020\" \"yarn build:esm\"",
"build": "yarn build:es2020",
"jest": "jest",
"test": "jest --maxWorkers 7",
Expand Down Expand Up @@ -142,7 +145,7 @@
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"benchmark": "^2.1.4",
"config-housekeeping": "https://github.com/streamich/housekeeping#3532d2abeac159315ddf403d70517859d079c801",
"config-galore": "^1.0.0",
"editing-traces": "https://github.com/streamich/editing-traces#6494020428530a6e382378b98d1d7e31334e2d7b",
"fast-json-patch": "^3.1.1",
"html-webpack-plugin": "^5.6.0",
Expand Down
5 changes: 3 additions & 2 deletions src/json-crdt-peritext-ui/dom/CursorController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ export interface CursorControllerOpts {
export class CursorController implements UiLifeCycles, Printable {
public readonly caretId: string;

private readonly _cursor: [fn: PeritextEventTarget['cursor'], stop: () => void];

public constructor(public readonly opts: CursorControllerOpts) {
this.caretId = 'jsonjoy.com-peritext-caret-' + opts.et.id;
this._cursor = throttle(opts.et.cursor.bind(opts.et), 25);
}

/** The position where user started to scrub the text. */
protected selAnchor: number = -1;

private readonly _cursor = throttle(this.opts.et.cursor.bind(this.opts.et), 25);

/**
* String position at coordinate, or -1, if unknown.
*/
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./node_modules/config-housekeeping/tsconfig.json",
"extends": "./node_modules/config-galore/tsconfig.json",
"include": ["src"],
"exclude": ["node_modules", "lib", "es6", "es2020", "esm", "docs", "README.md"],
"typedocOptions": {
Expand Down
8 changes: 5 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1652,9 +1652,13 @@ [email protected]:
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==

config-galore@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/config-galore/-/config-galore-1.0.0.tgz#641b5919192513021ee7f272ba3ea063b186e046"
integrity sha512-f6P+7NyL57wz6hxeuvoDC9OpLESqTsYhAw5xqIWhSm7KSH2au+O45q7TelQyOVCP6CG3Oc/qfAnMlApug9GbPw==

"config-housekeeping@https://github.com/streamich/housekeeping#3532d2abeac159315ddf403d70517859d079c801":
version "0.0.0"
uid "3532d2abeac159315ddf403d70517859d079c801"
resolved "https://github.com/streamich/housekeeping#3532d2abeac159315ddf403d70517859d079c801"

connect-history-api-fallback@^2.0.0:
Expand Down Expand Up @@ -1904,7 +1908,6 @@ dot-case@^3.0.4:

"editing-traces@https://github.com/streamich/editing-traces#6494020428530a6e382378b98d1d7e31334e2d7b":
version "0.0.0"
uid "6494020428530a6e382378b98d1d7e31334e2d7b"
resolved "https://github.com/streamich/editing-traces#6494020428530a6e382378b98d1d7e31334e2d7b"

[email protected]:
Expand Down Expand Up @@ -3108,7 +3111,6 @@ jsesc@^3.0.2:

"json-crdt-traces@https://github.com/streamich/json-crdt-traces#ec825401dc05cbb74b9e0b3c4d6527399f54d54d":
version "0.0.1"
uid ec825401dc05cbb74b9e0b3c4d6527399f54d54d
resolved "https://github.com/streamich/json-crdt-traces#ec825401dc05cbb74b9e0b3c4d6527399f54d54d"

json-logic-js@^2.0.2:
Expand Down

0 comments on commit 63771d1

Please sign in to comment.