From ca802ff9ec441a083f810376fb663a995f45ed7a Mon Sep 17 00:00:00 2001 From: Hunter Johnston Date: Sun, 14 Jul 2024 18:34:27 -0400 Subject: [PATCH] add node typs --- packages/mode-watcher/package.json | 1 + packages/mode-watcher/tsconfig.json | 3 +- pnpm-lock.yaml | 106 +++++++++++++++------------- sites/docs/package.json | 1 + sites/docs/tsconfig.json | 3 +- 5 files changed, 62 insertions(+), 52 deletions(-) diff --git a/packages/mode-watcher/package.json b/packages/mode-watcher/package.json index 79259c0..dab8192 100644 --- a/packages/mode-watcher/package.json +++ b/packages/mode-watcher/package.json @@ -46,6 +46,7 @@ "@testing-library/jest-dom": "^6.4.6", "@testing-library/svelte": "^5.2.0", "@testing-library/user-event": "^14.5.1", + "@types/node": "^20.14.10", "autoprefixer": "^10.4.14", "jsdom": "^24.1.0", "postcss": "^8.4.24", diff --git a/packages/mode-watcher/tsconfig.json b/packages/mode-watcher/tsconfig.json index 939b931..53c1c25 100644 --- a/packages/mode-watcher/tsconfig.json +++ b/packages/mode-watcher/tsconfig.json @@ -10,6 +10,7 @@ "sourceMap": true, "strict": true, "moduleResolution": "NodeNext", - "module": "NodeNext" + "module": "NodeNext", + "types": ["node"] } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 795e5dd..d38e15c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,16 +49,16 @@ importers: version: 1.41.2 '@sveltejs/adapter-auto': specifier: ^3.0.0 - version: 3.1.1(@sveltejs/kit@2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17))) + version: 3.1.1(@sveltejs/kit@2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10))) '@sveltejs/kit': specifier: ^2.0.0 - version: 2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)) + version: 2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)) '@sveltejs/package': specifier: ^2.0.0 version: 2.2.6(svelte@4.2.10)(typescript@5.3.3) '@sveltejs/vite-plugin-svelte': specifier: ^3.0.0 - version: 3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)) + version: 3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)) '@svitejs/changesets-changelog-github-compact': specifier: ^1.1.0 version: 1.1.0 @@ -67,13 +67,16 @@ importers: version: 10.3.1 '@testing-library/jest-dom': specifier: ^6.4.6 - version: 6.4.6(vitest@1.2.2(@types/node@20.11.17)(jsdom@24.1.0)) + version: 6.4.6(vitest@1.2.2(@types/node@20.14.10)(jsdom@24.1.0)) '@testing-library/svelte': specifier: ^5.2.0 - version: 5.2.0(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17))(vitest@1.2.2(@types/node@20.11.17)(jsdom@24.1.0)) + version: 5.2.0(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10))(vitest@1.2.2(@types/node@20.14.10)(jsdom@24.1.0)) '@testing-library/user-event': specifier: ^14.5.1 version: 14.5.2(@testing-library/dom@10.3.1) + '@types/node': + specifier: ^20.14.10 + version: 20.14.10 autoprefixer: specifier: ^10.4.14 version: 10.4.17(postcss@8.4.35) @@ -106,13 +109,13 @@ importers: version: 5.3.3 vite: specifier: ^5.0.0 - version: 5.1.1(@types/node@20.11.17) + version: 5.1.1(@types/node@20.14.10) vitest: specifier: ^1.0.0 - version: 1.2.2(@types/node@20.11.17)(jsdom@24.1.0) + version: 1.2.2(@types/node@20.14.10)(jsdom@24.1.0) vitest-localstorage-mock: specifier: ^0.1.2 - version: 0.1.2(vitest@1.2.2(@types/node@20.11.17)(jsdom@24.1.0)) + version: 0.1.2(vitest@1.2.2(@types/node@20.14.10)(jsdom@24.1.0)) sites/docs: dependencies: @@ -134,13 +137,13 @@ importers: devDependencies: '@sveltejs/adapter-cloudflare': specifier: ^4.0.0 - version: 4.1.0(@sveltejs/kit@2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17))) + version: 4.1.0(@sveltejs/kit@2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10))) '@sveltejs/kit': specifier: ^2.0.0 - version: 2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)) + version: 2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)) '@sveltejs/vite-plugin-svelte': specifier: ^3.0.0 - version: 3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)) + version: 3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)) '@tailwindcss/typography': specifier: ^0.5.10 version: 0.5.10(tailwindcss@3.4.1) @@ -153,6 +156,9 @@ importers: '@types/mdast': specifier: ^4.0.3 version: 4.0.3 + '@types/node': + specifier: ^20.14.10 + version: 20.14.10 autoprefixer: specifier: ^10.4.16 version: 10.4.17(postcss@8.4.35) @@ -218,10 +224,10 @@ importers: version: 5.0.0 vite: specifier: ^5.0.3 - version: 5.1.1(@types/node@20.11.17) + version: 5.1.1(@types/node@20.14.10) vitest: specifier: ^1.2.0 - version: 1.2.2(@types/node@20.11.17)(jsdom@24.1.0) + version: 1.2.2(@types/node@20.14.10)(jsdom@24.1.0) packages: @@ -1303,8 +1309,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@20.11.17': - resolution: {integrity: sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==} + '@types/node@20.14.10': + resolution: {integrity: sha512-MdiXf+nDuMvY0gJKxyfZ7/6UFsETO7mGKF54MVD/ekJS6HdFtpZFBgrh6Pseu64XTb2MLyFPlbW6hj8HYRQNOQ==} '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -5612,7 +5618,7 @@ snapshots: '@grpc/grpc-js@1.10.0': dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 20.11.17 + '@types/node': 20.14.10 '@grpc/proto-loader@0.7.10': dependencies: @@ -6041,21 +6047,21 @@ snapshots: - supports-color - typescript - '@sveltejs/adapter-auto@3.1.1(@sveltejs/kit@2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))': + '@sveltejs/adapter-auto@3.1.1(@sveltejs/kit@2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))': dependencies: - '@sveltejs/kit': 2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)) + '@sveltejs/kit': 2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)) import-meta-resolve: 4.0.0 - '@sveltejs/adapter-cloudflare@4.1.0(@sveltejs/kit@2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))': + '@sveltejs/adapter-cloudflare@4.1.0(@sveltejs/kit@2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))': dependencies: '@cloudflare/workers-types': 4.20240208.0 - '@sveltejs/kit': 2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)) + '@sveltejs/kit': 2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)) esbuild: 0.19.12 worktop: 0.8.0-next.18 - '@sveltejs/kit@2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17))': + '@sveltejs/kit@2.5.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10))': dependencies: - '@sveltejs/vite-plugin-svelte': 3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)) + '@sveltejs/vite-plugin-svelte': 3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)) '@types/cookie': 0.6.0 cookie: 0.6.0 devalue: 4.3.2 @@ -6069,7 +6075,7 @@ snapshots: sirv: 2.0.4 svelte: 4.2.10 tiny-glob: 0.2.9 - vite: 5.1.1(@types/node@20.11.17) + vite: 5.1.1(@types/node@20.14.10) '@sveltejs/package@2.2.6(svelte@4.2.10)(typescript@5.3.3)': dependencies: @@ -6082,26 +6088,26 @@ snapshots: transitivePeerDependencies: - typescript - '@sveltejs/vite-plugin-svelte-inspector@2.0.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17))': + '@sveltejs/vite-plugin-svelte-inspector@2.0.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10))': dependencies: - '@sveltejs/vite-plugin-svelte': 3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)) + '@sveltejs/vite-plugin-svelte': 3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)) debug: 4.3.4 svelte: 4.2.10 - vite: 5.1.1(@types/node@20.11.17) + vite: 5.1.1(@types/node@20.14.10) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17))': + '@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 2.0.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17)) + '@sveltejs/vite-plugin-svelte-inspector': 2.0.0(@sveltejs/vite-plugin-svelte@3.0.2(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)))(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10)) debug: 4.3.4 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.7 svelte: 4.2.10 svelte-hmr: 0.15.3(svelte@4.2.10) - vite: 5.1.1(@types/node@20.11.17) - vitefu: 0.2.5(vite@5.1.1(@types/node@20.11.17)) + vite: 5.1.1(@types/node@20.14.10) + vitefu: 0.2.5(vite@5.1.1(@types/node@20.14.10)) transitivePeerDependencies: - supports-color @@ -6135,7 +6141,7 @@ snapshots: lz-string: 1.5.0 pretty-format: 27.5.1 - '@testing-library/jest-dom@6.4.6(vitest@1.2.2(@types/node@20.11.17)(jsdom@24.1.0))': + '@testing-library/jest-dom@6.4.6(vitest@1.2.2(@types/node@20.14.10)(jsdom@24.1.0))': dependencies: '@adobe/css-tools': 4.4.0 '@babel/runtime': 7.23.9 @@ -6146,15 +6152,15 @@ snapshots: lodash: 4.17.21 redent: 3.0.0 optionalDependencies: - vitest: 1.2.2(@types/node@20.11.17)(jsdom@24.1.0) + vitest: 1.2.2(@types/node@20.14.10)(jsdom@24.1.0) - '@testing-library/svelte@5.2.0(svelte@4.2.10)(vite@5.1.1(@types/node@20.11.17))(vitest@1.2.2(@types/node@20.11.17)(jsdom@24.1.0))': + '@testing-library/svelte@5.2.0(svelte@4.2.10)(vite@5.1.1(@types/node@20.14.10))(vitest@1.2.2(@types/node@20.14.10)(jsdom@24.1.0))': dependencies: '@testing-library/dom': 10.3.1 svelte: 4.2.10 optionalDependencies: - vite: 5.1.1(@types/node@20.11.17) - vitest: 1.2.2(@types/node@20.11.17)(jsdom@24.1.0) + vite: 5.1.1(@types/node@20.14.10) + vitest: 1.2.2(@types/node@20.14.10)(jsdom@24.1.0) '@testing-library/user-event@14.5.2(@testing-library/dom@10.3.1)': dependencies: @@ -6214,7 +6220,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@20.11.17': + '@types/node@20.14.10': dependencies: undici-types: 5.26.5 @@ -7404,7 +7410,7 @@ snapshots: eslint: 9.7.0 optionalDependencies: '@typescript-eslint/eslint-plugin': 8.0.0-alpha.40(@typescript-eslint/parser@7.16.0(eslint@9.7.0)(typescript@5.3.3))(eslint@9.7.0)(typescript@5.3.3) - vitest: 1.2.2(@types/node@20.11.17)(jsdom@24.1.0) + vitest: 1.2.2(@types/node@20.14.10)(jsdom@24.1.0) transitivePeerDependencies: - supports-color - typescript @@ -9532,7 +9538,7 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.11.17 + '@types/node': 20.14.10 long: 5.2.3 pseudomap@1.0.2: {} @@ -10525,13 +10531,13 @@ snapshots: unist-util-stringify-position: 4.0.0 vfile-message: 4.0.2 - vite-node@1.2.2(@types/node@20.11.17): + vite-node@1.2.2(@types/node@20.14.10): dependencies: cac: 6.7.14 debug: 4.3.4 pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.1.1(@types/node@20.11.17) + vite: 5.1.1(@types/node@20.14.10) transitivePeerDependencies: - '@types/node' - less @@ -10542,24 +10548,24 @@ snapshots: - supports-color - terser - vite@5.1.1(@types/node@20.11.17): + vite@5.1.1(@types/node@20.14.10): dependencies: esbuild: 0.19.12 postcss: 8.4.35 rollup: 4.10.0 optionalDependencies: - '@types/node': 20.11.17 + '@types/node': 20.14.10 fsevents: 2.3.3 - vitefu@0.2.5(vite@5.1.1(@types/node@20.11.17)): + vitefu@0.2.5(vite@5.1.1(@types/node@20.14.10)): optionalDependencies: - vite: 5.1.1(@types/node@20.11.17) + vite: 5.1.1(@types/node@20.14.10) - vitest-localstorage-mock@0.1.2(vitest@1.2.2(@types/node@20.11.17)(jsdom@24.1.0)): + vitest-localstorage-mock@0.1.2(vitest@1.2.2(@types/node@20.14.10)(jsdom@24.1.0)): dependencies: - vitest: 1.2.2(@types/node@20.11.17)(jsdom@24.1.0) + vitest: 1.2.2(@types/node@20.14.10)(jsdom@24.1.0) - vitest@1.2.2(@types/node@20.11.17)(jsdom@24.1.0): + vitest@1.2.2(@types/node@20.14.10)(jsdom@24.1.0): dependencies: '@vitest/expect': 1.2.2 '@vitest/runner': 1.2.2 @@ -10579,11 +10585,11 @@ snapshots: strip-literal: 1.3.0 tinybench: 2.6.0 tinypool: 0.8.2 - vite: 5.1.1(@types/node@20.11.17) - vite-node: 1.2.2(@types/node@20.11.17) + vite: 5.1.1(@types/node@20.14.10) + vite-node: 1.2.2(@types/node@20.14.10) why-is-node-running: 2.2.2 optionalDependencies: - '@types/node': 20.11.17 + '@types/node': 20.14.10 jsdom: 24.1.0 transitivePeerDependencies: - less diff --git a/sites/docs/package.json b/sites/docs/package.json index 18a1b94..1e341b9 100644 --- a/sites/docs/package.json +++ b/sites/docs/package.json @@ -34,6 +34,7 @@ "@types/eslint": "8.56.0", "@types/hast": "^3.0.4", "@types/mdast": "^4.0.3", + "@types/node": "^20.14.10", "autoprefixer": "^10.4.16", "clsx": "^2.1.0", "concurrently": "^8.2.2", diff --git a/sites/docs/tsconfig.json b/sites/docs/tsconfig.json index 898b19d..94c56df 100644 --- a/sites/docs/tsconfig.json +++ b/sites/docs/tsconfig.json @@ -10,7 +10,8 @@ "skipLibCheck": true, "sourceMap": true, "strict": true, - "moduleResolution": "bundler" + "moduleResolution": "bundler", + "types": ["node"] } // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias //