Skip to content

Commit 17b2edc

Browse files
authored
build: do not bundle by default (#488)
The CI jobs will still bundle by default but I think the risk of the differences between the bundled and unbundled version is fairly low for local development.
1 parent 8e56307 commit 17b2edc

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/publish-to-npm-on-tag.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
- name: Install dependencies
4444
run: npm ci
4545

46-
- name: Build
47-
run: npm run build
46+
- name: Build and bundle
47+
run: npm run bundle
4848
env:
4949
NODE_ENV: 'production'
5050

@@ -76,8 +76,8 @@ jobs:
7676
- name: Install dependencies
7777
run: npm ci
7878

79-
- name: Build
80-
run: npm run build
79+
- name: Build and bundle
80+
run: npm run bundle
8181
env:
8282
NODE_ENV: 'production'
8383

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: npm ci
4242

4343
- name: Build
44-
run: npm run build
44+
run: npm run bundle
4545

4646
- name: Set up Node.js
4747
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"main": "index.js",
88
"scripts": {
99
"clean": "node -e \"require('fs').rmSync('build', {recursive: true, force: true})\"",
10-
"build": "npm run clean && tsc && node --experimental-strip-types --no-warnings=ExperimentalWarning scripts/post-build.ts && rollup -c rollup.config.mjs",
10+
"bundle": "npm run clean && npm run build && rollup -c rollup.config.mjs",
11+
"build": "tsc && node --experimental-strip-types --no-warnings=ExperimentalWarning scripts/post-build.ts",
1112
"typecheck": "tsc --noEmit",
1213
"format": "eslint --cache --fix . && prettier --write --cache .",
1314
"check-format": "eslint --cache . && prettier --check --cache .;",

src/third_party/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'core-js/proposals/iterator-helpers.js';
99
export type {Options as YargsOptions} from 'yargs';
1010
export {default as yargs} from 'yargs';
1111
export {hideBin} from 'yargs/helpers';
12-
export {debug} from 'debug';
12+
export {default as debug} from 'debug';
1313
export type {Debugger} from 'debug';
1414
export {McpServer} from '@modelcontextprotocol/sdk/server/mcp.js';
1515
export {StdioServerTransport} from '@modelcontextprotocol/sdk/server/stdio.js';

0 commit comments

Comments
 (0)