react-better-html 1.1.1 → 1.1.2

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.
@@ -0,0 +1,6 @@
1
+ type DivProps = {
2
+ children?: React.ReactNode;
3
+ };
4
+ declare function Div({ children }: DivProps): import("react").JSX.Element;
5
+ declare const _default: import("react").MemoExoticComponent<typeof Div>;
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ function Div({ children }) {
5
+ return <div>{children}</div>;
6
+ }
7
+ exports.default = (0, react_1.memo)(Div);
@@ -0,0 +1,2 @@
1
+ import Div from "./components/Div";
2
+ export { Div };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "react-better-html",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A component library for react that is as close to plane html as possible",
5
5
  "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
6
7
  "files": [
7
8
  "dist"
8
9
  ],
@@ -23,7 +24,7 @@
23
24
  "scripts": {
24
25
  "clean": "rimraf dist",
25
26
  "prebuild": "npm run clean",
26
- "build": "babel src --out-dir dist --extensions \".ts,.tsx\"",
27
+ "build": "tsc && babel src --out-dir dist --extensions \".ts,.tsx\"",
27
28
  "predeploy": "npm run build",
28
29
  "deploy": "npm publish"
29
30
  },