create-mud 2.0.12-type-resolutions-817b0b0e → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- var t=require("create-create-app"),s=require("path");var e={name:"create-mud",version:"2.0.12-type-resolutions-817b0b0e",description:"Create a new MUD project",license:"MIT",author:"Lattice <mud@lattice.xyz>",bin:"dist/cli.js",files:["dist"],scripts:{build:"pnpm run build:js","build:js":"tsup && ./scripts/copy-templates.sh",clean:"pnpm run clean:js","clean:js":"rimraf dist",dev:"tsup --watch",prepublishOnly:"npm run clean && npm run build",test:"pnpm run test:vanilla && pnpm run test:react && pnpm run test:react-ecs && pnpm run test:phaser && pnpm run test:threejs","test:ci":"pnpm run test","test:phaser":"dist/cli.js test-project --template phaser && rimraf test-project","test:react":"dist/cli.js test-project --template react && rimraf test-project","test:react-ecs":"dist/cli.js test-project --template react-ecs && rimraf test-project","test:threejs":"dist/cli.js test-project --template threejs && rimraf test-project","test:vanilla":"dist/cli.js test-project --template vanilla && rimraf test-project"},dependencies:{"create-create-app":"git+https://github.com/holic/create-create-app#74376c59b48a04aabbe94d9cacfe9cb1cecccd63"},devDependencies:{"@types/node":"^18.15.11",tsup:"^6.7.0"},publishConfig:{access:"public",registry:"https://registry.npmjs.org"}};var c=(0,s.resolve)(__dirname,"..","dist","templates");(0,t.create)("create-mud",{templateRoot:c,defaultTemplate:"vanilla",defaultPackageManager:"pnpm",promptForDescription:!1,promptForAuthor:!1,promptForEmail:!1,promptForLicense:!1,promptForTemplate:!0,caveat:({answers:r,packageManager:p})=>`Done! Play in the MUD with \`cd ${r.name}\` and \`${p} run dev\``,extra:{"mud-version":{type:"input",describe:"The version of MUD packages to use, defaults to latest",default:e.version}}});
2
+ var t=require("create-create-app"),s=require("path");var e={name:"create-mud",version:"2.0.12",description:"Create a new MUD project",license:"MIT",author:"Lattice <mud@lattice.xyz>",bin:"dist/cli.js",files:["dist"],scripts:{build:"pnpm run build:js","build:js":"tsup && ./scripts/copy-templates.sh",clean:"pnpm run clean:js","clean:js":"rimraf dist",dev:"tsup --watch",prepublishOnly:"npm run clean && npm run build",test:"pnpm run test:vanilla && pnpm run test:react && pnpm run test:react-ecs && pnpm run test:phaser && pnpm run test:threejs","test:ci":"pnpm run test","test:phaser":"dist/cli.js test-project --template phaser && rimraf test-project","test:react":"dist/cli.js test-project --template react && rimraf test-project","test:react-ecs":"dist/cli.js test-project --template react-ecs && rimraf test-project","test:threejs":"dist/cli.js test-project --template threejs && rimraf test-project","test:vanilla":"dist/cli.js test-project --template vanilla && rimraf test-project"},dependencies:{"create-create-app":"git+https://github.com/holic/create-create-app#74376c59b48a04aabbe94d9cacfe9cb1cecccd63"},devDependencies:{"@types/node":"^18.15.11",tsup:"^6.7.0"},publishConfig:{access:"public",registry:"https://registry.npmjs.org"}};var c=(0,s.resolve)(__dirname,"..","dist","templates");(0,t.create)("create-mud",{templateRoot:c,defaultTemplate:"vanilla",defaultPackageManager:"pnpm",promptForDescription:!1,promptForAuthor:!1,promptForEmail:!1,promptForLicense:!1,promptForTemplate:!0,caveat:({answers:r,packageManager:a})=>`Done! Play in the MUD with \`cd ${r.name}\` and \`${a} run dev\``,extra:{"mud-version":{type:"input",describe:"The version of MUD packages to use, defaults to latest",default:e.version}}});
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@latticexyz/cli": "{{mud-version}}",
16
+ "@latticexyz/common": "{{mud-version}}",
16
17
  "@types/debug": "4.1.7",
