create-mud 2.2.17-ffefc8f000769d5ca625dd19290007a853a21788 → 2.2.18-491a5acc8ab6d5e1a65a9845160860199b5173fc

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.
Files changed (31) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/cli.js.map +1 -1
  3. package/package.json +1 -1
  4. package/templates/phaser/.gitignore_ +7 -0
  5. package/templates/phaser/package.json +2 -2
  6. package/templates/phaser/packages/art/.gitignore_ +0 -0
  7. package/templates/phaser/packages/client/.gitignore_ +3 -0
  8. package/templates/phaser/packages/contracts/.gitignore_ +9 -0
  9. package/templates/phaser/packages/contracts/worlds.json +2 -2
  10. package/templates/react/.gitignore_ +16 -0
  11. package/templates/react/mprocs.yaml +1 -1
  12. package/templates/react/package.json +2 -2
  13. package/templates/react/packages/client/.gitignore_ +1 -0
  14. package/templates/react/packages/contracts/.gitignore_ +13 -0
  15. package/templates/react/packages/contracts/worlds.json +2 -2
  16. package/templates/react-ecs/.gitignore_ +16 -0
  17. package/templates/react-ecs/mprocs.yaml +1 -1
  18. package/templates/react-ecs/package.json +3 -2
  19. package/templates/react-ecs/packages/client/.gitignore_ +1 -0
  20. package/templates/react-ecs/packages/contracts/.gitignore_ +13 -0
  21. package/templates/react-ecs/packages/contracts/worlds.json +2 -2
  22. package/templates/threejs/.gitignore_ +7 -0
  23. package/templates/threejs/package.json +3 -3
  24. package/templates/threejs/packages/client/.gitignore_ +3 -0
  25. package/templates/threejs/packages/contracts/.gitignore_ +9 -0
  26. package/templates/threejs/packages/contracts/worlds.json +2 -2
  27. package/templates/vanilla/.gitignore_ +7 -0
  28. package/templates/vanilla/package.json +3 -3
  29. package/templates/vanilla/packages/client/.gitignore_ +3 -0
  30. package/templates/vanilla/packages/contracts/.gitignore_ +9 -0
  31. package/templates/vanilla/packages/contracts/worlds.json +2 -2
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import r from"node:fs/promises";import t from"node:path";import{fileURLToPath as j}from"node:url";import h from"yargs-interactive";import y from"fast-glob";var c={name:"create-mud",version:"2.2.17-ffefc8f000769d5ca625dd19290007a853a21788",description:"Create a new MUD project",license:"MIT",author:"Lattice <mud@lattice.xyz>",type:"module",bin:"bin/cli.js",files:["bin","dist","templates"],scripts:{build:"pnpm run build:js","build:js":"tsup && pnpm run copy-templates",clean:"pnpm run clean:js","clean:js":"shx rm -rf dist","copy-templates":"tsx ./scripts/copy-templates.ts",dev:"tsup --watch",prepublishOnly:"npm run clean && npm run build",test:"pnpm run copy-templates && pnpm vitest --run && 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":"bin/cli.js --name test-project --template phaser && pnpm --dir test-project install && shx rm -rf test-project","test:react":"bin/cli.js --name test-project --template react && pnpm --dir test-project install && shx rm -rf test-project","test:react-ecs":"bin/cli.js --name test-project --template react-ecs && pnpm --dir test-project install && shx rm -rf test-project","test:threejs":"bin/cli.js --name test-project --template threejs && pnpm --dir test-project install && shx rm -rf test-project","test:vanilla":"bin/cli.js --name test-project --template vanilla && pnpm --dir test-project install && shx rm -rf test-project"},dependencies:{"fast-glob":"^3.3.3","yargs-interactive":"^3.0.1"},devDependencies:{"@types/yargs-interactive":"^2.1.6",execa:"^7.0.0"},publishConfig:{access:"public",registry:"https://registry.npmjs.org"}};var o=["react","react-ecs","phaser","threejs","vanilla"];import f from"node:fs/promises";async function m(e){try{return await f.access(e),!0}catch{return!1}}var v=j(import.meta.url),b=t.dirname(v);async function w(){h().usage("$0 [args]").interactive({interactive:{default:!0},name:{describe:"Name your project",type:"input"},template:{describe:"Pick a template",type:"list",choices:o},"mud-version":{type:"input",describe:"The version of MUD packages to use, defaults to latest",default:c.version}}).then(async e=>{if(!e.name)throw new Error("No project name provided.");let s=t.join(process.cwd(),e.name);if(await m(s))throw new Error(`Target directory "${s}" already exists.`);let a=t.join(b,"..","templates",e.template),l=await y("**/*",{cwd:a,dot:!0});for(let p of l){let i=t.join(a,p),n=t.join(s,p);if(await r.mkdir(t.dirname(n),{recursive:!0}),/package\.json$/.test(i)){let u=await r.readFile(i,"utf-8");await r.writeFile(n,u.replaceAll(/{{mud-version}}/g,e.mudVersion),"utf-8")}else await r.copyFile(i,n)}console.log(`
1
+ import s from"node:fs/promises";import t from"node:path";import{fileURLToPath as j}from"node:url";import h from"yargs-interactive";import y from"fast-glob";var c={name:"create-mud",version:"2.2.18-491a5acc8ab6d5e1a65a9845160860199b5173fc",description:"Create a new MUD project",license:"MIT",author:"Lattice <mud@lattice.xyz>",type:"module",bin:"bin/cli.js",files:["bin","dist","templates"],scripts:{build:"pnpm run build:js","build:js":"tsup && pnpm run copy-templates",clean:"pnpm run clean:js","clean:js":"shx rm -rf dist","copy-templates":"tsx ./scripts/copy-templates.ts",dev:"tsup --watch",prepublishOnly:"npm run clean && npm run build",test:"pnpm run copy-templates && pnpm vitest --run && 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":"bin/cli.js --name test-project --template phaser && pnpm --dir test-project install && shx rm -rf test-project","test:react":"bin/cli.js --name test-project --template react && pnpm --dir test-project install && shx rm -rf test-project","test:react-ecs":"bin/cli.js --name test-project --template react-ecs && pnpm --dir test-project install && shx rm -rf test-project","test:threejs":"bin/cli.js --name test-project --template threejs && pnpm --dir test-project install && shx rm -rf test-project","test:vanilla":"bin/cli.js --name test-project --template vanilla && pnpm --dir test-project install && shx rm -rf test-project"},dependencies:{"fast-glob":"^3.3.3","yargs-interactive":"^3.0.1"},devDependencies:{"@types/yargs-interactive":"^2.1.6",execa:"^7.0.0"},publishConfig:{access:"public",registry:"https://registry.npmjs.org"}};var o=["react","react-ecs","phaser","threejs","vanilla"];import f from"node:fs/promises";async function m(e){try{return await f.access(e),!0}catch{return!1}}var b=j(import.meta.url),v=t.dirname(b);async function w(){h().usage("$0 [args]").interactive({interactive:{default:!0},name:{describe:"Name your project",type:"input"},template:{describe:"Pick a template",type:"list",choices:o},"mud-version":{type:"input",describe:"The version of MUD packages to use, defaults to latest",default:c.version}}).then(async e=>{if(!e.name)throw new Error("No project name provided.");let a=t.join(process.cwd(),e.name);if(await m(a))throw new Error(`Target directory "${a}" already exists.`);let n=t.join(v,"..","templates",e.template),l=await y("**/*",{cwd:n,dot:!0});for(let p of l){let r=t.join(n,p),i=t.join(a,p);if(await s.mkdir(t.dirname(i),{recursive:!0}),/package\.json$/.test(r)){let u=await s.readFile(r,"utf-8");await s.writeFile(i,u.replaceAll(/{{mud-version}}/g,e.mudVersion),"utf-8")}else/\.gitignore_$/.test(r)?await s.copyFile(r,i.replace(/_$/,"")):await s.copyFile(r,i)}console.log(`
2
2
  New project created! Run it with:
3
3
 
4
4
  cd ${e.name}
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/bin/cli.ts","../package.json","../src/common.ts","../src/exists.ts"],"sourcesContent":["import fs from \"node:fs/promises\";\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport yargsInteractive from \"yargs-interactive\";\nimport glob from \"fast-glob\";\nimport packageJson from \"../../package.json\";\nimport { templates } from \"../common\";\nimport { exists } from \"../exists\";\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = path.dirname(__filename);\n\nasync function run() {\n yargsInteractive()\n .usage(\"$0 [args]\")\n .interactive({\n interactive: { default: true },\n name: {\n describe: \"Name your project\",\n type: \"input\",\n },\n template: {\n describe: \"Pick a template\",\n type: \"list\",\n choices: templates,\n },\n \"mud-version\": {\n type: \"input\",\n describe: \"The version of MUD packages to use, defaults to latest\",\n default: packageJson.version,\n },\n })\n .then(async (args) => {\n if (!args.name) throw new Error(\"No project name provided.\");\n\n const destDir = path.join(process.cwd(), args.name);\n if (await exists(destDir)) {\n throw new Error(`Target directory \"${destDir}\" already exists.`);\n }\n\n const sourceDir = path.join(__dirname, \"..\", \"templates\", args.template);\n const files = await glob(\"**/*\", { cwd: sourceDir, dot: true });\n\n for (const filename of files) {\n const sourceFile = path.join(sourceDir, filename);\n const destFile = path.join(destDir, filename);\n\n await fs.mkdir(path.dirname(destFile), { recursive: true });\n\n if (/package\\.json$/.test(sourceFile)) {\n const source = await fs.readFile(sourceFile, \"utf-8\");\n await fs.writeFile(destFile, source.replaceAll(/{{mud-version}}/g, args.mudVersion), \"utf-8\");\n } else {\n await fs.copyFile(sourceFile, destFile);\n }\n }\n\n console.log(`\nNew project created! Run it with:\n\n cd ${args.name}\n pnpm install\n pnpm dev\n\nHave fun! For more info, check the docs at https://mud.dev/\n`);\n });\n}\n\nrun();\n","{\n \"name\": \"create-mud\",\n \"version\": \"2.2.17-ffefc8f000769d5ca625dd19290007a853a21788\",\n \"description\": \"Create a new MUD project\",\n \"license\": \"MIT\",\n \"author\": \"Lattice <mud@lattice.xyz>\",\n \"type\": \"module\",\n \"bin\": \"bin/cli.js\",\n \"files\": [\n \"bin\",\n \"dist\",\n \"templates\"\n ],\n \"scripts\": {\n \"build\": \"pnpm run build:js\",\n \"build:js\": \"tsup && pnpm run copy-templates\",\n \"clean\": \"pnpm run clean:js\",\n \"clean:js\": \"shx rm -rf dist\",\n \"copy-templates\": \"tsx ./scripts/copy-templates.ts\",\n \"dev\": \"tsup --watch\",\n \"prepublishOnly\": \"npm run clean && npm run build\",\n \"test\": \"pnpm run copy-templates && pnpm vitest --run && pnpm run test:vanilla && pnpm run test:react && pnpm run test:react-ecs && pnpm run test:phaser && pnpm run test:threejs\",\n \"test:ci\": \"pnpm run test\",\n \"test:phaser\": \"bin/cli.js --name test-project --template phaser && pnpm --dir test-project install && shx rm -rf test-project\",\n \"test:react\": \"bin/cli.js --name test-project --template react && pnpm --dir test-project install && shx rm -rf test-project\",\n \"test:react-ecs\": \"bin/cli.js --name test-project --template react-ecs && pnpm --dir test-project install && shx rm -rf test-project\",\n \"test:threejs\": \"bin/cli.js --name test-project --template threejs && pnpm --dir test-project install && shx rm -rf test-project\",\n \"test:vanilla\": \"bin/cli.js --name test-project --template vanilla && pnpm --dir test-project install && shx rm -rf test-project\"\n },\n \"dependencies\": {\n \"fast-glob\": \"^3.3.3\",\n \"yargs-interactive\": \"^3.0.1\"\n },\n \"devDependencies\": {\n \"@types/yargs-interactive\": \"^2.1.6\",\n \"execa\": \"^7.0.0\"\n },\n \"publishConfig\": {\n \"access\": \"public\",\n \"registry\": \"https://registry.npmjs.org\"\n }\n}\n","// We define these here to keep them in the order we want to present in the CLI.\n// Tests will ensure this list stays up to date.\nexport const templates = [\"react\", \"react-ecs\", \"phaser\", \"threejs\", \"vanilla\"];\n","import fs from \"node:fs/promises\";\n\nexport async function exists(path: string) {\n try {\n await fs.access(path);\n return true;\n } catch {\n return false;\n }\n}\n"],"mappings":"AAAA,OAAOA,MAAQ,mBACf,OAAOC,MAAU,YACjB,OAAS,iBAAAC,MAAqB,WAC9B,OAAOC,MAAsB,oBAC7B,OAAOC,MAAU,YCJjB,IAAAC,EAAA,CACE,KAAQ,aACR,QAAW,kDACX,YAAe,2BACf,QAAW,MACX,OAAU,4BACV,KAAQ,SACR,IAAO,aACP,MAAS,CACP,MACA,OACA,WACF,EACA,QAAW,CACT,MAAS,oBACT,WAAY,kCACZ,MAAS,oBACT,WAAY,kBACZ,iBAAkB,kCAClB,IAAO,eACP,eAAkB,iCAClB,KAAQ,2KACR,UAAW,gBACX,cAAe,iHACf,aAAc,gHACd,iBAAkB,oHAClB,eAAgB,kHAChB,eAAgB,iHAClB,EACA,aAAgB,CACd,YAAa,SACb,oBAAqB,QACvB,EACA,gBAAmB,CACjB,2BAA4B,SAC5B,MAAS,QACX,EACA,cAAiB,CACf,OAAU,SACV,SAAY,4BACd,CACF,ECvCO,IAAMC,EAAY,CAAC,QAAS,YAAa,SAAU,UAAW,SAAS,ECF9E,OAAOC,MAAQ,mBAEf,eAAsBC,EAAOC,EAAc,CACzC,GAAI,CACF,aAAMF,EAAG,OAAOE,CAAI,EACb,EACT,MAAQ,CACN,MAAO,EACT,CACF,CHAA,IAAMC,EAAaC,EAAc,YAAY,GAAG,EAC1CC,EAAYC,EAAK,QAAQH,CAAU,EAEzC,eAAeI,GAAM,CACnBC,EAAiB,EACd,MAAM,WAAW,EACjB,YAAY,CACX,YAAa,CAAE,QAAS,EAAK,EAC7B,KAAM,CACJ,SAAU,oBACV,KAAM,OACR,EACA,SAAU,CACR,SAAU,kBACV,KAAM,OACN,QAASC,CACX,EACA,cAAe,CACb,KAAM,QACN,SAAU,yDACV,QAASC,EAAY,OACvB,CACF,CAAC,EACA,KAAK,MAAOC,GAAS,CACpB,GAAI,CAACA,EAAK,KAAM,MAAM,IAAI,MAAM,2BAA2B,EAE3D,IAAMC,EAAUN,EAAK,KAAK,QAAQ,IAAI,EAAGK,EAAK,IAAI,EAClD,GAAI,MAAME,EAAOD,CAAO,EACtB,MAAM,IAAI,MAAM,qBAAqBA,CAAO,mBAAmB,EAGjE,IAAME,EAAYR,EAAK,KAAKD,EAAW,KAAM,YAAaM,EAAK,QAAQ,EACjEI,EAAQ,MAAMC,EAAK,OAAQ,CAAE,IAAKF,EAAW,IAAK,EAAK,CAAC,EAE9D,QAAWG,KAAYF,EAAO,CAC5B,IAAMG,EAAaZ,EAAK,KAAKQ,EAAWG,CAAQ,EAC1CE,EAAWb,EAAK,KAAKM,EAASK,CAAQ,EAI5C,GAFA,MAAMG,EAAG,MAAMd,EAAK,QAAQa,CAAQ,EAAG,CAAE,UAAW,EAAK,CAAC,EAEtD,iBAAiB,KAAKD,CAAU,EAAG,CACrC,IAAMG,EAAS,MAAMD,EAAG,SAASF,EAAY,OAAO,EACpD,MAAME,EAAG,UAAUD,EAAUE,EAAO,WAAW,mBAAoBV,EAAK,UAAU,EAAG,OAAO,CAC9F,MACE,MAAMS,EAAG,SAASF,EAAYC,CAAQ,CAE1C,CAEA,QAAQ,IAAI;AAAA;AAAA;AAAA,OAGXR,EAAK,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA,CAKf,CACG,CAAC,CACL,CAEAJ,EAAI","names":["fs","path","fileURLToPath","yargsInteractive","glob","package_default","templates","fs","exists","path","__filename","fileURLToPath","__dirname","path","run","yargsInteractive","templates","package_default","args","destDir","exists","sourceDir","files","glob","filename","sourceFile","destFile","fs","source"]}
1
+ {"version":3,"sources":["../src/bin/cli.ts","../package.json","../src/common.ts","../src/exists.ts"],"sourcesContent":["import fs from \"node:fs/promises\";\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport yargsInteractive from \"yargs-interactive\";\nimport glob from \"fast-glob\";\nimport packageJson from \"../../package.json\";\nimport { templates } from \"../common\";\nimport { exists } from \"../exists\";\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = path.dirname(__filename);\n\nasync function run() {\n yargsInteractive()\n .usage(\"$0 [args]\")\n .interactive({\n interactive: { default: true },\n name: {\n describe: \"Name your project\",\n type: \"input\",\n },\n template: {\n describe: \"Pick a template\",\n type: \"list\",\n choices: templates,\n },\n \"mud-version\": {\n type: \"input\",\n describe: \"The version of MUD packages to use, defaults to latest\",\n default: packageJson.version,\n },\n })\n .then(async (args) => {\n if (!args.name) throw new Error(\"No project name provided.\");\n\n const destDir = path.join(process.cwd(), args.name);\n if (await exists(destDir)) {\n throw new Error(`Target directory \"${destDir}\" already exists.`);\n }\n\n const sourceDir = path.join(__dirname, \"..\", \"templates\", args.template);\n const files = await glob(\"**/*\", { cwd: sourceDir, dot: true });\n\n for (const filename of files) {\n const sourceFile = path.join(sourceDir, filename);\n const destFile = path.join(destDir, filename);\n\n await fs.mkdir(path.dirname(destFile), { recursive: true });\n\n if (/package\\.json$/.test(sourceFile)) {\n const source = await fs.readFile(sourceFile, \"utf-8\");\n await fs.writeFile(destFile, source.replaceAll(/{{mud-version}}/g, args.mudVersion), \"utf-8\");\n } else if (/\\.gitignore_$/.test(sourceFile)) {\n await fs.copyFile(sourceFile, destFile.replace(/_$/, \"\"));\n } else {\n await fs.copyFile(sourceFile, destFile);\n }\n }\n\n console.log(`\nNew project created! Run it with:\n\n cd ${args.name}\n pnpm install\n pnpm dev\n\nHave fun! For more info, check the docs at https://mud.dev/\n`);\n });\n}\n\nrun();\n","{\n \"name\": \"create-mud\",\n \"version\": \"2.2.18-491a5acc8ab6d5e1a65a9845160860199b5173fc\",\n \"description\": \"Create a new MUD project\",\n \"license\": \"MIT\",\n \"author\": \"Lattice <mud@lattice.xyz>\",\n \"type\": \"module\",\n \"bin\": \"bin/cli.js\",\n \"files\": [\n \"bin\",\n \"dist\",\n \"templates\"\n ],\n \"scripts\": {\n \"build\": \"pnpm run build:js\",\n \"build:js\": \"tsup && pnpm run copy-templates\",\n \"clean\": \"pnpm run clean:js\",\n \"clean:js\": \"shx rm -rf dist\",\n \"copy-templates\": \"tsx ./scripts/copy-templates.ts\",\n \"dev\": \"tsup --watch\",\n \"prepublishOnly\": \"npm run clean && npm run build\",\n \"test\": \"pnpm run copy-templates && pnpm vitest --run && pnpm run test:vanilla && pnpm run test:react && pnpm run test:react-ecs && pnpm run test:phaser && pnpm run test:threejs\",\n \"test:ci\": \"pnpm run test\",\n \"test:phaser\": \"bin/cli.js --name test-project --template phaser && pnpm --dir test-project install && shx rm -rf test-project\",\n \"test:react\": \"bin/cli.js --name test-project --template react && pnpm --dir test-project install && shx rm -rf test-project\",\n \"test:react-ecs\": \"bin/cli.js --name test-project --template react-ecs && pnpm --dir test-project install && shx rm -rf test-project\",\n \"test:threejs\": \"bin/cli.js --name test-project --template threejs && pnpm --dir test-project install && shx rm -rf test-project\",\n \"test:vanilla\": \"bin/cli.js --name test-project --template vanilla && pnpm --dir test-project install && shx rm -rf test-project\"\n },\n \"dependencies\": {\n \"fast-glob\": \"^3.3.3\",\n \"yargs-interactive\": \"^3.0.1\"\n },\n \"devDependencies\": {\n \"@types/yargs-interactive\": \"^2.1.6\",\n \"execa\": \"^7.0.0\"\n },\n \"publishConfig\": {\n \"access\": \"public\",\n \"registry\": \"https://registry.npmjs.org\"\n }\n}\n","// We define these here to keep them in the order we want to present in the CLI.\n// Tests will ensure this list stays up to date.\nexport const templates = [\"react\", \"react-ecs\", \"phaser\", \"threejs\", \"vanilla\"];\n","import fs from \"node:fs/promises\";\n\nexport async function exists(path: string) {\n try {\n await fs.access(path);\n return true;\n } catch {\n return false;\n }\n}\n"],"mappings":"AAAA,OAAOA,MAAQ,mBACf,OAAOC,MAAU,YACjB,OAAS,iBAAAC,MAAqB,WAC9B,OAAOC,MAAsB,oBAC7B,OAAOC,MAAU,YCJjB,IAAAC,EAAA,CACE,KAAQ,aACR,QAAW,kDACX,YAAe,2BACf,QAAW,MACX,OAAU,4BACV,KAAQ,SACR,IAAO,aACP,MAAS,CACP,MACA,OACA,WACF,EACA,QAAW,CACT,MAAS,oBACT,WAAY,kCACZ,MAAS,oBACT,WAAY,kBACZ,iBAAkB,kCAClB,IAAO,eACP,eAAkB,iCAClB,KAAQ,2KACR,UAAW,gBACX,cAAe,iHACf,aAAc,gHACd,iBAAkB,oHAClB,eAAgB,kHAChB,eAAgB,iHAClB,EACA,aAAgB,CACd,YAAa,SACb,oBAAqB,QACvB,EACA,gBAAmB,CACjB,2BAA4B,SAC5B,MAAS,QACX,EACA,cAAiB,CACf,OAAU,SACV,SAAY,4BACd,CACF,ECvCO,IAAMC,EAAY,CAAC,QAAS,YAAa,SAAU,UAAW,SAAS,ECF9E,OAAOC,MAAQ,mBAEf,eAAsBC,EAAOC,EAAc,CACzC,GAAI,CACF,aAAMF,EAAG,OAAOE,CAAI,EACb,EACT,MAAQ,CACN,MAAO,EACT,CACF,CHAA,IAAMC,EAAaC,EAAc,YAAY,GAAG,EAC1CC,EAAYC,EAAK,QAAQH,CAAU,EAEzC,eAAeI,GAAM,CACnBC,EAAiB,EACd,MAAM,WAAW,EACjB,YAAY,CACX,YAAa,CAAE,QAAS,EAAK,EAC7B,KAAM,CACJ,SAAU,oBACV,KAAM,OACR,EACA,SAAU,CACR,SAAU,kBACV,KAAM,OACN,QAASC,CACX,EACA,cAAe,CACb,KAAM,QACN,SAAU,yDACV,QAASC,EAAY,OACvB,CACF,CAAC,EACA,KAAK,MAAOC,GAAS,CACpB,GAAI,CAACA,EAAK,KAAM,MAAM,IAAI,MAAM,2BAA2B,EAE3D,IAAMC,EAAUN,EAAK,KAAK,QAAQ,IAAI,EAAGK,EAAK,IAAI,EAClD,GAAI,MAAME,EAAOD,CAAO,EACtB,MAAM,IAAI,MAAM,qBAAqBA,CAAO,mBAAmB,EAGjE,IAAME,EAAYR,EAAK,KAAKD,EAAW,KAAM,YAAaM,EAAK,QAAQ,EACjEI,EAAQ,MAAMC,EAAK,OAAQ,CAAE,IAAKF,EAAW,IAAK,EAAK,CAAC,EAE9D,QAAWG,KAAYF,EAAO,CAC5B,IAAMG,EAAaZ,EAAK,KAAKQ,EAAWG,CAAQ,EAC1CE,EAAWb,EAAK,KAAKM,EAASK,CAAQ,EAI5C,GAFA,MAAMG,EAAG,MAAMd,EAAK,QAAQa,CAAQ,EAAG,CAAE,UAAW,EAAK,CAAC,EAEtD,iBAAiB,KAAKD,CAAU,EAAG,CACrC,IAAMG,EAAS,MAAMD,EAAG,SAASF,EAAY,OAAO,EACpD,MAAME,EAAG,UAAUD,EAAUE,EAAO,WAAW,mBAAoBV,EAAK,UAAU,EAAG,OAAO,CAC9F,KAAW,gBAAgB,KAAKO,CAAU,EACxC,MAAME,EAAG,SAASF,EAAYC,EAAS,QAAQ,KAAM,EAAE,CAAC,EAExD,MAAMC,EAAG,SAASF,EAAYC,CAAQ,CAE1C,CAEA,QAAQ,IAAI;AAAA;AAAA;AAAA,OAGXR,EAAK,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA,CAKf,CACG,CAAC,CACL,CAEAJ,EAAI","names":["fs","path","fileURLToPath","yargsInteractive","glob","package_default","templates","fs","exists","path","__filename","fileURLToPath","__dirname","path","run","yargsInteractive","templates","package_default","args","destDir","exists","sourceDir","files","glob","filename","sourceFile","destFile","fs","source"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mud",
3
- "version": "2.2.17-ffefc8f000769d5ca625dd19290007a853a21788",
3
+ "version": "2.2.18-491a5acc8ab6d5e1a65a9845160860199b5173fc",
4
4
  "description": "Create a new MUD project",
5
5
  "license": "MIT",
6
6
  "author": "Lattice <mud@lattice.xyz>",
@@ -0,0 +1,7 @@
1
+ node_modules
2
+
3
+ # mud artifacts
4
+ .mud
5
+ # sqlite indexer data
6
+ *.db
7
+ *.db-journal
@@ -25,7 +25,7 @@
25
25
  "typescript": "5.4.2"
26
26
  },
27
27
  "engines": {
28
- "node": "^18",
29
- "pnpm": "^8 || ^9"
28
+ "node": "^20",
29
+ "pnpm": "^9"
30
30
  }
31
31
  }
File without changes
@@ -0,0 +1,3 @@
1
+ node_modules
2
+ dist
3
+ .DS_Store
@@ -0,0 +1,9 @@
1
+ out/
2
+ cache/
3
+ node_modules/
4
+ bindings/
5
+ artifacts/
6
+ broadcast/
7
+
8
+ # Ignore MUD deploy artifacts
9
+ deploys/**/*.json
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "31337": {
3
- "address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b"
3
+ "address": "0xfDf868Ea710FfD8cd33b829c5AFf79eDd15EcD5f"
4
4
  }
5
- }
5
+ }
@@ -0,0 +1,16 @@
1
+ .DS_Store
2
+ logs
3
+ *.log
4
+
5
+ node_modules
6
+
7
+ .env.*
8
+
9
+ # foundry
10
+ cache
11
+ broadcast
12
+ out/*
13
+ !out/IWorld.sol
14
+ out/IWorld.sol/*
15
+ !out/IWorld.sol/IWorld.abi.json
16
+ !out/IWorld.sol/IWorld.abi.d.json.ts
@@ -8,7 +8,7 @@ procs:
8
8
  shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545
9
9
  deploy-prereqs:
10
10
  cwd: packages/contracts
11
- shell: pnpm deploy-local-prereqs
11
+ shell: pnpm entrykit-deploy
12
12
  env:
13
13
  DEBUG: "mud:*"
14
14
  # Anvil default account (0x70997970C51812dc3A010C7d01b50e0d17dc79C8)
@@ -25,7 +25,7 @@
25
25
  "typescript": "5.4.2"
26
26
  },
27
27
  "engines": {
28
- "node": "^18",
29
- "pnpm": "^8 || ^9"
28
+ "node": "^20",
29
+ "pnpm": "^9"
30
30
  }
31
31
  }
@@ -0,0 +1,13 @@
1
+ # foundry
2
+ cache
3
+ broadcast
4
+ out/*
5
+ !out/IWorld.sol
6
+ out/IWorld.sol/*
7
+ !out/IWorld.sol/IWorld.abi.json
8
+ !out/IWorld.sol/IWorld.abi.d.json.ts
9
+
10
+ # mud
11
+ .mud
12
+ deploys
13
+ *.db*
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "31337": {
3
- "address": "0xfdf868ea710ffd8cd33b829c5aff79edd15ecd5f"
3
+ "address": "0xfDf868Ea710FfD8cd33b829c5AFf79eDd15EcD5f"
4
4
  }
5
- }
5
+ }
@@ -0,0 +1,16 @@
1
+ .DS_Store
2
+ logs
3
+ *.log
4
+
5
+ node_modules
6
+
7
+ .env.*
8
+
9
+ # foundry
10
+ cache
11
+ broadcast
12
+ out/*
13
+ !out/IWorld.sol
14
+ out/IWorld.sol/*
15
+ !out/IWorld.sol/IWorld.abi.json
16
+ !out/IWorld.sol/IWorld.abi.d.json.ts
@@ -8,7 +8,7 @@ procs:
8
8
  shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545
9
9
  deploy-prereqs:
10
10
  cwd: packages/contracts
11
- shell: pnpm deploy-local-prereqs
11
+ shell: pnpm entrykit-deploy
12
12
  env:
13
13
  DEBUG: "mud:*"
14
14
  # Anvil default account (0x70997970C51812dc3A010C7d01b50e0d17dc79C8)
@@ -17,6 +17,7 @@
17
17
  "@latticexyz/explorer": "{{mud-version}}",
18
18
  "@latticexyz/store-indexer": "{{mud-version}}",
19
19
  "@types/debug": "4.1.7",
20
+ "@types/node": "^20",
20
21
  "@typescript-eslint/eslint-plugin": "7.1.1",
21
22
  "@typescript-eslint/parser": "7.1.1",
22
23
  "eslint": "8.57.0",
@@ -25,7 +26,7 @@
25
26
  "typescript": "5.4.2"
26
27
  },
27
28
  "engines": {
28
- "node": "^18",
29
- "pnpm": "^8 || ^9"
29
+ "node": "^20",
30
+ "pnpm": "^9"
30
31
  }
31
32
  }
@@ -0,0 +1,13 @@
1
+ # foundry
2
+ cache
3
+ broadcast
4
+ out/*
5
+ !out/IWorld.sol
6
+ out/IWorld.sol/*
7
+ !out/IWorld.sol/IWorld.abi.json
8
+ !out/IWorld.sol/IWorld.abi.d.json.ts
9
+
10
+ # mud
11
+ .mud
12
+ deploys
13
+ *.db*
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "31337": {
3
- "address": "0xfdf868ea710ffd8cd33b829c5aff79edd15ecd5f"
3
+ "address": "0xfDf868Ea710FfD8cd33b829c5AFf79eDd15EcD5f"
4
4
  }
5
- }
5
+ }
@@ -0,0 +1,7 @@
1
+ node_modules
2
+
3
+ # mud artifacts
4
+ .mud
5
+ # sqlite indexer data
6
+ *.db
7
+ *.db-journal
@@ -17,7 +17,7 @@
17
17
  "@latticexyz/explorer": "{{mud-version}}",
18
18
  "@latticexyz/store-indexer": "{{mud-version}}",
19
19
  "@types/debug": "4.1.7",
20
- "@types/node": "^18",
20
+ "@types/node": "^20",
21
21
  "@typescript-eslint/eslint-plugin": "7.1.1",
22
22
  "@typescript-eslint/parser": "7.1.1",
23
23
  "eslint": "8.57.0",
@@ -26,7 +26,7 @@
26
26
  "typescript": "5.4.2"
27
27
  },
28
28
  "engines": {
29
- "node": "^18",
30
- "pnpm": "^8 || ^9"
29
+ "node": "^20",
30
+ "pnpm": "^9"
31
31
  }
32
32
  }
@@ -0,0 +1,3 @@
1
+ node_modules
2
+ dist
3
+ .DS_Store
@@ -0,0 +1,9 @@
1
+ out/
2
+ cache/
3
+ node_modules/
4
+ bindings/
5
+ artifacts/
6
+ broadcast/
7
+
8
+ # Ignore MUD deploy artifacts
9
+ deploys/**/*.json
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "31337": {
3
- "address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b"
3
+ "address": "0xfDf868Ea710FfD8cd33b829c5AFf79eDd15EcD5f"
4
4
  }
