Skip to content

Commit

Permalink
feat: set module as commonjs (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavidop authored Oct 18, 2024
1 parent 2439190 commit 28a4cd4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ jobs:
uses: borales/actions-yarn@v5
with:
cmd: install --frozen-lockfile
- name: 'Setup jq'
uses: dcarbone/install-jq-action@v2
with:
version: '1.7'
force: 'true'
- name: 'Set type module'
run: |
which jq
jq --version
tmp=$(mktemp)
jq '.type = "module"' package.json > "$tmp" && mv "$tmp" package.json
- name: lint
uses: borales/actions-yarn@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"generative-ai"
],
"version": "1.0.0",
"type": "module",
"type": "commonjs",
"main": "lib/cjs/index.js",
"module": "./lib/esm/index.mjs",
"repository": {
Expand Down

0 comments on commit 28a4cd4

Please sign in to comment.