This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose a consistent API for both ESM and CJS
- Loading branch information
1 parent
3638638
commit 1b2cc54
Showing
12 changed files
with
303 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ Dockerfile | |
# white-list files we want to process | ||
!*.js | ||
!*.md | ||
!*.mjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import assert from 'assert'; | ||
|
||
// eslint-disable-next-line import/no-unresolved | ||
import signAddon from 'sign-addon'; | ||
|
||
assert.deepEqual( | ||
Object.keys(signAddon).sort(), | ||
['signAddon', 'signAddonAndExit'].sort(), | ||
); | ||
assert.equal(typeof signAddon.signAddon, 'function'); | ||
assert.equal(typeof signAddon.signAddonAndExit, 'function'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const assert = require('assert'); | ||
|
||
// @ts-ignore | ||
const signAddon = require('sign-addon'); // eslint-disable-line import/no-unresolved | ||
|
||
assert.deepEqual( | ||
Object.keys(signAddon).sort(), | ||
['signAddon', 'signAddonAndExit'].sort(), | ||
); | ||
assert.equal(typeof signAddon.signAddon, 'function'); | ||
assert.equal(typeof signAddon.signAddonAndExit, 'function'); |
Oops, something went wrong.