-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
68 lines (68 loc) · 2.63 KB
/
package.json
File metadata and controls
68 lines (68 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"name": "fancy-state-machine",
"version": "1.0.1",
"description": "Type-safe, composable, seamless data flow Finite-state machine implementation in TypeScript",
"author": "Tran Quang Loc <quangloctran99@gmail.com>",
"license": "MIT",
"type": "module",
"main": "./dist/_cjs/index.js",
"module": "./dist/_esm/index.js",
"types": "./dist/_types/index.d.ts",
"typings": "./dist/_types/index.d.ts",
"keywords": [
"type-safe",
"fsm",
"finite state machine",
"state machine",
"state",
"finite automata",
"composable"
],
"files": [
"README.md",
"dist",
"src",
"examples"
],
"repository": {
"type": "git",
"url": "https://github.com/quangloc99/fancy-state-machine"
},
"devDependencies": {
"@types/jest": "^29.5.11",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"embedme": "^1.22.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-unused-imports": "^3.0.0",
"jest": "^29.7.0",
"prettier": "^3.1.1",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"tsx": "^4.7.0",
"typescript": "^5.3.3"
},
"scripts": {
"prepack": "yarn build",
"format": "yarn prettier --write .",
"typecheck": "yarn tsc --noEmit",
"build": "yarn run clean && yarn build:noclean",
"build:noclean": "yarn run build:cjs && yarn run build:esm && yarn run build:types",
"build:cjs": "yarn tsc --project ./tsconfig.build.json --module commonjs --outDir ./dist/_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./dist/_cjs/package.json",
"build:esm": "yarn tsc --project ./tsconfig.build.json --module es2015 --outDir ./dist/_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/_esm/package.json",
"build:types": "yarn tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/_types --emitDeclarationOnly --declaration --declarationMap",
"clean": "yarn rimraf dist/",
"test": "yarn jest",
"test:coverage": "yarn test --coverage --coverageDirectory=coverage",
"lint:nofix": "yarn eslint \"{src,test}/**/*.{ts,js}\" --quiet",
"render-examples": "yarn tsx ./examples/main.ts && yarn embedme README.md",
"lint": "yarn lint:nofix --fix"
},
"packageManager": "yarn@4.0.2",
"dependencies": {
"type-fest": "^4.9.0"
}
}