Skip to content
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f054321
chore: enable esModuleInterop
taeold Oct 26, 2025
aa4ac1f
chore: enable esModuleInterop
taeold Oct 26, 2025
755290d
feat: enable ESM support via dual-publishing
taeold Oct 26, 2025
4fc93a4
ci: add packaging test workflow
taeold Oct 26, 2025
888da3d
chore: enable esModuleInterop
taeold Oct 26, 2025
64d9985
chore: enable esModuleInterop
taeold Oct 26, 2025
7fb0fa3
feat: enable ESM support via dual-publishing
taeold Oct 26, 2025
b3b4b1d
ci: add packaging test workflow
taeold Oct 26, 2025
0f00425
regen package-lock.json
taeold Oct 28, 2025
22adae1
Merge branch 'esm-js-extensions' of https://github.com/firebase/fireb…
taeold Oct 28, 2025
499a234
regen package-lock.json
taeold Oct 28, 2025
06fc50c
undo bad rebase
taeold Oct 28, 2025
6ed4b25
add new scripts in the eslint config.
taeold Oct 28, 2025
773e51e
fix github workflows.
taeold Oct 28, 2025
892cb42
fix tsdown, fix tests.
taeold Oct 28, 2025
1d25df0
fix tests.
taeold Oct 28, 2025
63b0501
fixup eslint setup
taeold Oct 28, 2025
ca2a25a
clean up type generation pipeline
taeold Oct 28, 2025
c44a38a
chore: restore CJS output to lib/ root for backward compatibility
taeold Oct 28, 2025
403cbf2
fix bin paths.
taeold Oct 29, 2025
0b12e4d
Merge branch 'next' into esm-js-extensions
taeold Oct 30, 2025
9aa6b09
Merge remote-tracking branch 'origin/next' into esm-js-extensions
taeold Oct 30, 2025
285ce48
Merge remote-tracking branch 'origin/next' into esm-js-extensions
taeold Nov 3, 2025
1dabb2c
Add comment explaining use of tsc.
taeold Nov 3, 2025
8636431
Merge branch 'next' into esm-js-extensions
taeold Nov 3, 2025
ea0a0d6
nit
taeold Nov 3, 2025
d23d56f
respond to pr reviews.
taeold Nov 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 59 additions & 20 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,36 @@ jobs:
strategy:
matrix:
node-version:
- 24.x
- 22.x
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run lint

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: npm
- run: npm ci
- run: npm run build
- run: npm pack
- uses: actions/upload-artifact@v4
with:
name: lib
path: lib/
- uses: actions/upload-artifact@v4
with:
name: tarball
path: firebase-functions-*.tgz

unit:
runs-on: ubuntu-latest
strategy:
Expand All @@ -35,19 +54,16 @@ jobs:
- 22.x
- 24.x
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
cache: npm
- run: npm ci
- run: npm run test

integration:
needs: "unit"
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -57,14 +73,37 @@ jobs:
- 22.x
- 24.x
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
cache: npm
- run: npm ci
- uses: actions/download-artifact@v4
with:
name: lib
path: lib
- run: npm run test:bin
env:
SKIP_BUILD: true

packaging:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18.x
- 20.x
- 22.x
- 24.x
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/download-artifact@v4
with:
name: tarball
path: .
- run: chmod +x ./scripts/test-packaging.sh && ./scripts/test-packaging.sh firebase-functions-*.tgz
4 changes: 3 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ module.exports = [
"dist/",
"spec/fixtures/",
"scripts/**/*.js",
"scripts/**/*.mjs",
"protos/",
".prettierrc.js",
"eslint.config.js",
"eslint.config.*",
"tsdown.config.*",
"scripts/bin-test/sources/esm-ext/index.mjs",
],
},
Expand Down
Loading
Loading