Chrome DevTools for coding agents
build: do not bundle by default (#488)
Alex Rudenko17b2edca7c6b
diff --git a/.github/workflows/publish-to-npm-on-tag.yml b/.github/workflows/publish-to-npm-on-tag.ymlindex 007474e8..29799009 100644--- a/.github/workflows/publish-to-npm-on-tag.yml+++ b/.github/workflows/publish-to-npm-on-tag.yml@@ -43,8 +43,8 @@ jobs:- name: Install dependenciesrun: npm ci- - name: Build- run: npm run build+ - name: Build and bundle+ run: npm run bundleenv:NODE_ENV: 'production'@@ -76,8 +76,8 @@ jobs:- name: Install dependenciesrun: npm ci- - name: Build- run: npm run build+ - name: Build and bundle+ run: npm run bundleenv:NODE_ENV: 'production'diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.ymlindex 52d85e56..5649d2ca 100644--- a/.github/workflows/run-tests.yml+++ b/.github/workflows/run-tests.yml@@ -41,7 +41,7 @@ jobs:run: npm ci- name: Build- run: npm run build+ run: npm run bundle- name: Set up Node.jsuses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0diff --git a/package.json b/package.jsonindex 9a0c085e..c08de50c 100644--- a/package.json+++ b/package.json@@ -7,7 +7,8 @@"main": "index.js","scripts": {"clean": "node -e \"require('fs').rmSync('build', {recursive: true, force: true})\"",- "build": "npm run clean && tsc && node --experimental-strip-types --no-warnings=ExperimentalWarning scripts/post-build.ts && rollup -c rollup.config.mjs",+ "bundle": "npm run clean && npm run build && rollup -c rollup.config.mjs",+ "build": "tsc && node --experimental-strip-types --no-warnings=ExperimentalWarning scripts/post-build.ts","typecheck": "tsc --noEmit","format": "eslint --cache --fix . && prettier --write --cache .","check-format": "eslint --cache . && prettier --check --cache .;",diff --git a/src/third_party/index.ts b/src/third_party/index.tsindex c9995d15..49ef09c5 100644--- a/src/third_party/index.ts+++ b/src/third_party/index.ts@@ -9,7 +9,7 @@ import 'core-js/proposals/iterator-helpers.js';export type {Options as YargsOptions} from 'yargs';export {default as yargs} from 'yargs';export {hideBin} from 'yargs/helpers';-export {debug} from 'debug';+export {default as debug} from 'debug';export type {Debugger} from 'debug';export {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js';export {StdioServerTransport} from '@modelcontextprotocol/sdk/server/stdio.js';