Skip to content

Commit 3fb818d

Browse files
committed
chore: add support for esm and commonjs
1 parent ea707e6 commit 3fb818d

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## 0.2.1
22

3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- add getAffectedPkg function which return the dependents including direct, transitive and circular dependency
8+
39
### Patch Changes
410

511
- docs: fix import dag
File renamed without changes.

lib/index.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import cjs from './index.cjs';
2+
3+
export const dag = cjs.dag;
4+
export const getAffectedPkg = cjs.getAffectedPkg;
5+
6+
export default cjs;

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dag-rs",
3-
"version": "0.2.1",
3+
"version": "0.3.0",
44
"description": "",
55
"main": "lib/index.js",
66
"publishConfig": {
@@ -10,6 +10,12 @@
1010
"lib",
1111
"*.node"
1212
],
13+
"exports": {
14+
".": {
15+
"require": "./lib/index.cjs",
16+
"import": "./lib/index.mjs"
17+
}
18+
},
1319
"scripts": {
1420
"test": "cargo test",
1521
"cargo-build": "cargo build --message-format=json-render-diagnostics > cargo.log",

0 commit comments

Comments
 (0)