Skip to content

Commit

Permalink
Use same tsconfig settings as o1js
Browse files Browse the repository at this point in the history
This was creating some issues for projects using the contract on different platforms.
  • Loading branch information
kantp committed Nov 14, 2024
1 parent a27255b commit c7cec06
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 32 deletions.
48 changes: 19 additions & 29 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,24 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"declaration": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"incremental": true,
"lib": ["DOM", "ES2022"],
"module": "ES2022",
"moduleResolution": "Node",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUncheckedIndexedAccess": true,
"outDir": "target",
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": false,
"target": "ES2022",
"typeRoots": ["node_modules/@types"],
"useDefineForClassFields": false
"rootDir": ".",
"outDir": "dist",
"baseUrl": ".", // affects where output files end up
"target": "es2021", // goal: ship *the most modern syntax* that is supported by *all* browsers that support our Wasm
"module": "nodenext", // allow top-level await
"moduleResolution": "nodenext", // comply with node + "type": "module"
"esModuleInterop": true, // to silence jest

"experimentalDecorators": true, // needed for decorators
"emitDecoratorMetadata": true, // needed for decorators
"useDefineForClassFields": false, // ensure correct behaviour of class fields with decorators

"strict": true, // for the full TypeScript experience
"strictPropertyInitialization": false, // to enable generic constructors, e.g. on CircuitValue
"importHelpers": true, // reduces size
"declaration": true, // declaration files are how library consumers get our types
"noEmitOnError": false, // avoid accidentally shipping with type errors
"allowJs": true, // to use JSDoc in some places where TS would be too cumbersome
"sourceMap": true
},
"exclude": ["node_modules", "target"],
"include": ["."]
Expand Down
8 changes: 5 additions & 3 deletions words.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
MYTKN
alexa
approvable
behaviour
devnet
dprint
esbenp
feepayer
harrysolovay
kantp
keypair
Lightnet
mdbook
merkle
michaelfbryan
mina
mintable
MYTKN
nodenext
peaceiris
qwadratic
Rebasable
struct
typecheck
yzhang
zkapp
Lightnet
Rebasable

0 comments on commit c7cec06

Please sign in to comment.