Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed May 23, 2024
1 parent 1f1cd70 commit 6ad3e7c
Show file tree
Hide file tree
Showing 34 changed files with 60 additions and 138 deletions.
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
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.

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
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
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
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.

2 changes: 1 addition & 1 deletion packages/create-mud/scripts/copy-templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Find git-aware template files (ignores things like node_modules, etc.)
# and copy them to dist/templates
git ls-files ../../templates | rsync --files-from=- ../../ dist
git ls-files ../../templates | rsync --files-from=- --copy-links ../../ dist

# Replace all MUD package links with mustache placeholder used by create-create-app
# that will be replaced with the latest MUD version number when the template is used
Expand Down
1 change: 1 addition & 0 deletions packages/schema-type/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"dist",
"out",
"foundry.toml",
"src",
"cache"
],
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"dist",
"out",
"foundry.toml",
"src",
"cache"
],
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/world-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dist",
"out",
"foundry.toml",
"src",
"cache"
],
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dist",
"out",
"foundry.toml",
"src",
"cache",
"test/MudTest.t.sol"
],
Expand Down
3 changes: 2 additions & 1 deletion templates/phaser/packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@latticexyz/world": "link:../../../../packages/world",
"contracts": "workspace:*",
"lodash": "^4.17.21",
"phaser": "3.60.0-beta.14",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rxjs": "7.5.5",
Expand All @@ -32,7 +33,7 @@
"zustand": "^4.3.8"
},
"devDependencies": {
"@types/lodash": "^4.14.194",
"@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 { useCallback, useEffect, useMemo, useRef, useState } from "react";
import useResizeObserver, { ResizeHandler } from "use-resize-observer";
import { throttle } from "lodash";
Expand Down
10 changes: 1 addition & 9 deletions templates/phaser/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": "Bundler",
"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 templates/phaser/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": "Preserve",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
}
"extends": "../../tsconfig.json"
}
1 change: 1 addition & 0 deletions templates/phaser/tsconfig.json
10 changes: 1 addition & 9 deletions templates/react-ecs/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": "Bundler",
"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 templates/react-ecs/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": "Preserve",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
}
"extends": "../../tsconfig.json"
}
1 change: 1 addition & 0 deletions templates/react-ecs/tsconfig.json
10 changes: 1 addition & 9 deletions templates/react/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": "Bundler",
"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 templates/react/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": "Preserve",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
}
"extends": "../../tsconfig.json"
}
1 change: 1 addition & 0 deletions templates/react/tsconfig.json
10 changes: 1 addition & 9 deletions templates/threejs/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": "Bundler",
"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 templates/threejs/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": "Preserve",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
}
"extends": "../../tsconfig.json"
}
1 change: 1 addition & 0 deletions templates/threejs/tsconfig.json
13 changes: 2 additions & 11 deletions templates/vanilla/packages/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +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,
"skipLibCheck": true,
"jsx": "react-jsx"
"lib": ["ESNext", "DOM"]
},
"include": ["src"]
}
12 changes: 1 addition & 11 deletions templates/vanilla/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": "Preserve",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
}
"extends": "../../tsconfig.json"
}
1 change: 1 addition & 0 deletions templates/vanilla/tsconfig.json
Loading

0 comments on commit 6ad3e7c

Please sign in to comment.