Skip to content

Commit

Permalink
build: clean up TS build pipeline (#2828)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Ingersoll <[email protected]>
  • Loading branch information
ssalbdivad and holic authored May 23, 2024
1 parent c10c9fb commit 96e7bf4
Show file tree
Hide file tree
Showing 133 changed files with 397 additions and 932 deletions.
26 changes: 26 additions & 0 deletions .changeset/selfish-olives-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
"@latticexyz/abi-ts": patch
"@latticexyz/block-logs-stream": patch
"@latticexyz/cli": patch
"@latticexyz/common": patch
"@latticexyz/config": patch
"@latticexyz/dev-tools": patch
"@latticexyz/faucet": patch
"@latticexyz/gas-report": patch
"@latticexyz/protocol-parser": patch
"@latticexyz/query": patch
"@latticexyz/react": patch
"@latticexyz/recs": patch
"@latticexyz/schema-type": patch
"@latticexyz/store-indexer": patch
"@latticexyz/store-sync": patch
"@latticexyz/store": patch
"@latticexyz/utils": patch
"@latticexyz/world-modules": patch
"@latticexyz/world": patch
"create-mud": patch
"solhint-config-mud": patch
"solhint-plugin-mud": patch
---

Removed TS source from published packages in favor of DTS in an effort to improve TS performance.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_STORE

dist
node_modules
package-lock.json
yarn.lock
Expand Down
2 changes: 1 addition & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
Expand Down
3 changes: 0 additions & 3 deletions e2e/packages/client-vanilla/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion e2e/packages/client-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@latticexyz/world": "link:../../../packages/world",
"async-mutex": "^0.4.0",
"contracts": "workspace:*",
"lodash": "^4.17.21",
"mobx": "^6.7.0",
"nice-grpc": "^2.0.1",
"nice-grpc-web": "^2.0.1",
Expand Down
19 changes: 4 additions & 15 deletions e2e/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": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true
"types": ["vite/client"],
"outDir": "dist"
},
"include": ["src"]
"include": "src"
}
13 changes: 0 additions & 13 deletions e2e/packages/contracts/tsconfig.json

This file was deleted.

14 changes: 2 additions & 12 deletions e2e/packages/sync-test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true
"outDir": "dist"
}
}
8 changes: 0 additions & 8 deletions e2e/pnpm-lock.yaml

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

10 changes: 2 additions & 8 deletions examples/faucet-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"esModuleInterop": true,
"noEmit": true,
"skipLibCheck": true
"outDir": "dist"
}
}
10 changes: 2 additions & 8 deletions examples/indexer-client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"esModuleInterop": true,
"noEmit": true,
"skipLibCheck": true
"outDir": "dist"
}
}
2 changes: 2 additions & 0 deletions examples/minimal/packages/client-phaser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"mobx": "^6.7.0",
"nice-grpc": "^2.0.1",
"nice-grpc-web": "^2.0.1",
"phaser": "3.60.0-beta.14",
"proxy-deep": "^3.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -39,6 +40,7 @@
"zustand": "^4.3.8"
},
"devDependencies": {
"@types/lodash": "^4.17.4",
"@types/react": "18.2.22",
"@types/react-dom": "18.2.7",
"@types/styled-components": "^5.1.26",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Phaser from "phaser";
import {
defineSceneConfig,
AssetType,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Phaser from "phaser";
import { defineComponentSystem } from "@latticexyz/recs";
import { PhaserLayer } from "../createPhaserLayer";
import { Animations, Sprites } from "../constants";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Phaser from "phaser";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import useResizeObserver, { ResizeHandler } from "use-resize-observer";
import { throttle } from "lodash";
Expand Down
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": "Node",
"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
1 change: 0 additions & 1 deletion examples/minimal/packages/client-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"@latticexyz/world": "link:../../../../packages/world",
"async-mutex": "^0.4.0",
"contracts": "workspace:*",
"lodash": "^4.17.21",
"mobx": "^6.7.0",
"nice-grpc": "^2.0.1",
"nice-grpc-web": "^2.0.1",
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": "Node",
"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
1 change: 0 additions & 1 deletion examples/minimal/packages/client-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@latticexyz/world": "link:../../../../packages/world",
"async-mutex": "^0.4.0",
"contracts": "workspace:*",
"lodash": "^4.17.21",
"mobx": "^6.7.0",
"nice-grpc": "^2.0.1",
"nice-grpc-web": "^2.0.1",
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": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true
"lib": ["ESNext", "DOM"]
},
"include": ["src"]
}
12 changes: 1 addition & 11 deletions examples/minimal/packages/contracts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
// Visit https://aka.ms/tsconfig.json for all config options
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
}
"extends": "../../../../tsconfig.json"
}
17 changes: 11 additions & 6 deletions examples/minimal/pnpm-lock.yaml

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

10 changes: 1 addition & 9 deletions examples/multiple-accounts/packages/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"types": ["vite/client"],
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"skipLibCheck": true,
"jsx": "react-jsx",
"jsxImportSource": "react"
},
Expand Down
12 changes: 1 addition & 11 deletions examples/multiple-accounts/packages/contracts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
// Visit https://aka.ms/tsconfig.json for all config options
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
}
"extends": "../../../../tsconfig.json"
}
Loading

0 comments on commit 96e7bf4

Please sign in to comment.