Skip to content

Update build and typecheck scripts to use local Typescript#1183

Open
bytrangle wants to merge 4 commits intomidnightntwrk:mainfrom
bytrangle:feat_change-build-script
Open

Update build and typecheck scripts to use local Typescript#1183
bytrangle wants to merge 4 commits intomidnightntwrk:mainfrom
bytrangle:feat_change-build-script

Conversation

@bytrangle
Copy link

@bytrangle bytrangle commented Aug 31, 2025

Currently, the build and typecheck scripts in contract directory will invoke the globally installed on the user's machine. If the globally installed Typescript is too old, it may throw an error such as:

Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'esnext'

es2022 is only allowed from Typescript 4.6 onwards.

To prevent errors, change the scripts to invoke the locally installed Typescript as specified in package.json.

@bytrangle bytrangle requested a review from a team as a code owner August 31, 2025 15:45
@CLAassistant
Copy link

CLAassistant commented Aug 31, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 3 committers have signed the CLA.

✅ gilescope
❌ claudebarde
❌ bytrangle
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

@gilescope gilescope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - neat!

@claudebarde claudebarde requested a review from a team as a code owner October 27, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants