Skip to content

Commit b8e3b55

Browse files
authored
Merge pull request #348 from Staffbase/build/eslint-flat-config
build: use eslint flat config
2 parents e1ae1c7 + ff5700d commit b8e3b55

17 files changed

+4231
-5511
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/check-dist.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# `dist/index.js` is a special file in Actions.
1+
# `dist/index.cjs` is a special file in Actions.
22
# When you reference an action with `uses:` in a workflow,
3-
# `index.js` is the code that will run.
3+
# `index.cjs` is the code that will run.
44
# For our project, we generate this file through a build process from other source files.
5-
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
5+
# We need to make sure the checked-in `index.cjs` actually matches what we expect it to be.
66
name: Check dist/
77

88
on:
@@ -36,7 +36,7 @@ jobs:
3636
run: pnpm install --frozen-lockfile --ignore-scripts
3737

3838
- name: Rebuild the dist/ directory
39-
run: pnpm run build
39+
run: pnpm run package
4040

4141
- name: Compare the expected and actual dist/ directories
4242
run: |
@@ -47,7 +47,7 @@ jobs:
4747
fi
4848
id: diff
4949

50-
# If index.js was different than expected, upload the expected version as an artifact
50+
# If index.cjs was different than expected, upload the expected version as an artifact
5151
- uses: actions/upload-artifact@v4
5252
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
5353
with:

0 commit comments

Comments
 (0)