@johnmorrisdotca/domino 1.0.0 → 1.1.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@johnmorrisdotca/domino",
3
- "version": "1.0.0",
4
- "description": "Dominoes for JavaScript and TypeScript: double-nine, double-twelve and double-fifteen sets, and the full rules of Mexican Train for two to eight players, with a computer player, seeded deals that replay exactly, and a compact saved-game format. Zero dependencies.",
3
+ "version": "1.1.0",
4
+ "description": "Dominoes for JavaScript and TypeScript: double-nine, double-twelve and double-fifteen sets, and the full rules of Mexican Train for two to eight players, with a computer player, seeded deals that replay exactly, a compact saved-game format, the words of the table in English and Japanese, tile sounds and a command line. Zero dependencies.",
5
5
  "keywords": [
6
6
  "dominoes",
7
7
  "domino",
@@ -32,7 +32,24 @@
32
32
  "node",
33
33
  "party-game",
34
34
  "family-game",
35
- "itsutsu"
35
+ "itsutsu",
36
+ "mexican-dominoes",
37
+ "domino-tiles",
38
+ "tabletop",
39
+ "cli",
40
+ "command-line",
41
+ "japanese",
42
+ "i18n",
43
+ "sounds",
44
+ "web-audio",
45
+ "esm",
46
+ "json",
47
+ "game-state",
48
+ "pure-functions",
49
+ "turn-based",
50
+ "hub",
51
+ "boneyard",
52
+ "pips"
36
53
  ],
37
54
  "homepage": "https://github.com/johnmorrisdotca/domino#readme",
38
55
  "repository": {
@@ -54,32 +71,55 @@
54
71
  "types": "./dist/index.d.ts",
55
72
  "import": "./dist/index.js",
56
73
  "default": "./dist/index.js"
74
+ },
75
+ "./tile-sounds": {
76
+ "types": "./dist/tile-sounds.d.ts",
77
+ "import": "./dist/tile-sounds.js",
78
+ "default": "./dist/tile-sounds.js"
79
+ },
80
+ "./sounds": {
81
+ "types": "./dist/sounds.d.ts",
82
+ "import": "./dist/sounds.js",
83
+ "default": "./dist/sounds.js"
57
84
  }
58
85
  },
59
86
  "files": [
60
87
  "dist",
88
+ "bin",
89
+ "docs/credits.md",
61
90
  "README.md",
62
91
  "LICENSE",
63
92
  "CHANGELOG.md"
64
93
  ],
65
94
  "engines": {
66
- "node": ">=20"
95
+ "node": ">=22"
67
96
  },
68
97
  "scripts": {
69
98
  "build": "tsc -p tsconfig.json",
70
99
  "lint": "eslint .",
71
100
  "typecheck": "tsc -p tsconfig.check.json",
72
101
  "test": "vitest run",
102
+ "test:cli": "pnpm build && node scripts/check-cli.mjs",
73
103
  "test:package": "pnpm build && node scripts/check-package.mjs",
104
+ "docs:api": "node scripts/api-write.mjs",
105
+ "docs:make": "node scripts/docs.mjs",
106
+ "sounds": "node scripts/sounds.mjs",
74
107
  "check": "pnpm lint && pnpm typecheck && pnpm test",
75
- "prepublishOnly": "pnpm check && pnpm build"
108
+ "prepublishOnly": "pnpm check && pnpm build",
109
+ "site": "pnpm build && node scripts/site.mjs",
110
+ "pictures": "pnpm site && node scripts/readme-pictures.mjs",
111
+ "test:demo": "pnpm site && playwright test"
76
112
  },
77
113
  "devDependencies": {
78
114
  "@eslint/js": "^9.0.0",
115
+ "@playwright/test": "^1.63.0",
79
116
  "eslint": "^9.0.0",
80
117
  "typescript": "^5.9.0",
81
118
  "typescript-eslint": "^8.0.0",
82
119
  "vitest": "^5.0.0"
83
120
  },
84
- "packageManager": "pnpm@10.11.0"
121
+ "packageManager": "pnpm@10.11.0",
122
+ "bin": {
123
+ "domino": "bin/domino.mjs"
124
+ }
85
125
  }