Skip to content

Commit

Permalink
pr followup + add tsconfig paths to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalbdivad authored and holic committed May 23, 2024
1 parent 3bf8220 commit f400d7e
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 71 deletions.
13 changes: 1 addition & 12 deletions examples/minimal/packages/client-phaser/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"types": ["vite/client"],
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Bundler",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true,
"jsx": "react-jsx",
"jsxImportSource": "react"
},
Expand Down
13 changes: 1 addition & 12 deletions examples/minimal/packages/client-react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"types": ["vite/client"],
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Bundler",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true,
"jsx": "react-jsx",
"jsxImportSource": "react"
},
Expand Down
15 changes: 2 additions & 13 deletions examples/minimal/packages/client-vanilla/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"types": ["vite/client"],
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Bundler",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true
"lib": ["ESNext", "DOM"]
},
"include": ["src"]
}
11 changes: 1 addition & 10 deletions examples/minimal/packages/contracts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "Preserve",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "Bundler"
}
"extends": "../../../../tsconfig.json"
}
9 changes: 1 addition & 8 deletions examples/multiple-accounts/packages/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"types": ["vite/client"],
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Bundler",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"skipLibCheck": true,
"jsx": "react-jsx",
"jsxImportSource": "react"
},
Expand Down
11 changes: 1 addition & 10 deletions examples/multiple-accounts/packages/contracts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "Preserve",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "Bundler"
}
"extends": "../../../../tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@types/debug": "^4.1.7",
"@types/ejs": "^3.1.1",
"@types/glob": "^7.2.0",
"@types/node": " 20.12.12",
"@types/node": "^18.15.11",
"@types/openurl": "^1.0.0",
"@types/throttle-debounce": "^5.0.0",
"@types/toposort": "^2.0.6",
Expand Down
3 changes: 1 addition & 2 deletions packages/schema-type/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"types": []
"outDir": "dist"
},
"include": ["src"]
}
2 changes: 1 addition & 1 deletion packages/world/ts/worldEvents.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, it } from "vitest";
import IWorldFactoryAbi from "../out/IWorldFactory.sol/IWorldFactory.abi.json";
import IBaseWorldAbi from "../out/IBaseWorld.sol/IBaseWorld.abi.json";
import { helloWorldEvent, worldDeployedEvent } from "./worldEvents.js";
import { helloWorldEvent, worldDeployedEvent } from "./worldEvents";
import { parseAbiItem, AbiEvent } from "abitype";

function normalizeAbiEvent(event: AbiEvent) {
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

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

0 comments on commit f400d7e

Please sign in to comment.