@cencomalls/cencob2b-storybook 1.0.6 → 1.0.8

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
+ };
@@ -0,0 +1,12 @@
1
+ const esbuild = require('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: ['es6'],
11
+ external: ['react', 'react-dom'], // Externaliza React y ReactDOM
12
+ }).catch(() => process.exit(1));
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@cencomalls/cencob2b-storybook",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.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
- "peerDependencies": {
19
+ "dependencies": {
20
20
  "react": "^19.0.0",
21
21
  "react-dom": "^19.0.0"
22
22
  },
package/tsconfig.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "outDir": "dist",
4
- "declaration": true,
5
- "emitDeclarationOnly": true,
3
+ "outDir": "./dist",
6
4
  "module": "ESNext",
7
- "target": "ESNext",
5
+ "target": "ES6",
6
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
+ "declaration": true,
8
8
  "jsx": "react-jsx",
9
+ "strict": true,
9
10
  "moduleResolution": "node",
10
- "allowSyntheticDefaultImports": true,
11
- "strict": true
11
+ "esModuleInterop": true,
12
+ "skipLibCheck": true,
13
+ "forceConsistentCasingInFileNames": true
12
14
  },
13
15
  "include": ["src"],
14
- "exclude": ["**/node_modules", "**/.*/"]
16
+ "exclude": ["node_modules"]
15
17
  }
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
- });