-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
104 lines (104 loc) · 2.92 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"name": "pota",
"description": "pota is a small and pluggable Reactive Web Renderer.",
"version": "0.17.171",
"author": "Tito Bouzout",
"homepage": "https://pota.quack.uy/",
"repository": {
"type": "git",
"url": "git+https://github.com/potahtml/pota.git"
},
"type": "module",
"main": "./src/@main.js",
"// Using 'typesVersions' here is the only way we could figure out how to get types working for imports of any subpath without any of the problems other approaches have when not using modeResolution:NodeNext (listed in https://stackoverflow.com/questions/77856692/how-to-publish-plain-jsjsdoc-library-for-typescript-consumers)": "",
"//typesVersions": {
"*": {
"src/*": [
"types/*"
]
}
},
"// These exports require moduleResolution:NodeNext to be enabled in the consumer.": "",
"exports": {
"./babel-preset": {
"require": "./babel-preset/index.cjs",
"import": "./babel-preset/index.js",
"default": "./babel-preset/index.js"
},
"./jsx-runtime": {
"types": "./jsx.d.ts",
"default": "./src/jsx-runtime.js"
},
"./jsx-dev-runtime": {
"types": "./jsx.d.ts",
"default": "./src/jsx-runtime.js"
},
"./html": {
"types": "./types/html.d.ts",
"default": "./src/html.js"
},
"./web": {
"types": "./types/web/@main.d.ts",
"default": "./src/web/@main.js"
},
"./plugin/*": {
"types": "./types/plugin/*.d.ts",
"default": "./src/plugin/*.js"
},
"./store": {
"types": "./types/lib/store.d.ts",
"default": "./src/lib/store.js"
},
"./std": {
"types": "./types/lib/std.d.ts",
"default": "./src/lib/std.js"
},
".": {
"types": "./@main.d.ts",
"node": "./src/lib/reactive.js",
"import": "./src/@main.js",
"default": "./src/@main.js"
}
},
"scripts": {
"dev": "rimraf types/ && concurrently --kill-others \"npm:watch:*\"",
"watch:types": "tsc -w",
"watch:build": "cd babel-preset && rollup -c -w",
"types": "tsc",
"build": "cd babel-preset && rollup -c",
"postinstall": "npm run build",
"prepublishOnly": "npm run types || echo 1"
},
"dependencies": {
"@babel/plugin-syntax-jsx": "^7.25.9",
"@rollup/plugin-terser": "^0.4.4",
"concurrently": "^9.1.0",
"csstype": "^3.1.3",
"parse5": "^7.2.1",
"rimraf": "^6.0.1"
},
"peerDependencies": {
"@babel/core": "^7.26.0",
"colorjs.io": "^0.4.5"
},
"devDependencies": {
"rollup": "^4.29.1",
"typescript": "^5.7.2"
},
"prettier": {
"printWidth": 70,
"useTabs": true,
"semi": false,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid",
"proseWrap": "never",
"endOfLine": "lf",
"singleAttributePerLine": true,
"embeddedLanguageFormatting": "off"
}
}