miaoda-game-devkit 0.10.3 → 0.10.4

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.
File without changes
File without changes
@@ -1534,12 +1534,6 @@ function defineReactGameVitestConfig(options) {
1534
1534
  functions: 50,
1535
1535
  statements: 50,
1536
1536
  branches: 40
1537
- },
1538
- "src/game/runtime/**/*.{ts,tsx}": {
1539
- lines: 40,
1540
- functions: 40,
1541
- statements: 40,
1542
- branches: 30
1543
1537
  }
1544
1538
  }
1545
1539
  },
@@ -1500,12 +1500,6 @@ function defineReactGameVitestConfig(options) {
1500
1500
  functions: 50,
1501
1501
  statements: 50,
1502
1502
  branches: 40
1503
- },
1504
- "src/game/runtime/**/*.{ts,tsx}": {
1505
- lines: 40,
1506
- functions: 40,
1507
- statements: 40,
1508
- branches: 30
1509
1503
  }
1510
1504
  }
1511
1505
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miaoda-game-devkit",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Shared React and Phaser game lint plus deterministic testing tools for Miaoda games",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -164,8 +164,46 @@
164
164
  "optional": true
165
165
  }
166
166
  },
167
+ "devDependencies": {
168
+ "@testing-library/jest-dom": "7.0.0",
169
+ "@testing-library/react": "16.3.2",
170
+ "@testing-library/user-event": "14.6.1",
171
+ "@types/eslint": "^9.6.1",
172
+ "@types/estree": "^1.0.9",
173
+ "@types/node": "^24.13.3",
174
+ "@types/react": "19.2.10",
175
+ "clean-publish": "^6.0.5",
176
+ "phaser": "4.2.1",
177
+ "phaser4-rex-plugins": "4.2.0",
178
+ "react": "19.2.4",
179
+ "react-dom": "19.2.4",
180
+ "tsup": "^8.5.1",
181
+ "typescript": "^5.9.3",
182
+ "vite": "8.2.0"
183
+ },
167
184
  "publishConfig": {
168
185
  "registry": "https://registry.npmjs.org/",
169
186
  "access": "public"
187
+ },
188
+ "clean-publish": {
189
+ "fields": [
190
+ "devDependencies",
191
+ "scripts"
192
+ ]
193
+ },
194
+ "scripts": {
195
+ "build": "tsup",
196
+ "release": "pnpm run test && clean-publish",
197
+ "release:dry-run": "pnpm run test && clean-publish --dry-run",
198
+ "release:beta": "pnpm run test && npm version prerelease --preid=beta && clean-publish --tag beta",
199
+ "release:patch": "pnpm run test && npm version patch && clean-publish",
200
+ "release:minor": "pnpm run test && npm version minor && clean-publish",
201
+ "release:major": "pnpm run test && npm version major && clean-publish",
202
+ "lint": "biome lint --config-path biome-config.json src && node scripts/check-line-length.mjs",
203
+ "typecheck": "tsc --noEmit",
204
+ "test": "pnpm run build && pnpm run test:contracts && pnpm run test:mechanics && pnpm run test:published",
205
+ "test:contracts": "vitest run --config dist/lint/contracts.config.mjs",
206
+ "test:mechanics": "node --test mechanics/materialize-game-mechanics-source.test.mjs",
207
+ "test:published": "node scripts/test-published-package.mjs"
170
208
  }
171
- }
209
+ }