Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add proper ESM exports in package.json #727

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
File renamed without changes.
36 changes: 36 additions & 0 deletions .github/workflows/generated-file-validations.yml
@@ -0,0 +1,36 @@
name: Validate Generated Files

on:
push:
branches:
- main
pull_request:

jobs:
ValidateGeneratedTypingsFiles:
name: Validate Typoings files
runs-on: ubuntu-latest

steps:
- name: Checkout Project
uses: actions/checkout@v3

- name: Use Node.js v18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies
run: npm ci

- name: Build Code
run: npm run build

- name: Validate changes
run: |
git status
if ! git diff-index --quiet HEAD --; then
echo "::error file=src/typings/fuse.d.cts::File did not match generated file after script. Please review and adjust accordingly."
echo "::error file=src/typings/fuse.d.mts::File did not match generated file after script. Please review and adjust accordingly."
exit 1;
fi
File renamed without changes.
5 changes: 4 additions & 1 deletion babel.config.json
@@ -1,4 +1,7 @@
{
"presets": ["@babel/preset-env", "@babel/preset-typescript"],
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-syntax-import-assertions"
]
}
File renamed without changes.
9 changes: 0 additions & 9 deletions dist/fuse.basic.esm.min.js

This file was deleted.