myrentokil-components-library 1.0.9 → 1.0.13

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +10 -2
package/README.md CHANGED
@@ -5,7 +5,7 @@ Custom components library
5
5
  This library can be installed using npm.
6
6
 
7
7
  ```
8
- npm install @myRentokil/myRentokil-components-library
8
+ npm install @myrentokil/myrentokil-components-library
9
9
  ```
10
10
 
11
11
  ## Available Scripts:
package/package.json CHANGED
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "name": "myrentokil-components-library",
3
- "version": "1.0.9",
3
+ "version": "1.0.13",
4
4
  "description": "myRentokil shared components library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "type": "module",
7
9
  "publishConfig": {
8
10
  "registry": "https://registry.npmjs.org/"
9
11
  },
@@ -11,6 +13,7 @@
11
13
  "dist"
12
14
  ],
13
15
  "scripts": {
16
+ "rollup": "rollup -c",
14
17
  "build": "rm -rf dist/ && prettier --write src/ && npm run build:esm && npm run build:cjs && storybook build",
15
18
  "build:esm": "tsc",
16
19
  "build:cjs": "tsc --module CommonJS --outDir dist/cjs",
@@ -28,6 +31,9 @@
28
31
  "@emotion/styled": "^11.11.0",
29
32
  "@mui/material": "^5.13.6",
30
33
  "@mui/styled-engine-sc": "^5.12.0",
34
+ "@rollup/plugin-commonjs": "^21.0.1",
35
+ "@rollup/plugin-node-resolve": "^13.0.6",
36
+ "@rollup/plugin-typescript": "^8.3.3",
31
37
  "@storybook/addon-essentials": "^7.0.24",
32
38
  "@storybook/addon-interactions": "^7.0.24",
33
39
  "@storybook/addon-links": "^7.0.24",
@@ -46,9 +52,11 @@
46
52
  "prop-types": "^15.8.1",
47
53
  "react": "^18.2.0",
48
54
  "react-dom": "^18.2.0",
55
+ "rollup": "^2.60.0",
56
+ "rollup-plugin-dts": "^4.0.1",
49
57
  "storybook": "^7.0.24",
50
58
  "styled-components": "^5.3.1",
51
- "typescript": "^5.1.5"
59
+ "typescript": "^4.4.4"
52
60
  },
53
61
  "peerDependencies": {
54
62
  "react": "^18.2.0",