-
Notifications
You must be signed in to change notification settings - Fork 15
fix: update TypeScript init scaffold for ESM tooling #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -365,17 +365,19 @@ fn generate_package_json(name: &str, ts_sdk: TypeScriptSdk) -> String { | |
| "name": "{name}", | ||
| "version": "0.1.0", | ||
| "private": true, | ||
| "type": "module", | ||
| "scripts": {{ | ||
| "check-types": "tsc --noEmit", | ||
| "test": "vitest run" | ||
| }}, | ||
| "dependencies": {{ | ||
| "@blueshift-gg/quasar-svm": "^0.1.11", | ||
| {solana_dep} | ||
| }}, | ||
| "devDependencies": {{ | ||
| "@types/node": "^22.0.0", | ||
| "@types/node": "^22.13.0", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This version of Node stabilized the WebCrypto api. |
||
| "typescript": "^5.9.3", | ||
| "vitest": "^3.1.0" | ||
| "vitest": "^4.1.1" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's use the latest version |
||
| }} | ||
| }} | ||
| "# | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,12 +76,13 @@ pub enum MyError { | |
|
|
||
| pub(super) const TS_TEST_TSCONFIG: &str = r#"{ | ||
| "compilerOptions": { | ||
| "target": "es2020", | ||
| "module": "commonjs", | ||
| "strict": true, | ||
| "esModuleInterop": true, | ||
| "skipLibCheck": true, | ||
| "module": "preserve", | ||
| "moduleResolution": "bundler", | ||
| "resolveJsonModule": true, | ||
| "skipLibCheck": true, | ||
| "strict": true, | ||
| "target": "ESNext", | ||
|
Comment on lines
+80
to
+85
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| "types": ["node"] | ||
| }, | ||
| "include": ["tests/*.test.ts"] | ||
|
|
||

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.
Having quick access to a type check is useful, it helps find issues like the one fixed in #82