-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: make all packages build to be consistent and compatible with c…
…js and esm (#426) * Update ts config for all packages * Update package.json files * Add file prefixes to all imports * Update the ts-node config to use esm * Upgrade typescript * Upgrade typescript settings * Fix the TS warnings and issues * Fix import paths for types * Update import path * Update the import paths in tests * Fix lint errors * Fix lint formatting on config files * Update the benchmark to use ts loader * Disable the browser tests * Fix the loader for the esm * fix: convert prettierrc to yaml * fix: __dirname to ESM * fix: revert TS version to fix download-spec-tests ts-node issue * feat: use spec-test-util for ESM and wget compatibility * fix: remove ts-expect-error after downgrading TS version * fix: update SPEC_TEST_LOCATION * chore: update eslint deps to remove lint error * chore: lint code per updated lint rules from package update * fix: convert to node 20 compatible dirname * fix: convert to node 20 compatible dirname * Cleanup benchmark loader for ts * Update the hasher for benchmark * Revert "Update the hasher for benchmark" This reverts commit fd9adcc. * Update the hasher for benchmark * Update package output dirs * Update hasher path --------- Co-authored-by: matthewkeil <[email protected]>
- Loading branch information
1 parent
b85c774
commit 67bcd88
Showing
299 changed files
with
2,016 additions
and
1,244 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ packages/ssz/spec-tests | |
|
||
benchmark_data/ | ||
.failedTest.txt | ||
*.tsbuildinfo | ||
|
||
node_modules | ||
.yarn/* | ||
|
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,7 @@ | ||
colors: true | ||
require: | ||
- ts-node/register | ||
extension: | ||
- "ts" | ||
loader: | ||
- ts-node/esm |
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,9 @@ | ||
printWidth: 120 | ||
tabWidth: 2 | ||
useTabs: false | ||
semi: true | ||
singleQuote: false | ||
quoteProps: "as-needed" | ||
trailingComma: "es5" | ||
bracketSpacing: false | ||
arrowParens: "always" |
File renamed without changes.
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 was deleted.
Oops, something went wrong.
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
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
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
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,8 @@ | ||
{ | ||
"extends": "../../tsconfig.build.cjs.json", | ||
"include": ["src"], | ||
"compilerOptions": { | ||
"outDir": "lib/cjs", | ||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./types"], | ||
} | ||
} |
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,8 @@ | ||
{ | ||
"extends": "../../tsconfig.build.esm.json", | ||
"include": ["src"], | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./types"], | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
{ | ||
"extends": "../../tsconfig.build.types.json", | ||
"include": ["src"], | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./types"], | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"include": ["src", "test"], | ||
"extends": "./tsconfig.build.json", | ||
"compilerOptions": { | ||
"incremental": true | ||
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./types"], | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,3 +2,5 @@ colors: true | |
require: | ||
- ts-node/register | ||
- ../../setHasher.mjs | ||
loader: | ||
- ts-node/esm |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
67bcd88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for some benchmarks.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold.
🚀🚀 Significant benchmark improvement detected
Full benchmark results