dhre-component-lib 0.0.8 → 0.1.0

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": "dhre-component-lib",
3
- "version": "0.0.8",
3
+ "version": "0.1.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -49,7 +49,11 @@
49
49
  "react": "^18.3.1",
50
50
  "react-dom": "^18.3.1"
51
51
  },
52
- "main": "dist/cjs/index.js",
52
+ "main": "dist/index.js",
53
53
  "module": "dist/esm/index.js",
54
- "types": "dist/index.d.ts"
54
+ "types": "dist/index.d.ts",
55
+ "files": [
56
+ "dist",
57
+ "src"
58
+ ]
55
59
  }
package/jest.config.ts DELETED
@@ -1,10 +0,0 @@
1
- require('ts-node').register();
2
- module.exports = {
3
- preset: 'ts-jest',
4
- testEnvironment: 'jsdom',
5
- setupFilesAfterEnv: ['./setupTests.ts'],
6
- moduleNameMapper: {
7
- '\\.(css|less|sass|scss)$': '<rootDir>/src/__mocks__/styleMock.js', // Mock CSS files
8
- },
9
- };
10
-
package/rollup.config.mjs DELETED
@@ -1,37 +0,0 @@
1
- import resolve from "@rollup/plugin-node-resolve";
2
- import commonjs from "@rollup/plugin-commonjs";
3
- import typescript from "@rollup/plugin-typescript";
4
- import dts from "rollup-plugin-dts";
5
- import PeerDepsExternalPlugin from 'rollup-plugin-peer-deps-external';
6
-
7
- import packageJson from "./package.json" assert { type: "json" };
8
-
9
- export default [
10
- {
11
- input: "src/index.ts",
12
- output: [
13
- {
14
- file: packageJson.main,
15
- format: "cjs",
16
- sourcemap: true,
17
- },
18
- {
19
- file: packageJson.module,
20
- format: "esm",
21
- sourcemap: true,
22
- },
23
- ],
24
- plugins: [
25
- resolve(),
26
- commonjs(),
27
- typescript({ tsconfig: "./tsconfig.json" }),
28
- PeerDepsExternalPlugin(),
29
- ],
30
- //external: ['react', 'react-dom', '@mui/material', '@emotion/react', '@emotion/styled'],
31
- },
32
- {
33
- input: "dist/esm/types/index.d.ts",
34
- output: [{ file: "dist/index.d.ts", format: "esm" }],
35
- plugins: [dts()],
36
- },
37
- ];
package/setupTests.ts DELETED
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom';
package/tsconfig.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "ESNext", // Module system to use
4
- "target": "ES5", // Target JavaScript version
5
- "moduleResolution": "node", // Module resolution strategy
6
- "declaration": true, // Generate .d.ts files
7
- "outDir": "./dist", // Output directory for compiled files
8
- "jsx": "react-jsx", // JSX handling for React
9
- "esModuleInterop": true, // Enable interoperability between CommonJS and ESModules
10
- "skipLibCheck": true , // Skip checking type declarations of libraries
11
- "types": ["@testing-library/jest-dom","@types/google.maps", "node"],
12
- "lib": ["ES2015", "DOM"],
13
- },
14
- "include": ["src/**/*"], // Include all source files in the src directory
15
- "exclude": ["node_modules", "dist", "**/*.test.ts"] // Exclude unnecessary files
16
- }