Skip to content

Commit

Permalink
Fix: ESM was not working on Node, just on Bun (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulocoghi authored Mar 23, 2024
1 parent 1f10e45 commit 2884e8b
Show file tree
Hide file tree
Showing 6 changed files with 1,529 additions and 1,631 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "3.0" ]
pull_request:
branches: [ "3.0" ]

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [20.x, 21.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8.12.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install -g codecov
- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: codecov
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Alumna Backend - Changelog

## v1.0.4 - 2024-03-23

* [Bugfix] Re-build ES module which correctly runs on Bun but not on Node
* Eliminate Babel and work natively as ES module from now on

## v1.0.3 - 2023-09-21

* Ensure Bun compatibility
Expand Down
Binary file removed bun.lockb
Binary file not shown.
Loading

0 comments on commit 2884e8b

Please sign in to comment.