Skip to content

Commit

Permalink
Use top-level await for bun runtime wrapper (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikingair authored Jan 15, 2024
1 parent 4db508f commit fbc780b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.4.1] - 2024-01-15

### Fixed

- Use top-level await for Bun runtime wrapper to support top-level await in used CLI main code

## [2.4.0] - 2024-01-13

### Added
Expand Down
2 changes: 1 addition & 1 deletion brocolito/bin/build-bun.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ await createBinFile((binFile) =>
`#!/usr/bin/env bun
global.__BROCOLITO__=${JSON.stringify(GLOBAL_STATE)};
require('../../src/main');
await import("../../src/main");
`,
),
);
Expand Down
2 changes: 1 addition & 1 deletion brocolito/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "brocolito",
"version": "2.4.0",
"version": "2.4.1",
"description": "Create type-safe CLIs to align local development and pipeline workflows",
"main": "dist/brocolito.cjs",
"module": "dist/brocolito.mjs",
Expand Down

0 comments on commit fbc780b

Please sign in to comment.