From 9b5f974782be7dd138279df9a530b3224bfb8a67 Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Fri, 10 Jan 2025 09:45:47 +0100 Subject: [PATCH] Add React dependency --- package.json | 6 ++++++ pnpm-lock.yaml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ tsconfig.json | 12 +++-------- 3 files changed, 64 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index a949ab8..f60d40d 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,8 @@ "license": "AGPL-3.0-only", "devDependencies": { "@types/node": "^22.10.5", + "@types/react": "^19.0.4", + "@types/react-dom": "^19.0.2", "@typescript-eslint/eslint-plugin": "^8.19.0", "@typescript-eslint/parser": "^8.19.0", "builtin-modules": "^4.0.0", @@ -20,5 +22,9 @@ "obsidian": "^1.7.2", "tslib": "^2.8.1", "typescript": "^5.7.2" + }, + "dependencies": { + "react": "^19.0.0", + "react-dom": "^19.0.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3f21b91..24b8a56 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,10 +7,23 @@ settings: importers: .: + dependencies: + react: + specifier: ^19.0.0 + version: 19.0.0 + react-dom: + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) devDependencies: '@types/node': specifier: ^22.10.5 version: 22.10.5 + '@types/react': + specifier: ^19.0.4 + version: 19.0.4 + '@types/react-dom': + specifier: ^19.0.2 + version: 19.0.2(@types/react@19.0.4) '@typescript-eslint/eslint-plugin': specifier: ^8.19.0 version: 8.19.0(@typescript-eslint/parser@8.19.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2) @@ -272,6 +285,14 @@ packages: '@types/node@22.10.5': resolution: {integrity: sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ==} + '@types/react-dom@19.0.2': + resolution: {integrity: sha512-c1s+7TKFaDRRxr1TxccIX2u7sfCnc3RxkVyBIUA2lCpyqCF+QoAwQ/CBg7bsMdVwP120HEH143VQezKtef5nCg==} + peerDependencies: + '@types/react': ^19.0.0 + + '@types/react@19.0.4': + resolution: {integrity: sha512-3O4QisJDYr1uTUMZHA2YswiQZRq+Pd8D+GdVFYikTutYsTz+QZgWkAPnP7rx9txoI6EXKcPiluMqWPFV3tT9Wg==} + '@types/tern@0.23.9': resolution: {integrity: sha512-ypzHFE/wBzh+BlH6rrBgS5I/Z7RD21pGhZ2rltb/+ZrVM1awdZwjx7hE5XfuYgHWk9uvV5HLZN3SloevCAp3Bw==} @@ -381,6 +402,9 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} + csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + debug@4.4.0: resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} engines: {node: '>=6.0'} @@ -621,6 +645,15 @@ packages: queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + react-dom@19.0.0: + resolution: {integrity: sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==} + peerDependencies: + react: ^19.0.0 + + react@19.0.0: + resolution: {integrity: sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==} + engines: {node: '>=0.10.0'} + resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} @@ -632,6 +665,9 @@ packages: run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + scheduler@0.25.0: + resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==} + semver@7.6.3: resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} engines: {node: '>=10'} @@ -867,6 +903,14 @@ snapshots: dependencies: undici-types: 6.20.0 + '@types/react-dom@19.0.2(@types/react@19.0.4)': + dependencies: + '@types/react': 19.0.4 + + '@types/react@19.0.4': + dependencies: + csstype: 3.1.3 + '@types/tern@0.23.9': dependencies: '@types/estree': 1.0.6 @@ -1005,6 +1049,8 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + csstype@3.1.3: {} + debug@4.4.0: dependencies: ms: 2.1.3 @@ -1264,6 +1310,13 @@ snapshots: queue-microtask@1.2.3: {} + react-dom@19.0.0(react@19.0.0): + dependencies: + react: 19.0.0 + scheduler: 0.25.0 + + react@19.0.0: {} + resolve-from@4.0.0: {} reusify@1.0.4: {} @@ -1272,6 +1325,8 @@ snapshots: dependencies: queue-microtask: 1.2.3 + scheduler@0.25.0: {} + semver@7.6.3: {} shebang-command@2.0.0: diff --git a/tsconfig.json b/tsconfig.json index c44b729..45a797a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,19 +6,13 @@ "module": "ESNext", "target": "ES6", "allowJs": true, + "jsx": "react-jsx", "noImplicitAny": true, "moduleResolution": "node", "importHelpers": true, "isolatedModules": true, "strictNullChecks": true, - "lib": [ - "DOM", - "ES5", - "ES6", - "ES7" - ] + "lib": ["DOM", "ES5", "ES6", "ES7"] }, - "include": [ - "**/*.ts" - ] + "include": ["**/*.ts"] }