17
18
  "@typescript-eslint/eslint-plugin": "7.1.1",
18
19
  "@typescript-eslint/parser": "7.1.1",
@@ -6,9 +6,6 @@
6
6
  /*
7
7
  * By default the template just creates a temporary wallet
8
8
  * (called a burner wallet).
9
- *
10
- * See https://mud.dev/tutorials/minimal/deploy#wallet-managed-address
11
- * for how to use the user's own address instead.
12
9
  */
13
10
  import { getBurnerPrivateKey } from "@latticexyz/common";
14
11
 
@@ -21,16 +18,6 @@ import worlds from "contracts/worlds.json";
21
18
 
22
19
  /*
23
20
  * The supported chains.
24
- * By default, there are only two chains here:
25
- *
26
- * - mudFoundry, the chain running on anvil that pnpm dev
27
- * starts by default. It is similar to the viem anvil chain
28
- * (see https://viem.sh/docs/clients/test.html), but with the
29
- * basefee set to zero to avoid transaction fees.
30
- * - latticeTestnet, our public test network.
31
- *
32
- * See https://mud.dev/tutorials/minimal/deploy#run-the-user-interface
33
- * for instructions on how to add networks.
34
21
  */
35
22
  import { supportedChains } from "./supportedChains";
36
23
 
@@ -1,18 +1,3 @@
1
1
  {
2
- "compilerOptions": {
3
- "module": "esnext",
4
- "moduleResolution": "Bundler",
5
- "target": "es2021",
6
- "lib": ["ESNext"],
7
- "noEmit": true,
8
- "skipLibCheck": true,
9
- "strict": true,
10
- "declaration": true,
11
- "esModuleInterop": true,
12
- "noErrorTruncation": true,
13
- "resolveJsonModule": true,
14
- "forceConsistentCasingInFileNames": true,
15
- "sourceMap": true
16
- },
17
- "exclude": ["**/dist", "**/node_modules", "**/docs", "**/e2e"]
2
+ "extends": "@latticexyz/common/tsconfig.base.json"
18
3
  }
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@latticexyz/cli": "{{mud-version}}",
16
+ "@latticexyz/common": "{{mud-version}}",
16
17
  "@types/debug": "4.1.7",
17
18
  "@typescript-eslint/eslint-plugin": "7.1.1",
18
19
  "@typescript-eslint/parser": "7.1.1",
@@ -7,9 +7,6 @@
7
7
  /*
8
8
  * By default the template just creates a temporary wallet
9
9
  * (called a burner wallet).
10
- *
11
- * See https://mud.dev/tutorials/minimal/deploy#wallet-managed-address
12
- * for how to use the user's own address instead.
13
10
  */
14
11
  import { getBurnerPrivateKey } from "@latticexyz/common";
15
12
 
@@ -22,16 +19,6 @@ import worlds from "contracts/worlds.json";
22
19
 
23
20
  /*
24
21
  * The supported chains.
25
- * By default, there are only two chains here:
26
- *
27
- * - mudFoundry, the chain running on anvil that pnpm dev
28
- * starts by default. It is similar to the viem anvil chain
29
- * (see https://viem.sh/docs/clients/test.html), but with the
30
- * basefee set to zero to avoid transaction fees.
31
- * - latticeTestnet, our public test network.
32
- *
33
- * See https://mud.dev/tutorials/minimal/deploy#run-the-user-interface
34
- * for instructions on how to add networks.
35
22
  */
36
23
  import { supportedChains } from "./supportedChains";
37
24
 
