-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
79 lines (79 loc) · 2.38 KB
/
package.json
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
69
70
71
72
73
74
75
76
77
78
79
{
"name": "twyx",
"author": "Evan Jacobs <[email protected]> (https://probablyup.com)",
"contributors": [],
"version": "0.1.4",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/probablyup/twyx"
},
"publishConfig": {
"access": "public"
},
"type": "module",
"main": ".generated/core.js",
"types": ".generated/core.d.ts",
"files": [
".generated",
"react/package.json",
"transformer/package.json",
"README.md",
"LICENSE"
],
"sideEffects": false,
"dependencies": {
"csstype": "^3.1.2",
"tailwindcss": "^3.3.3"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@types/debug": "^4.1.8",
"@types/escodegen-jsx": "npm:@types/escodegen",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@types/react-test-renderer": "^18.0.2",
"ast-types": "^0.14.2",
"bun-types": "^1.0.1",
"bundlemon": "^2.0.2",
"concurrently": "^8.2.1",
"debug": "^4.3.4",
"escodegen-jsx": "^0.1.0-1.4.2dev",
"espree": "^9.6.1",
"prettier": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"typescript": "^5.2.2",
"unquote": "^1.1.1"
},
"scripts": {
"prepare": "bun compile:colors",
"prepublishOnly": "bun compile",
"check:unit": "bun test",
"check:size": "bundlemon",
"precompile": "rm -rf .generated",
"compile": "bun compile:colors && bun compile:lib && bun compile:transformer && bun compile:types && bun check:size",
"compile:colors": "bun scripts/generate-colors.ts",
"compile:lib": "bun build ./core.ts ./react/index.tsx --external=* --outdir=.generated --sourcemap=external --minify",
"compile:transformer": "bun build ./transformer/index.ts --outdir=.generated/transformer --sourcemap=external --minify",
"postcompile:lib": "bun check:size",
"compile:demo:css": "tailwindcss -c tailwind.config.ts -i demo/style.css -o demo/public/style.generated.css --minify",
"compile:types": "tsc -p tsconfig.build.json",
"dev": "concurrently 'bun --watch scripts/generate-colors.ts' 'bun compile:demo:css --watch'",
"release": "bun compile && changeset publish"
},
"bundlemon": {
"baseDir": ".generated",
"files": [
{
"path": "./core.js",
"maxSize": "3 kB"
},
{
"path": "./react/index.js",
"maxSize": "3 kB"
}
]
}
}