react-frontend-common-components 0.0.18 → 0.0.19

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-frontend-common-components",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "Reusable frontend library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/rollup.config.js CHANGED
@@ -14,16 +14,14 @@ export default [
14
14
  input: "src/index.ts",
15
15
  output: [
16
16
  {
17
- dir: "dist/cjs", // Output directory for CommonJS
17
+ file: packageJson.main, // CommonJS
18
18
  format: "cjs",
19
19
  sourcemap: true,
20
- preserveModules: true, // To keep the folder structure of source files
21
20
  },
22
21
  {
23
- dir: "dist/esm", // Output directory for ES modules
22
+ file: packageJson.module, // ES module
24
23
  format: "esm",
25
24
  sourcemap: true,
26
- preserveModules: true, // To keep the folder structure of source files
27
25
  },
28
26
  ],
29
27
  plugins: [
@@ -39,9 +37,7 @@ export default [
39
37
  // TypeScript declaration files
40
38
  {
41
39
  input: "src/index.ts",
42
- output: {
43
- dir: "dist/types", // Output directory for types
44
- },
40
+ output: [{ file: packageJson.types }],
45
41
  plugins: [dts.default()],
46
42
  external: [/\.css/],
47
43
  },