@@ -1,18 +1,3 @@
1
1
  {
2
- "compilerOptions": {
3
- "module": "esnext",
4
- "moduleResolution": "Bundler",
5
- "target": "es2021",
6
- "lib": ["ESNext"],
7
- "noEmit": true,
8
- "skipLibCheck": true,
9
- "strict": true,
10
- "declaration": true,
11
- "esModuleInterop": true,
12
- "noErrorTruncation": true,
13
- "resolveJsonModule": true,
14
- "forceConsistentCasingInFileNames": true,
15
- "sourceMap": true
16
- },
17
- "exclude": ["**/dist", "**/node_modules", "**/docs", "**/e2e"]
2
+ "extends": "@latticexyz/common/tsconfig.base.json"
18
3
  }
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@latticexyz/cli": "{{mud-version}}",
16
+ "@latticexyz/common": "{{mud-version}}",
16
17
  "@types/debug": "4.1.7",
17
18
  "@typescript-eslint/eslint-plugin": "7.1.1",
18
19
  "@typescript-eslint/parser": "7.1.1",
@@ -7,9 +7,6 @@
7
7
  /*
8
8
  * By default the template just creates a temporary wallet
9
9
  * (called a burner wallet).
10
- *
11
- * See https://mud.dev/tutorials/minimal/deploy#wallet-managed-address
12
- * for how to use the user's own address instead.
13
10
  */
14
11
  import { getBurnerPrivateKey } from "@latticexyz/common";
15
12
 
@@ -23,15 +20,6 @@ import worlds from "contracts/worlds.json";
23
20
  /*
24
21
  * The supported chains.
25
22
  * By default, there are only two chains here:
26
- *
27
- * - mudFoundry, the chain running on anvil that pnpm dev
28
- * starts by default. It is similar to the viem anvil chain
29
- * (see https://viem.sh/docs/clients/test.html), but with the
30
- * basefee set to zero to avoid transaction fees.
31
- * - latticeTestnet, our public test network.
32
- *
33
- * See https://mud.dev/tutorials/minimal/deploy#run-the-user-interface
34
- * for instructions on how to add networks.
35
23
  */
36
24
  import { supportedChains } from "./supportedChains";
37
25
 
@@ -1,18 +1,3 @@
1
1
  {
2
- "compilerOptions": {
3
- "module": "esnext",
4
- "moduleResolution": "Bundler",
5
- "target": "es2021",
6
- "lib": ["ESNext"],
7
- "noEmit": true,
8
- "skipLibCheck": true,
9
- "strict": true,
10
- "declaration": true,
11
- "esModuleInterop": true,
12
- "noErrorTruncation": true,
13
- "resolveJsonModule": true,
14
- "forceConsistentCasingInFileNames": true,
15
- "sourceMap": true
16
- },
17
- "exclude": ["**/dist", "**/node_modules", "**/docs", "**/e2e"]
2
+ "extends": "@latticexyz/common/tsconfig.base.json"
18
3
  }
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@latticexyz/cli": "{{mud-version}}",
16
+ "@latticexyz/common": "{{mud-version}}",
16
17
  "@types/debug": "4.1.7",
17
18
  "@typescript-eslint/eslint-plugin": "7.1.1",
18
19
  "@typescript-eslint/parser": "7.1.1",
@@ -7,9 +7,6 @@
7
7
  /*
8
8
  * By default the template just creates a temporary wallet
9
9
  * (called a burner wallet).
10
- *
11
- * See https://mud.dev/tutorials/minimal/deploy#wallet-managed-address
12
- * for how to use the user's own address instead.
13
10
  */
14
11
  import { getBurnerPrivateKey } from "@latticexyz/common";
15
12
 
@@ -22,16 +19,6 @@ import worlds from "contracts/worlds.json";
22
19
 
23
20
  /*
24
21
  * The supported chains.
25
- * By default, there are only two chains here:
26
- *
27
- * - mudFoundry, the chain running on anvil that pnpm dev
28
- * starts by default. It is similar to the viem anvil chain
29
- * (see https://viem.sh/docs/clients/test.html), but with the
30
- * basefee set to zero to avoid transaction fees.
31
- * - latticeTestnet, our public test network.
32
- *
33
- * See https://mud.dev/tutorials/minimal/deploy#run-the-user-interface
34
- * for instructions on how to add networks.
35
22
  */
