@state-flow/core 1.0.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 ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "@state-flow/core",
3
+ "version": "1.0.0",
4
+ "description": "Type-safe, immutable state management built on signals, flows, and frozen state snapshots.",
5
+ "license": "MIT",
6
+ "author": "Ilya Pirogov",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/ilya-pirogov/stateflow.git"
10
+ },
11
+ "homepage": "https://stateflow.dev",
12
+ "bugs": {
13
+ "url": "https://github.com/ilya-pirogov/stateflow/issues"
14
+ },
15
+ "keywords": [
16
+ "state-management",
17
+ "state-machine",
18
+ "finite-state-machine",
19
+ "fsm",
20
+ "immutable",
21
+ "signals",
22
+ "typescript",
23
+ "type-safe"
24
+ ],
25
+ "main": "./dist/index.js",
26
+ "module": "./dist/index.mjs",
27
+ "types": "./dist/index.d.ts",
28
+ "source": "src/index.ts",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "import": "./dist/index.mjs",
33
+ "require": "./dist/index.js",
34
+ "default": "./dist/index.js"
35
+ }
36
+ },
37
+ "sideEffects": [
38
+ "./dist/index.js",
39
+ "./dist/index.mjs"
40
+ ],
41
+ "engines": {
42
+ "node": ">=18"
43
+ },
44
+ "publishConfig": {
45
+ "access": "public",
46
+ "provenance": true
47
+ },
48
+ "scripts": {
49
+ "clean": "rimraf dist",
50
+ "build": "npm run build:json && tsup && tsc -p tsconfig.dts.json && rimraf dist/examples.d.ts dist/examples.d.ts.map dist/logger-mock.d.ts dist/logger-mock.d.ts.map",
51
+ "build:json": "HASH=$(git rev-parse HEAD 2>/dev/null || echo \"\") && BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo \"\") && echo 'export default { name: \"'${npm_package_name}'\", version: \"'${npm_package_version}'\", commit: \"'${HASH}'\", branch: \"'${BRANCH}'\" };' > src/package-json.ts",
52
+ "watch": "tsup --watch",
53
+ "test": "vitest run",
54
+ "test:watch": "vitest",
55
+ "coverage": "vitest run --coverage",
56
+ "typecheck": "tsc --noEmit -p tsconfig.json",
57
+ "lint": "biome check .",
58
+ "format": "biome format --write .",
59
+ "prepublishOnly": "npm run clean && npm run build"
60
+ },
61
+ "dependencies": {
62
+ "events": "^3.3.0"
63
+ },
64
+ "devDependencies": {
65
+ "@biomejs/biome": "^2.5.0",
66
+ "@types/node": "^22.19.21",
67
+ "@vitest/coverage-v8": "^2.1.9",
68
+ "rimraf": "~3.0.2",
69
+ "tsup": "^8.0.0",
70
+ "typescript": "6.0.3",
71
+ "vitest": "^2.1.0"
72
+ },
73
+ "files": [
74
+ "dist"
75
+ ]
76
+ }