Skip to content

Commit

Permalink
fix: add cjs support
Browse files Browse the repository at this point in the history
  • Loading branch information
ASafaeirad committed Oct 19, 2024
1 parent 55f82d3 commit 7596f3f
Show file tree
Hide file tree
Showing 6 changed files with 2,391 additions and 186 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:

- run: npm ci
- run: npm test
- run: npm run build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ coverage/

# production
dist/
cjs/

# dev tools
/.idea
Expand Down
5 changes: 5 additions & 0 deletions build.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
entries: [{ input: './src', outDir: './cjs', format: 'cjs', builder: 'mkdist', declaration: false }],
});
Loading

0 comments on commit 7596f3f

Please sign in to comment.