Commit cb4992c8 authored by nanahira's avatar nanahira

recall function to export

parent 7701ed5d
import segment from '@satorijs/element'; import segment from '@satorijs/element';
export { segment as jsx }; import { Dict } from 'cosmokit';
export function jsx(
type: string,
attrs: Dict<any>,
...children: segment.Fragment[]
) {
return segment(type, attrs, ...children);
}
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
"name": "satori-tsx", "name": "satori-tsx",
"version": "1.0.3", "version": "1.0.3",
"license": "MIT", "license": "MIT",
"dependencies": {
"cosmokit": "^1.3.3"
},
"devDependencies": { "devDependencies": {
"@types/jest": "^29.2.3", "@types/jest": "^29.2.3",
"@types/node": "^18.7.17", "@types/node": "^18.7.17",
...@@ -1892,8 +1895,7 @@ ...@@ -1892,8 +1895,7 @@
"node_modules/cosmokit": { "node_modules/cosmokit": {
"version": "1.3.3", "version": "1.3.3",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.3.3.tgz", "resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.3.3.tgz",
"integrity": "sha512-jpEp5zDrGbycu8AdaCjmNNr2J617NAFvAU6GM8o/dJP2/pe80qTbPoflqyJzAuMhiaC6QCXlBP0KCusTsDemPQ==", "integrity": "sha512-jpEp5zDrGbycu8AdaCjmNNr2J617NAFvAU6GM8o/dJP2/pe80qTbPoflqyJzAuMhiaC6QCXlBP0KCusTsDemPQ=="
"peer": true
}, },
"node_modules/cross-spawn": { "node_modules/cross-spawn": {
"version": "7.0.3", "version": "7.0.3",
...@@ -6563,8 +6565,7 @@ ...@@ -6563,8 +6565,7 @@
"cosmokit": { "cosmokit": {
"version": "1.3.3", "version": "1.3.3",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.3.3.tgz", "resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.3.3.tgz",
"integrity": "sha512-jpEp5zDrGbycu8AdaCjmNNr2J617NAFvAU6GM8o/dJP2/pe80qTbPoflqyJzAuMhiaC6QCXlBP0KCusTsDemPQ==", "integrity": "sha512-jpEp5zDrGbycu8AdaCjmNNr2J617NAFvAU6GM8o/dJP2/pe80qTbPoflqyJzAuMhiaC6QCXlBP0KCusTsDemPQ=="
"peer": true
}, },
"cross-spawn": { "cross-spawn": {
"version": "7.0.3", "version": "7.0.3",
......
...@@ -70,5 +70,8 @@ ...@@ -70,5 +70,8 @@
}, },
"peerDependencies": { "peerDependencies": {
"@satorijs/element": "^2.1.0" "@satorijs/element": "^2.1.0"
},
"dependencies": {
"cosmokit": "^1.3.3"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment