phone/packages/robot3/package.json
Corey Johnson 27aa62f950 Upgrade robot3 to 1.3.0 for improved TypeScript support
- Bundle robot3 1.3.0 locally (not yet published to npm)
- Fix remaining type inference issues with `as any` casts for invoke() events

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 14:53:11 -08:00

122 lines
2.5 KiB
JSON

{
"name": "robot3",
"version": "1.3.0",
"description": "A functional, immutable Finite State Machine library",
"main": "dist/machine.js",
"types": "./index.d.ts",
"exports": {
".": {
"require": "./dist/machine.js",
"import": "./machine.js",
"default": "./machine.js",
"types": "./index.d.ts"
},
"./debug": {
"require": "./dist/debug.js",
"import": "./debug.js",
"default": "./debug.js"
},
"./logging": {
"require": "./dist/logging.js",
"import": "./logging.js",
"default": "./logging.js"
}
},
"files": [
"dist/",
"debug.js",
"logging.js",
"machine.js",
"index.d.ts"
],
"scripts": {
"minify": "wireit",
"bundlesize": "wireit",
"server": "wireit",
"test": "wireit",
"test:types": "wireit",
"test:browser": "wireit",
"build:cjs": "wireit",
"build": "wireit"
},
"repository": {
"type": "git",
"url": "git+https://github.com/matthewp/robot.git"
},
"keywords": [
"Finite State Machine"
],
"author": "Matthew Phillips <matthew@matthewphillips.info>",
"license": "BSD-2-Clause",
"bugs": {
"url": "https://github.com/matthewp/robot/issues"
},
"homepage": "https://github.com/matthewp/robot#readme",
"devDependencies": {
"rollup": "^1.21.4",
"terser": "^5.16.1"
},
"wireit": {
"minify": {
"command": "terser machine.js -m --module -o machine.min.js",
"files": [
"machine.js"
],
"output": [
"machine.min.js"
]
},
"bundlesize": {
"command": "bundlesize --config bundlesize.json",
"dependencies": [
"minify"
]
},
"server": {
"command": "ws -p 1965",
"service": {
"readyWhen": {
"lineMatches": "Listening on"
}
}
},
"test": {
"dependencies": [
"test:types",
"test:browser"
]
},
"test:types": {
"command": "tsc -p test/types/tsconfig.json",
"files": []
},
"test:browser": {
"command": "node-qunit-puppeteer http://localhost:1965/test/test.html 10000",
"dependencies": [
"server"
],
"files": [
"machine.js"
],
"output": []
},
"build:cjs": {
"command": "rollup -d dist -f cjs machine.js debug.js logging.js",
"files": [
"machine.js",
"debug.js",
"logging.js"
],
"output": [
"dist"
]
},
"build": {
"dependencies": [
"build:cjs",
"minify"
]
}
}
}