Skip to content

Commit

Permalink
feat: add dual CJS/ESM release support (#316)
Browse files Browse the repository at this point in the history
* fix: expose `SortPackageJson` type

* feat: add cjs bundle

* chore: fix lint

* chore: sort .gitignore
  • Loading branch information
unional authored Nov 19, 2024
1 parent 5213340 commit 57aebe2
Show file tree
Hide file tree
Showing 8 changed files with 641 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cjs
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
/.nyc_output
/coverage
/cjs
/coverage
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.nyc_output/
tests/snapshots/
cjs/
tests/snapshots/
2 changes: 2 additions & 0 deletions git-hooks-list_shim.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const gitHooksList = require('git-hooks-list')
module.exports = gitHooksList
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Options {
readonly sortOrder?: readonly string[] | ComparatorFunction
}

interface SortPackageJson {
export interface SortPackageJson {
/**
* Sort packageJson object.
*
Expand Down
Loading

0 comments on commit 57aebe2

Please sign in to comment.