@cencomalls/cencob2b-storybook 1.0.7 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -1,2 +1,9 @@
1
- import{jsx as r}from"react/jsx-runtime";var e=()=>r("div",{children:r("h1",{children:"Banner"})}),n=e;export{n as Banner};
2
- //# sourceMappingURL=index.js.map
1
+ // src/components/Banner/Banner.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ var Banner = () => {
4
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("h1", { children: "Banner" }) });
5
+ };
6
+ var Banner_default = Banner;
7
+ export {
8
+ Banner_default as Banner
9
+ };
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@cencomalls/cencob2b-storybook",
3
- "version": "1.0.7",
4
- "main": "dist/index.cjs.js",
5
- "module": "dist/index.esm.js",
3
+ "version": "1.0.9",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "type": "module",
8
8
  "sideEffects": false,
9
9
  "scripts": {
10
- "build": "node build.mjs && tsc",
10
+ "build": "esbuild src/index.tsx --bundle --outdir=dist --format=esm --external:react --external:react-dom",
11
+ "prepare": "npm run build",
11
12
  "storybook": "storybook dev",
12
- "build-storybook": "storybook build",
13
- "publish": "npm run build && npm publish --access public"
13
+ "build-storybook": "storybook build"
14
14
  },
15
15
  "keywords": [],
16
16
  "author": "Jonas",
17
17
  "license": "ISC",
18
18
  "description": "",
19
- "dependencies": {
19
+ "peerDependencies": {
20
20
  "react": "^19.0.0",
21
21
  "react-dom": "^19.0.0"
22
22
  },
@@ -26,5 +26,8 @@
26
26
  "@types/react-dom": "^19.0.3",
27
27
  "esbuild": "^0.24.2",
28
28
  "typescript": "^5.7.3"
29
- }
29
+ },
30
+ "files": [
31
+ "dist"
32
+ ]
30
33
  }
package/build.mjs DELETED
@@ -1,12 +0,0 @@
1
- import esbuild from "esbuild";
2
-
3
- esbuild.build({
4
- entryPoints: ["src/index.tsx"],
5
- outdir: "dist",
6
- bundle: true,
7
- minify: true,
8
- sourcemap: true,
9
- format: "esm",
10
- target: ["esnext"],
11
- external: ["react", "react-dom"],
12
- });
@@ -1,9 +0,0 @@
1
- const Banner = () => {
2
- return (
3
- <div>
4
- <h1>Banner</h1>
5
- </div>
6
- );
7
- };
8
-
9
- export default Banner;
@@ -1 +0,0 @@
1
- export { default as Banner } from "./Banner";
@@ -1 +0,0 @@
1
- export * from "./Banner";
package/src/index.tsx DELETED
@@ -1 +0,0 @@
1
- export * from "./components";
package/tsconfig.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "outDir": "dist",
4
- "declaration": true,
5
- "emitDeclarationOnly": true,
6
- "module": "ESNext",
7
- "target": "ESNext",
8
- "jsx": "react-jsx",
9
- "moduleResolution": "node",
10
- "allowSyntheticDefaultImports": true,
11
- "strict": true
12
- },
13
- "include": ["src"],
14
- "exclude": ["**/node_modules", "**/.*/"]
15
- }