From 2fc360318cb620770faa5e34402ac03f1e86cfdc Mon Sep 17 00:00:00 2001 From: daishi Date: Wed, 19 Jun 2024 10:40:41 +0900 Subject: [PATCH] fix tests --- .eslintrc.cjs | 2 +- examples/01_minimal/package.json | 1 + examples/01_minimal/src/{App.js => app.tsx} | 4 +- examples/01_minimal/src/index.js | 5 - examples/01_minimal/src/main.tsx | 10 ++ examples/02_typescript/package.json | 2 +- examples/02_typescript/relay.config.js | 3 + .../02_typescript/src/{App.tsx => app.tsx} | 0 examples/02_typescript/src/index.tsx | 8 -- examples/02_typescript/src/main.tsx | 10 ++ examples/03_errorhandling/package.json | 2 +- examples/03_errorhandling/relay.config.js | 1 + .../03_errorhandling/src/{App.tsx => app.tsx} | 0 examples/03_errorhandling/src/index.tsx | 8 -- examples/03_errorhandling/src/main.tsx | 10 ++ package.json | 3 +- pnpm-lock.yaml | 106 +++++++++--------- tsconfig.json | 2 +- 18 files changed, 99 insertions(+), 78 deletions(-) rename examples/01_minimal/src/{App.js => app.tsx} (90%) delete mode 100644 examples/01_minimal/src/index.js create mode 100644 examples/01_minimal/src/main.tsx rename examples/02_typescript/src/{App.tsx => app.tsx} (100%) delete mode 100644 examples/02_typescript/src/index.tsx create mode 100644 examples/02_typescript/src/main.tsx rename examples/03_errorhandling/src/{App.tsx => app.tsx} (100%) delete mode 100644 examples/03_errorhandling/src/index.tsx create mode 100644 examples/03_errorhandling/src/main.tsx diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 5303237..58e4dfe 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -22,7 +22,7 @@ module.exports = { react: { version: 'detect' }, }, rules: { - 'import/no-unresolved': ['error', { ignore: ['jotai-zustand'] }], + 'import/no-unresolved': ['error', { ignore: ['jotai-relay'] }], '@typescript-eslint/no-unused-vars': [ 'error', { diff --git a/examples/01_minimal/package.json b/examples/01_minimal/package.json index bfde9d8..1b880e5 100644 --- a/examples/01_minimal/package.json +++ b/examples/01_minimal/package.json @@ -14,6 +14,7 @@ "devDependencies": { "@types/react": "latest", "@types/react-dom": "latest", + "@types/relay-runtime": "latest", "typescript": "latest", "vite": "latest" }, diff --git a/examples/01_minimal/src/App.js b/examples/01_minimal/src/app.tsx similarity index 90% rename from examples/01_minimal/src/App.js rename to examples/01_minimal/src/app.tsx index e393bfd..567b3d5 100644 --- a/examples/01_minimal/src/App.js +++ b/examples/01_minimal/src/app.tsx @@ -10,6 +10,8 @@ import { graphql, } from 'relay-runtime'; +import type { AppCountriesQuery } from './__generated__/AppCountriesQuery.graphql'; + const myEnvironment = new Environment({ network: Network.create(async (params, variables) => { const response = await fetch('https://countries.trevorblades.com/', { @@ -27,7 +29,7 @@ const myEnvironment = new Environment({ store: new Store(new RecordSource()), }); -const countriesAtom = atomWithQuery( +const countriesAtom = atomWithQuery( graphql` query AppCountriesQuery { countries { diff --git a/examples/01_minimal/src/index.js b/examples/01_minimal/src/index.js deleted file mode 100644 index 8b760aa..0000000 --- a/examples/01_minimal/src/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import { createRoot } from 'react-dom/client'; - -import App from './App'; - -createRoot(document.getElementById('app')).render(); diff --git a/examples/01_minimal/src/main.tsx b/examples/01_minimal/src/main.tsx new file mode 100644 index 0000000..1a72c01 --- /dev/null +++ b/examples/01_minimal/src/main.tsx @@ -0,0 +1,10 @@ +import { StrictMode } from 'react'; +import { createRoot } from 'react-dom/client'; + +import App from './app'; + +createRoot(document.getElementById('root')!).render( + + + , +); diff --git a/examples/02_typescript/package.json b/examples/02_typescript/package.json index 0762941..1b880e5 100644 --- a/examples/02_typescript/package.json +++ b/examples/02_typescript/package.json @@ -4,7 +4,6 @@ "type": "module", "private": true, "dependencies": { - "@types/relay-runtime": "latest", "babel-plugin-relay": "latest", "jotai": "latest", "jotai-relay": "latest", @@ -15,6 +14,7 @@ "devDependencies": { "@types/react": "latest", "@types/react-dom": "latest", + "@types/relay-runtime": "latest", "typescript": "latest", "vite": "latest" }, diff --git a/examples/02_typescript/relay.config.js b/examples/02_typescript/relay.config.js index 314a732..405bb2f 100644 --- a/examples/02_typescript/relay.config.js +++ b/examples/02_typescript/relay.config.js @@ -1,6 +1,9 @@ +// eslint-disable-next-line no-undef module.exports = { language: 'typescript', + // eslint-disable-next-line no-undef src: `${__dirname}/src`, + // eslint-disable-next-line no-undef schema: `${__dirname}/data/schema.graphql`, exclude: ['**/node_modules/**', '**/__mocks__/**', '**/__generated__/**'], }; diff --git a/examples/02_typescript/src/App.tsx b/examples/02_typescript/src/app.tsx similarity index 100% rename from examples/02_typescript/src/App.tsx rename to examples/02_typescript/src/app.tsx diff --git a/examples/02_typescript/src/index.tsx b/examples/02_typescript/src/index.tsx deleted file mode 100644 index 55b74de..0000000 --- a/examples/02_typescript/src/index.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import { createRoot } from 'react-dom/client'; - -import App from './App'; - -const ele = document.getElementById('app'); -if (ele) { - createRoot(ele).render(); -} diff --git a/examples/02_typescript/src/main.tsx b/examples/02_typescript/src/main.tsx new file mode 100644 index 0000000..1a72c01 --- /dev/null +++ b/examples/02_typescript/src/main.tsx @@ -0,0 +1,10 @@ +import { StrictMode } from 'react'; +import { createRoot } from 'react-dom/client'; + +import App from './app'; + +createRoot(document.getElementById('root')!).render( + + + , +); diff --git a/examples/03_errorhandling/package.json b/examples/03_errorhandling/package.json index 33efba5..9024d37 100644 --- a/examples/03_errorhandling/package.json +++ b/examples/03_errorhandling/package.json @@ -4,7 +4,6 @@ "type": "module", "private": true, "dependencies": { - "@types/relay-runtime": "latest", "babel-plugin-relay": "latest", "jotai": "latest", "jotai-relay": "latest", @@ -16,6 +15,7 @@ "devDependencies": { "@types/react": "latest", "@types/react-dom": "latest", + "@types/relay-runtime": "latest", "typescript": "latest", "vite": "latest" }, diff --git a/examples/03_errorhandling/relay.config.js b/examples/03_errorhandling/relay.config.js index a2ca9ee..405bb2f 100644 --- a/examples/03_errorhandling/relay.config.js +++ b/examples/03_errorhandling/relay.config.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line no-undef module.exports = { language: 'typescript', // eslint-disable-next-line no-undef diff --git a/examples/03_errorhandling/src/App.tsx b/examples/03_errorhandling/src/app.tsx similarity index 100% rename from examples/03_errorhandling/src/App.tsx rename to examples/03_errorhandling/src/app.tsx diff --git a/examples/03_errorhandling/src/index.tsx b/examples/03_errorhandling/src/index.tsx deleted file mode 100644 index 55b74de..0000000 --- a/examples/03_errorhandling/src/index.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import { createRoot } from 'react-dom/client'; - -import App from './App'; - -const ele = document.getElementById('app'); -if (ele) { - createRoot(ele).render(); -} diff --git a/examples/03_errorhandling/src/main.tsx b/examples/03_errorhandling/src/main.tsx new file mode 100644 index 0000000..1a72c01 --- /dev/null +++ b/examples/03_errorhandling/src/main.tsx @@ -0,0 +1,10 @@ +import { StrictMode } from 'react'; +import { createRoot } from 'react-dom/client'; + +import App from './app'; + +createRoot(document.getElementById('root')!).render( + + + , +); diff --git a/package.json b/package.json index 5d8d3ca..ad3c09e 100644 --- a/package.json +++ b/package.json @@ -65,9 +65,10 @@ "@testing-library/react": "^15.0.7", "@testing-library/user-event": "^14.5.2", "@types/jest": "^29.5.12", + "@types/node": "^20.14.5", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", - "@types/react-relay": "^16.0.6", + "@types/relay-runtime": "^17.0.0", "@typescript-eslint/eslint-plugin": "^7.12.0", "@typescript-eslint/parser": "^7.12.0", "babel-loader": "^9.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c02faa1..aa32d1a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,15 +29,18 @@ devDependencies: '@types/jest': specifier: ^29.5.12 version: 29.5.12 + '@types/node': + specifier: ^20.14.5 + version: 20.14.5 '@types/react': specifier: ^18.3.3 version: 18.3.3 '@types/react-dom': specifier: ^18.3.0 version: 18.3.0 - '@types/react-relay': - specifier: ^16.0.6 - version: 16.0.6 + '@types/relay-runtime': + specifier: ^17.0.0 + version: 17.0.0 '@typescript-eslint/eslint-plugin': specifier: ^7.12.0 version: 7.12.0(@typescript-eslint/parser@7.12.0)(eslint@8.57.0)(typescript@5.4.5) @@ -85,7 +88,7 @@ devDependencies: version: 5.6.0(webpack@5.91.0) jest: specifier: ^29.7.0 - version: 29.7.0(babel-plugin-macros@3.1.0) + version: 29.7.0(@types/node@20.14.5)(babel-plugin-macros@3.1.0) jest-environment-jsdom: specifier: ^29.7.0 version: 29.7.0 @@ -121,10 +124,10 @@ devDependencies: version: 5.4.5 vite: specifier: ^5.2.11 - version: 5.2.12 + version: 5.2.12(@types/node@20.14.5) vitest: specifier: ^1.6.0 - version: 1.6.0(happy-dom@14.12.0) + version: 1.6.0(@types/node@20.14.5)(happy-dom@14.12.0) packages: @@ -1791,7 +1794,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.5 chalk: 4.1.2 jest-message-util: 29.7.0 jest-util: 29.7.0 @@ -1812,14 +1815,14 @@ packages: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.5 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.9.0 exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@20.14.2)(babel-plugin-macros@3.1.0) + jest-config: 29.7.0(@types/node@20.14.5)(babel-plugin-macros@3.1.0) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -1847,7 +1850,7 @@ packages: dependencies: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.5 jest-mock: 29.7.0 dev: true @@ -1874,7 +1877,7 @@ packages: dependencies: '@jest/types': 29.6.3 '@sinonjs/fake-timers': 10.3.0 - '@types/node': 20.14.2 + '@types/node': 20.14.5 jest-message-util: 29.7.0 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -1907,7 +1910,7 @@ packages: '@jest/transform': 29.7.0 '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.25 - '@types/node': 20.14.2 + '@types/node': 20.14.5 chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit: 0.1.2 @@ -1995,7 +1998,7 @@ packages: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 20.14.2 + '@types/node': 20.14.5 '@types/yargs': 17.0.32 chalk: 4.1.2 dev: true @@ -2244,10 +2247,10 @@ packages: chalk: 3.0.0 css.escape: 1.5.1 dom-accessibility-api: 0.6.3 - jest: 29.7.0(babel-plugin-macros@3.1.0) + jest: 29.7.0(@types/node@20.14.5)(babel-plugin-macros@3.1.0) lodash: 4.17.21 redent: 3.0.0 - vitest: 1.6.0(happy-dom@14.12.0) + vitest: 1.6.0(@types/node@20.14.5)(happy-dom@14.12.0) dev: true /@testing-library/react@15.0.7(@types/react@18.3.3)(react-dom@18.3.1)(react@18.3.1): @@ -2337,7 +2340,7 @@ packages: /@types/graceful-fs@4.1.9: resolution: {integrity: sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==} dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.5 dev: true /@types/html-minifier-terser@6.1.0: @@ -2370,7 +2373,7 @@ packages: /@types/jsdom@20.0.1: resolution: {integrity: sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==} dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.5 '@types/tough-cookie': 4.0.5 parse5: 7.1.2 dev: true @@ -2389,6 +2392,12 @@ packages: undici-types: 5.26.5 dev: true + /@types/node@20.14.5: + resolution: {integrity: sha512-aoRR+fJkZT2l0aGOJhuA8frnCSoNX6W7U2mpNq63+BxBIj5BQFt8rHy627kijCmm63ijdSdwvGgpUsU6MBsZZA==} + dependencies: + undici-types: 5.26.5 + dev: true + /@types/parse-json@4.0.2: resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==} dev: true @@ -2403,13 +2412,6 @@ packages: '@types/react': 18.3.3 dev: true - /@types/react-relay@16.0.6: - resolution: {integrity: sha512-VTntVQJhlwQYNUlbNgGf8RYy7EtQPRZqsD/w2Si0ygZspJXuNlVdRkklWMFN99EMRhHDpqlNHD8i3wIs7QRz9g==} - dependencies: - '@types/react': 18.3.3 - '@types/relay-runtime': 14.1.24 - dev: true - /@types/react@18.3.3: resolution: {integrity: sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==} dependencies: @@ -2417,8 +2419,8 @@ packages: csstype: 3.1.3 dev: true - /@types/relay-runtime@14.1.24: - resolution: {integrity: sha512-ta7vPoFXtEG1wu0Mk7sTngzhmfNGnIe8cDiy3yBEm8pJcGpv55YY/+vWrd9gYd9OQht8rALZpXIYSOLzS/0PVg==} + /@types/relay-runtime@17.0.0: + resolution: {integrity: sha512-m4VYXp3Y4dSPOfH3eQQo7MPEkLw/bwLKsRyZl2n1kDXdd5csVoe+OCo/qAO8KYzYxz61cMgvp8zqXYmbXYKFPQ==} dev: true /@types/stack-utils@2.0.3: @@ -3444,7 +3446,7 @@ packages: yaml: 1.10.2 dev: true - /create-jest@29.7.0(babel-plugin-macros@3.1.0): + /create-jest@29.7.0(@types/node@20.14.5)(babel-plugin-macros@3.1.0): resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -3453,7 +3455,7 @@ packages: chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@20.14.2)(babel-plugin-macros@3.1.0) + jest-config: 29.7.0(@types/node@20.14.5)(babel-plugin-macros@3.1.0) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -5094,7 +5096,7 @@ packages: '@jest/expect': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.5 chalk: 4.1.2 co: 4.6.0 dedent: 1.5.3(babel-plugin-macros@3.1.0) @@ -5115,7 +5117,7 @@ packages: - supports-color dev: true - /jest-cli@29.7.0(babel-plugin-macros@3.1.0): + /jest-cli@29.7.0(@types/node@20.14.5)(babel-plugin-macros@3.1.0): resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -5129,10 +5131,10 @@ packages: '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(babel-plugin-macros@3.1.0) + create-jest: 29.7.0(@types/node@20.14.5)(babel-plugin-macros@3.1.0) exit: 0.1.2 import-local: 3.1.0 - jest-config: 29.7.0(@types/node@20.14.2)(babel-plugin-macros@3.1.0) + jest-config: 29.7.0(@types/node@20.14.5)(babel-plugin-macros@3.1.0) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -5143,7 +5145,7 @@ packages: - ts-node dev: true - /jest-config@29.7.0(@types/node@20.14.2)(babel-plugin-macros@3.1.0): + /jest-config@29.7.0(@types/node@20.14.5)(babel-plugin-macros@3.1.0): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -5158,7 +5160,7 @@ packages: '@babel/core': 7.24.7 '@jest/test-sequencer': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.5 babel-jest: 29.7.0(@babel/core@7.24.7) chalk: 4.1.2 ci-info: 3.9.0 @@ -5224,7 +5226,7 @@ packages: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 '@types/jsdom': 20.0.1 - '@types/node': 20.14.2 + '@types/node': 20.14.5 jest-mock: 29.7.0 jest-util: 29.7.0 jsdom: 20.0.3 @@ -5241,7 +5243,7 @@ packages: '@jest/environment': 29.7.0 '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.5 jest-mock: 29.7.0 jest-util: 29.7.0 dev: true @@ -5257,7 +5259,7 @@ packages: dependencies: '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.9 - '@types/node': 20.14.2 + '@types/node': 20.14.5 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -5308,7 +5310,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.5 jest-util: 29.7.0 dev: true @@ -5363,7 +5365,7 @@ packages: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.5 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11 @@ -5394,7 +5396,7 @@ packages: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.5 chalk: 4.1.2 cjs-module-lexer: 1.3.1 collect-v8-coverage: 1.0.2 @@ -5446,7 +5448,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.5 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -5471,7 +5473,7 @@ packages: dependencies: '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.5 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -5492,13 +5494,13 @@ packages: resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.5 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 dev: true - /jest@29.7.0(babel-plugin-macros@3.1.0): + /jest@29.7.0(@types/node@20.14.5)(babel-plugin-macros@3.1.0): resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -5511,7 +5513,7 @@ packages: '@jest/core': 29.7.0(babel-plugin-macros@3.1.0) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.7.0(babel-plugin-macros@3.1.0) + jest-cli: 29.7.0(@types/node@20.14.5)(babel-plugin-macros@3.1.0) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -7178,7 +7180,7 @@ packages: convert-source-map: 2.0.0 dev: true - /vite-node@1.6.0: + /vite-node@1.6.0(@types/node@20.14.5): resolution: {integrity: sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -7187,7 +7189,7 @@ packages: debug: 4.3.5 pathe: 1.1.2 picocolors: 1.0.1 - vite: 5.2.12 + vite: 5.2.12(@types/node@20.14.5) transitivePeerDependencies: - '@types/node' - less @@ -7199,7 +7201,7 @@ packages: - terser dev: true - /vite@5.2.12: + /vite@5.2.12(@types/node@20.14.5): resolution: {integrity: sha512-/gC8GxzxMK5ntBwb48pR32GGhENnjtY30G4A0jemunsBkiEZFw60s8InGpN8gkhHEkjnRK1aSAxeQgwvFhUHAA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -7227,6 +7229,7 @@ packages: terser: optional: true dependencies: + '@types/node': 20.14.5 esbuild: 0.20.2 postcss: 8.4.38 rollup: 4.18.0 @@ -7234,7 +7237,7 @@ packages: fsevents: 2.3.3 dev: true - /vitest@1.6.0(happy-dom@14.12.0): + /vitest@1.6.0(@types/node@20.14.5)(happy-dom@14.12.0): resolution: {integrity: sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -7259,6 +7262,7 @@ packages: jsdom: optional: true dependencies: + '@types/node': 20.14.5 '@vitest/expect': 1.6.0 '@vitest/runner': 1.6.0 '@vitest/snapshot': 1.6.0 @@ -7277,8 +7281,8 @@ packages: strip-literal: 2.1.0 tinybench: 2.8.0 tinypool: 0.8.4 - vite: 5.2.12 - vite-node: 1.6.0 + vite: 5.2.12(@types/node@20.14.5) + vite-node: 1.6.0(@types/node@20.14.5) why-is-node-running: 2.2.2 transitivePeerDependencies: - less diff --git a/tsconfig.json b/tsconfig.json index 760ab5c..e202987 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,7 @@ "jsx": "react-jsx", "baseUrl": ".", "paths": { - "jotai-zustand": ["./src/index.js"] + "jotai-relay": ["./src/index.js"] } }, "exclude": ["dist", "examples"]