36
23
  import { supportedChains } from "./supportedChains";
37
24
 
@@ -1,18 +1,3 @@
1
1
  {
2
- "compilerOptions": {
3
- "module": "esnext",
4
- "moduleResolution": "Bundler",
5
- "target": "es2021",
6
- "lib": ["ESNext"],
7
- "noEmit": true,
8
- "skipLibCheck": true,
9
- "strict": true,
10
- "declaration": true,
11
- "esModuleInterop": true,
12
- "noErrorTruncation": true,
13
- "resolveJsonModule": true,
14
- "forceConsistentCasingInFileNames": true,
15
- "sourceMap": true
16
- },
17
- "exclude": ["**/dist", "**/node_modules", "**/docs", "**/e2e"]
2
+ "extends": "@latticexyz/common/tsconfig.base.json"
18
3
  }
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@latticexyz/cli": "{{mud-version}}",
16
+ "@latticexyz/common": "{{mud-version}}",
16
17
  "@types/debug": "4.1.7",
17
18
  "@typescript-eslint/eslint-plugin": "7.1.1",
18
19
  "@typescript-eslint/parser": "7.1.1",
@@ -1,15 +1,11 @@
1
1
  /*
2
2
  * Network specific configuration for the client.
3
3
  * By default connect to the anvil test network.
4
- *
5
4
  */
6
5
 
7
6
  /*
8
7
  * By default the template just creates a temporary wallet
9
8
  * (called a burner wallet).
10
- *
11
- * See https://mud.dev/tutorials/minimal/deploy#wallet-managed-address
12
- * for how to use the user's own address instead.
13
9
  */
14
10
  import { getBurnerPrivateKey } from "@latticexyz/common";
15
11
 
@@ -22,16 +18,6 @@ import worlds from "contracts/worlds.json";
22
18
 
23
19
  /*
24
20
  * The supported chains.
25
- * By default, there are only two chains here:
26
- *
27
- * - mudFoundry, the chain running on anvil that pnpm dev
28
- * starts by default. It is similar to the viem anvil chain
29
- * (see https://viem.sh/docs/clients/test.html), but with the
30
- * basefee set to zero to avoid transaction fees.
31
- * - latticeTestnet, our public test network.
32
- *
33
- * See https://mud.dev/tutorials/minimal/deploy#run-the-user-interface
34
- * for instructions on how to add networks.
35
21
  */
36
22
 
37
23
  import { supportedChains } from "./supportedChains";
@@ -3,7 +3,9 @@
3
3
  "compilerOptions": {
4
4
  "types": ["vite/client"],
5
5
  "target": "ESNext",
6
- "lib": ["ESNext", "DOM"]
6
+ "lib": ["ESNext", "DOM"],
7
+ "jsx": "react-jsx",
8
+ "jsxImportSource": "react"
7
9
  },
8
10
  "include": ["src"]
9
11
  }
@@ -1,18 +1,3 @@
1
1
  {
2
- "compilerOptions": {
3
- "module": "esnext",
4
- "moduleResolution": "Bundler",
5
- "target": "es2021",
6
- "lib": ["ESNext"],
7
- "noEmit": true,
8
- "skipLibCheck": true,
9
- "strict": true,
10
- "declaration": true,
11
- "esModuleInterop": true,
12
- "noErrorTruncation": true,
13
- "resolveJsonModule": true,
14
- "forceConsistentCasingInFileNames": true,
15
- "sourceMap": true
16
- },
17
- "exclude": ["**/dist", "**/node_modules", "**/docs", "**/e2e"]
2
+ "extends": "@latticexyz/common/tsconfig.base.json"
18
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mud",
3
- "version": "2.0.12-type-resolutions-817b0b0e",
3
+ "version": "2.0.12",
4
4
  "description": "Create a new MUD project",
5
5
  "license": "MIT",
6
6
  "author": "Lattice <mud@lattice.xyz>",