From 2a9ceee03cc4dc63de140c7ec467813a778fe7e8 Mon Sep 17 00:00:00 2001 From: Isaac Schultz <44488203+IsaacMSchultz@users.noreply.github.com> Date: Wed, 31 Mar 2021 13:48:09 -0700 Subject: [PATCH] using js-to-ts converter on JSX. (#3906) Added 'include' parameter to tsconfig to tell the compiler to only look inside the src directory --- .../{cursor-across-element.js => cursor-across-element.tsx} | 0 ...across-elements-empty.js => cursor-across-elements-empty.tsx} | 0 ...sor-across-elements-end.js => cursor-across-elements-end.tsx} | 0 ...ross-elements-middle.js => cursor-across-elements-middle.tsx} | 0 ...across-elements-start.js => cursor-across-elements-start.tsx} | 0 .../{cursor-element-empty.js => cursor-element-empty.tsx} | 0 .../fixtures/{cursor-element-end.js => cursor-element-end.tsx} | 0 .../{cursor-element-middle.js => cursor-element-middle.tsx} | 0 ...ursor-element-nested-end.js => cursor-element-nested-end.tsx} | 0 ...element-nested-middle.js => cursor-element-nested-middle.tsx} | 0 ...r-element-nested-start.js => cursor-element-nested-start.tsx} | 0 .../{cursor-element-start.js => cursor-element-start.tsx} | 0 .../fixtures/{cursor-text-empty.js => cursor-text-empty.tsx} | 0 .../test/fixtures/{element-custom.js => element-custom.tsx} | 0 .../test/fixtures/{element-empty.js => element-empty.tsx} | 0 .../{element-nested-empty.js => element-nested-empty.tsx} | 0 .../{element-nested-string.js => element-nested-string.tsx} | 0 .../test/fixtures/{element-string.js => element-string.tsx} | 0 .../fixtures/{element-text-empty.js => element-text-empty.tsx} | 0 .../fixtures/{element-text-string.js => element-text-string.tsx} | 0 .../test/fixtures/{fragment-element.js => fragment-element.tsx} | 0 .../test/fixtures/{fragment-empty.js => fragment-empty.tsx} | 0 .../test/fixtures/{fragment-string.js => fragment-string.tsx} | 0 .../{selection-offset-start.js => selection-offset-start.tsx} | 0 .../test/fixtures/{selection.js => selection.tsx} | 0 .../test/fixtures/{text-empty.js => text-empty.tsx} | 0 .../test/fixtures/{text-full.js => text-full.tsx} | 0 .../test/fixtures/{text-nested.js => text-nested.tsx} | 0 .../test/fixtures/{value-empty.js => value-empty.tsx} | 0 packages/slate-hyperscript/tsconfig.json | 1 + 30 files changed, 1 insertion(+) rename packages/slate-hyperscript/test/fixtures/{cursor-across-element.js => cursor-across-element.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-across-elements-empty.js => cursor-across-elements-empty.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-across-elements-end.js => cursor-across-elements-end.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-across-elements-middle.js => cursor-across-elements-middle.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-across-elements-start.js => cursor-across-elements-start.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-element-empty.js => cursor-element-empty.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-element-end.js => cursor-element-end.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-element-middle.js => cursor-element-middle.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-element-nested-end.js => cursor-element-nested-end.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-element-nested-middle.js => cursor-element-nested-middle.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-element-nested-start.js => cursor-element-nested-start.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-element-start.js => cursor-element-start.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{cursor-text-empty.js => cursor-text-empty.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{element-custom.js => element-custom.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{element-empty.js => element-empty.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{element-nested-empty.js => element-nested-empty.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{element-nested-string.js => element-nested-string.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{element-string.js => element-string.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{element-text-empty.js => element-text-empty.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{element-text-string.js => element-text-string.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{fragment-element.js => fragment-element.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{fragment-empty.js => fragment-empty.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{fragment-string.js => fragment-string.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{selection-offset-start.js => selection-offset-start.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{selection.js => selection.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{text-empty.js => text-empty.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{text-full.js => text-full.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{text-nested.js => text-nested.tsx} (100%) rename packages/slate-hyperscript/test/fixtures/{value-empty.js => value-empty.tsx} (100%) diff --git a/packages/slate-hyperscript/test/fixtures/cursor-across-element.js b/packages/slate-hyperscript/test/fixtures/cursor-across-element.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-across-element.js rename to packages/slate-hyperscript/test/fixtures/cursor-across-element.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-across-elements-empty.js b/packages/slate-hyperscript/test/fixtures/cursor-across-elements-empty.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-across-elements-empty.js rename to packages/slate-hyperscript/test/fixtures/cursor-across-elements-empty.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-across-elements-end.js b/packages/slate-hyperscript/test/fixtures/cursor-across-elements-end.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-across-elements-end.js rename to packages/slate-hyperscript/test/fixtures/cursor-across-elements-end.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-across-elements-middle.js b/packages/slate-hyperscript/test/fixtures/cursor-across-elements-middle.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-across-elements-middle.js rename to packages/slate-hyperscript/test/fixtures/cursor-across-elements-middle.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-across-elements-start.js b/packages/slate-hyperscript/test/fixtures/cursor-across-elements-start.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-across-elements-start.js rename to packages/slate-hyperscript/test/fixtures/cursor-across-elements-start.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-element-empty.js b/packages/slate-hyperscript/test/fixtures/cursor-element-empty.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-element-empty.js rename to packages/slate-hyperscript/test/fixtures/cursor-element-empty.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-element-end.js b/packages/slate-hyperscript/test/fixtures/cursor-element-end.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-element-end.js rename to packages/slate-hyperscript/test/fixtures/cursor-element-end.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-element-middle.js b/packages/slate-hyperscript/test/fixtures/cursor-element-middle.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-element-middle.js rename to packages/slate-hyperscript/test/fixtures/cursor-element-middle.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-element-nested-end.js b/packages/slate-hyperscript/test/fixtures/cursor-element-nested-end.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-element-nested-end.js rename to packages/slate-hyperscript/test/fixtures/cursor-element-nested-end.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-element-nested-middle.js b/packages/slate-hyperscript/test/fixtures/cursor-element-nested-middle.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-element-nested-middle.js rename to packages/slate-hyperscript/test/fixtures/cursor-element-nested-middle.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-element-nested-start.js b/packages/slate-hyperscript/test/fixtures/cursor-element-nested-start.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-element-nested-start.js rename to packages/slate-hyperscript/test/fixtures/cursor-element-nested-start.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-element-start.js b/packages/slate-hyperscript/test/fixtures/cursor-element-start.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-element-start.js rename to packages/slate-hyperscript/test/fixtures/cursor-element-start.tsx diff --git a/packages/slate-hyperscript/test/fixtures/cursor-text-empty.js b/packages/slate-hyperscript/test/fixtures/cursor-text-empty.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/cursor-text-empty.js rename to packages/slate-hyperscript/test/fixtures/cursor-text-empty.tsx diff --git a/packages/slate-hyperscript/test/fixtures/element-custom.js b/packages/slate-hyperscript/test/fixtures/element-custom.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/element-custom.js rename to packages/slate-hyperscript/test/fixtures/element-custom.tsx diff --git a/packages/slate-hyperscript/test/fixtures/element-empty.js b/packages/slate-hyperscript/test/fixtures/element-empty.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/element-empty.js rename to packages/slate-hyperscript/test/fixtures/element-empty.tsx diff --git a/packages/slate-hyperscript/test/fixtures/element-nested-empty.js b/packages/slate-hyperscript/test/fixtures/element-nested-empty.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/element-nested-empty.js rename to packages/slate-hyperscript/test/fixtures/element-nested-empty.tsx diff --git a/packages/slate-hyperscript/test/fixtures/element-nested-string.js b/packages/slate-hyperscript/test/fixtures/element-nested-string.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/element-nested-string.js rename to packages/slate-hyperscript/test/fixtures/element-nested-string.tsx diff --git a/packages/slate-hyperscript/test/fixtures/element-string.js b/packages/slate-hyperscript/test/fixtures/element-string.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/element-string.js rename to packages/slate-hyperscript/test/fixtures/element-string.tsx diff --git a/packages/slate-hyperscript/test/fixtures/element-text-empty.js b/packages/slate-hyperscript/test/fixtures/element-text-empty.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/element-text-empty.js rename to packages/slate-hyperscript/test/fixtures/element-text-empty.tsx diff --git a/packages/slate-hyperscript/test/fixtures/element-text-string.js b/packages/slate-hyperscript/test/fixtures/element-text-string.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/element-text-string.js rename to packages/slate-hyperscript/test/fixtures/element-text-string.tsx diff --git a/packages/slate-hyperscript/test/fixtures/fragment-element.js b/packages/slate-hyperscript/test/fixtures/fragment-element.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/fragment-element.js rename to packages/slate-hyperscript/test/fixtures/fragment-element.tsx diff --git a/packages/slate-hyperscript/test/fixtures/fragment-empty.js b/packages/slate-hyperscript/test/fixtures/fragment-empty.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/fragment-empty.js rename to packages/slate-hyperscript/test/fixtures/fragment-empty.tsx diff --git a/packages/slate-hyperscript/test/fixtures/fragment-string.js b/packages/slate-hyperscript/test/fixtures/fragment-string.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/fragment-string.js rename to packages/slate-hyperscript/test/fixtures/fragment-string.tsx diff --git a/packages/slate-hyperscript/test/fixtures/selection-offset-start.js b/packages/slate-hyperscript/test/fixtures/selection-offset-start.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/selection-offset-start.js rename to packages/slate-hyperscript/test/fixtures/selection-offset-start.tsx diff --git a/packages/slate-hyperscript/test/fixtures/selection.js b/packages/slate-hyperscript/test/fixtures/selection.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/selection.js rename to packages/slate-hyperscript/test/fixtures/selection.tsx diff --git a/packages/slate-hyperscript/test/fixtures/text-empty.js b/packages/slate-hyperscript/test/fixtures/text-empty.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/text-empty.js rename to packages/slate-hyperscript/test/fixtures/text-empty.tsx diff --git a/packages/slate-hyperscript/test/fixtures/text-full.js b/packages/slate-hyperscript/test/fixtures/text-full.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/text-full.js rename to packages/slate-hyperscript/test/fixtures/text-full.tsx diff --git a/packages/slate-hyperscript/test/fixtures/text-nested.js b/packages/slate-hyperscript/test/fixtures/text-nested.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/text-nested.js rename to packages/slate-hyperscript/test/fixtures/text-nested.tsx diff --git a/packages/slate-hyperscript/test/fixtures/value-empty.js b/packages/slate-hyperscript/test/fixtures/value-empty.tsx similarity index 100% rename from packages/slate-hyperscript/test/fixtures/value-empty.js rename to packages/slate-hyperscript/test/fixtures/value-empty.tsx diff --git a/packages/slate-hyperscript/tsconfig.json b/packages/slate-hyperscript/tsconfig.json index 4463c7357..e7e11b040 100644 --- a/packages/slate-hyperscript/tsconfig.json +++ b/packages/slate-hyperscript/tsconfig.json @@ -1,5 +1,6 @@ { "extends": "../../config/typescript/tsconfig.json", + "include": ["src/**/*"], "compilerOptions": { "rootDir": "./src", "outDir": "./lib",