react-better-html 1.0.4 → 1.0.6

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.
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const react_1 = require("react");
4
- const react_better_html_1 = require("react-better-html");
4
+ // import { Div } from "react-better-html";
5
5
  function App() {
6
- return (<>
7
- <react_better_html_1.Div>Hello there</react_better_html_1.Div>
8
- </>);
6
+ return <>{/* <Div>Hello there</Div> */}</>;
9
7
  }
10
8
  exports.default = (0, react_1.memo)(App);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-better-html",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A component library for react that is as close to plane html as possible",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -17,8 +17,11 @@
17
17
  "url": "git+https://github.com/krissvv/react-better-html.git"
18
18
  },
19
19
  "scripts": {
20
+ "clean": "rimraf dist",
21
+ "prebuild": "npm run clean",
20
22
  "build": "tsc",
21
- "deploy": "npm run build && npm publish"
23
+ "predeploy": "npm run build",
24
+ "deploy": "npm publish"
22
25
  },
23
26
  "keywords": [
24
27
  "component",
@@ -33,6 +36,7 @@
33
36
  "@types/react-dom": "^18.3.0",
34
37
  "react": "^18.0.0",
35
38
  "react-dom": "^18.0.0",
39
+ "rimraf": "^6.0.1",
36
40
  "typescript": "^5.5.3"
37
41
  },
38
42
  "peerDependencies": {
@@ -1,6 +0,0 @@
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;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const react_1 = require("react");
4
- function Div({ children }) {
5
- return <>{children}</>;
6
- }
7
- exports.default = (0, react_1.memo)(Div);
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import Div from "./components/Div";
2
- export { Div };
package/dist/index.js DELETED
@@ -1,8 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Div = void 0;
7
- const Div_1 = __importDefault(require("./components/Div"));
8
- exports.Div = Div_1.default;
File without changes
@@ -1 +0,0 @@
1
- "use strict";