forked from digitalbazaar/vc
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
54 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
mkdir ./dist/esm | ||
|
||
cat >dist/esm/index.js <<!EOF | ||
import cjsModule from '../index.js'; | ||
export const issue = cjsModule.issue; | ||
export const verify = cjsModule.verify; | ||
export const verifyCredential = cjsModule.verifyCredential; | ||
export const createPresentation = cjsModule.createPresentation; | ||
export const signPresentation = cjsModule.signPresentation; | ||
export const derive = cjsModule.derive; | ||
export const defaultDocumentLoader = cjsModule.defaultDocumentLoader; | ||
!EOF | ||
|
||
cat >dist/esm/package.json <<!EOF | ||
{ | ||
"type": "module" | ||
} | ||
!EOF |
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,14 @@ | ||
import pkg from './package.json'; | ||
export default [ | ||
{ | ||
input: './lib/index.js', | ||
output: [ | ||
{ | ||
dir: 'dist', | ||
format: 'cjs', | ||
preserveModules: true | ||
} | ||
], | ||
external: Object.keys(pkg.dependencies) | ||
} | ||
]; |