Skip to content

Commit c81eb85

Browse files
committed
fix: change built, entry point and tests
1 parent ee5f39d commit c81eb85

8 files changed

+12
-9
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"marketplace",
1010
"js"
1111
],
12-
"main": "dist/aave-js.umd.js",
13-
"module": "dist/aave-js.es5.js",
14-
"typings": "dist/types/aave-js.d.ts",
12+
"main": "dist/index.umd.js",
13+
"module": "dist/index.es5.js",
14+
"typings": "dist/types/index.d.ts",
1515
"files": [
1616
"dist"
1717
],

rollup.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const pkg = require('./package.json')
1010
const libraryName = 'aave-js'
1111

1212
export default {
13-
input: `src/${libraryName}.ts`,
13+
input: `src/index.ts`,
1414
output: [
1515
{ file: pkg.main, name: camelCase(libraryName), format: 'umd', sourcemap: true },
1616
{ file: pkg.module, format: 'es', sourcemap: true },

src/aave-js.ts src/index.ts

File renamed without changes.

test/BaseService.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import BaseService from '../src/services/BaseService'
33
* BaseService test
44
*/
55
describe('BaseService tests', () => {
6-
const defaultService = new BaseService('86C019FF04C4')
6+
const defaultService = new BaseService('075be6041815e845c921edbbc6201fc4bc2d5f42312fa97a86')
77

88
it('BaseService is instantiable', () => {
99
expect(defaultService).toBeInstanceOf(BaseService)

test/LoanRequest.test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import LoanRequest from '../src/services/LoanRequest'
33
* LoanRequest test
44
*/
55
describe('LoanRequest test', () => {
6-
const request = new LoanRequest('86C019FF04C4', 'http://localhost:3333')
6+
const request = new LoanRequest(
7+
'075be6041815e845c921edbbc6201fc4bc2d5f42312fa97a86',
8+
'https://ethdenver-api.aave.com'
9+
)
710

811
it('LoanRequest is instantiable', () => {
912
expect(request).toBeInstanceOf(LoanRequest)

test/Utils.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Utils from '../src/services/Utils'
33
* Utils test
44
*/
55
describe('Utils test', () => {
6-
const utils = new Utils('86C019FF04C4', 'http://localhost:3333')
6+
const utils = new Utils('075be6041815e845c921edbbc6201fc4bc2d5f42312fa97a86', 'https://ethdenver-api.aave.com')
77

88
it('Utils is instantiable', () => {
99
expect(utils).toBeInstanceOf(Utils)

test/aave-js.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Marketplace } from '../src/aave-js'
1+
import { Marketplace } from '../src/index'
22

33
/**
44
* Marketplace test

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"experimentalDecorators": true,
1212
"emitDecoratorMetadata": true,
1313
"declarationDir": "dist/types",
14-
"outDir": "dist/lib",
14+
"outDir": "dist",
1515
"typeRoots": [
1616
"node_modules/@types"
1717
]

0 commit comments

Comments
 (0)