@side-quest/bun-runner 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @side-quest/bun-runner
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix import.meta.main being transformed to \_\_require by adding target: 'bun' to bunup config
8
+
9
+ The bunup bundler was transforming `import.meta.main` into CommonJS-style `__require.main == __require.module`, but the output format is ESM where `__require` doesn't exist. Adding `target: 'bun'` preserves Bun-specific features and adds the `// @bun` pragma.
10
+
3
11
  ## 1.0.1
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ function parseBunTestOutput(output) {
38
38
  }
39
39
  continue;
40
40
  }
41
- if (line.includes("") || line.startsWith("FAIL ")) {
41
+ if (line.includes("\u2717") || line.startsWith("FAIL ")) {
42
42
  if (currentFailure)
43
43
  failures.push(currentFailure);
44
44
  currentFailure = {
@@ -379,7 +379,7 @@ tool("bun_testCoverage", {
379
379
  logger: createLoggerAdapter(mcpLogger),
380
380
  createCid: createCorrelationId
381
381
  }));
382
- if (__require.main == __require.module) {
382
+ if (import.meta.main) {
383
383
  startServer("bun-runner", {
384
384
  version: "1.0.0",
385
385
  fileLogging: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@side-quest/bun-runner",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Bun test runner MCP server — structured, token-efficient test output for Claude Code",
5
5
  "author": {
6
6
  "name": "Nathan Vale",