Chrome DevTools for coding agents
chore: unblock uses with Deno and Bun (#151)
Nikolay Vitkov6d9cd1771479
diff --git a/src/index.ts b/src/index.tsindex cf6b3310..ad88b7d3 100644--- a/src/index.ts+++ b/src/index.ts@@ -6,7 +6,9 @@* SPDX-License-Identifier: Apache-2.0*/-const [major, minor] = process.version.substring(1).split('.').map(Number);+import {version} from 'node:process';++const [major, minor] = version.substring(1).split('.').map(Number);if (major < 22 || (major === 22 && minor < 12)) {console.error(diff --git a/tsconfig.json b/tsconfig.jsonindex f3f15c96..5a6f084e 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -8,8 +8,8 @@"ESNext.Iterator","ESNext.Collection"],- "module": "nodenext",- "moduleResolution": "nodenext",+ "module": "esnext",+ "moduleResolution": "bundler","outDir": "./build","rootDir": ".","strict": true,