Skip to content

Commit

Permalink
Fix build esm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Oct 11, 2023
1 parent 8ebcd27 commit 8710ac8
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workspace-powered-by.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: () Generate Powered-By
name: (workspace) Generate Powered-By
on:
push:

Expand Down
2 changes: 0 additions & 2 deletions duplicate-dependencies-report.md

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/massa-web3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@babel/preset-env": "^7.22.15",
"@massalabs/eslint-config": "^0.0.9",
"@massalabs/prettier-config-as": "^0.0.2",
"@massalabs/web3-utils": "^1.4.1",
"@massalabs/web3-utils": "^1.4.2",
"@types/bn.js": "^5.1.1",
"@types/jest": "^29.5.1",
"@types/node": "^18.13.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/massa-web3/src/utils/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class Timeout {
}
private isCleared: boolean;
private isCalled: boolean;
private timeoutHook: NodeJS.Timer;
private timeoutHook: NodeJS.Timeout;

/**
* Clears the timeout so that the callback function is not called.
Expand Down Expand Up @@ -62,7 +62,7 @@ export class Interval {
}
private isCleared: boolean;
private isCalled: boolean;
private intervalHook: NodeJS.Timer;
private intervalHook: NodeJS.Timeout;

/**
* Clears the interval so that the callback function is not called anymore.
Expand Down
23 changes: 17 additions & 6 deletions packages/massa-web3/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
"downlevelIteration": true,
"esModuleInterop": true,
"outDir": "dist",
"types": ["node", "jest"],
"typeRoots": ["node_modules/@types"],
"types": [
"node",
"jest"
],
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es7",
"es6",
Expand All @@ -42,7 +47,9 @@
],
"baseUrl": ".",
"paths": {
"@massalabs/massa-web3": ["./dist/esm/index.js"],
"@massalabs/massa-web3": [
"./dist/esm/index.js"
],
}
},
"lib": [
Expand All @@ -58,8 +65,12 @@
"esnext",
"esnext.asynciterable"
],
"files": ["./node_modules/@types/node/index.d.ts"],
"include": ["./src/**/*.ts"],
"files": [
"../../node_modules/@types/node/index.d.ts"
],
"include": [
"./src/**/*.ts"
],
"exclude": [
"./node_modules/**/*",
"typings/browser.d.ts",
Expand All @@ -71,4 +82,4 @@
"typings",
"./dist/**/*"
]
}
}
19 changes: 14 additions & 5 deletions packages/web3-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
"downlevelIteration": true,
"esModuleInterop": true,
"outDir": "dist",
"types": ["node", "jest"],
"typeRoots": ["node_modules/@types"],
"types": [
"node",
"jest"
],
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es7",
"es6",
Expand Down Expand Up @@ -54,8 +59,12 @@
"esnext",
"esnext.asynciterable"
],
"files": ["./node_modules/@types/node/index.d.ts"],
"include": ["./src/**/*.ts"],
"files": [
"../../node_modules/@types/node/index.d.ts"
],
"include": [
"./src/**/*.ts"
],
"exclude": [
"./node_modules/**/*",
"typings/browser.d.ts",
Expand All @@ -67,4 +76,4 @@
"typings",
"./dist/**/*"
]
}
}

0 comments on commit 8710ac8

Please sign in to comment.