5
- }
5
+ }
@@ -0,0 +1,7 @@
1
+ node_modules
2
+
3
+ # mud artifacts
4
+ .mud
5
+ # sqlite indexer data
6
+ *.db
7
+ *.db-journal
@@ -17,7 +17,7 @@
17
17
  "@latticexyz/explorer": "{{mud-version}}",
18
18
  "@latticexyz/store-indexer": "{{mud-version}}",
19
19
  "@types/debug": "4.1.7",
20
- "@types/node": "^18",
20
+ "@types/node": "^20",
21
21
  "@typescript-eslint/eslint-plugin": "7.1.1",
22
22
  "@typescript-eslint/parser": "7.1.1",
23
23
  "eslint": "8.57.0",
@@ -26,7 +26,7 @@
26
26
  "typescript": "5.4.2"
27
27
  },
28
28
  "engines": {
29
- "node": "^18",
30
- "pnpm": "^8 || ^9"
29
+ "node": "^20",
30
+ "pnpm": "^9"
31
31
  }
32
32
  }
@@ -0,0 +1,3 @@
1
+ node_modules
2
+ dist
3
+ .DS_Store
@@ -0,0 +1,9 @@
1
+ out/
2
+ cache/
3
+ node_modules/
4
+ bindings/
5
+ artifacts/
6
+ broadcast/
7
+
8
+ # Ignore MUD deploy artifacts
9
+ deploys/**/*.json
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "31337": {
3
- "address": "0x8d8b6b8414e1e3dcfd4168561b9be6bd3bf6ec4b"
3
+ "address": "0xfDf868Ea710FfD8cd33b829c5AFf79eDd15EcD5f"
4
4
  }
5
- }
5
+ }