Skip to content

Commit f6bd661

Browse files
manujunirisNeylix
authored andcommitted
Created index.js for exporting api
1 parent b2c5250 commit f6bd661

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

aeweb.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { hideBin } from 'yargs/helpers'
55
import about from './commands/about.js'
66
import generate_address from './commands/generate_address.js'
77
import deploy from './commands/deploy.js'
8-
import AEWeb from './lib/api.js'
8+
99

1010
const y = yargs(hideBin(process.argv))
1111

@@ -15,4 +15,3 @@ y.command(deploy).help()
1515

1616
y.parse()
1717

18-
export default AEWeb

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import AEWeb from './lib/api.js'
2+
export default AEWeb

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"bin": {
77
"aeweb": "aeweb.js"
88
},
9+
"exports":{
10+
"import":"./index.js"
11+
},
912
"keywords": [
1013
"archethic",
1114
"web3",

0 commit comments

Comments
 (0)