@comicrelief/component-library 8.39.0 → 8.41.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.
Files changed (2) hide show
  1. package/babel.config.js +11 -11
  2. package/package.json +7 -5
package/babel.config.js CHANGED
@@ -1,15 +1,15 @@
1
1
  // eslint-disable-next-line func-names
2
2
  module.exports = function (api) {
3
- api.cache(true);
3
+ api.cache(true);
4
4
 
5
- const presets = [ ["react-app", { "absoluteRuntime": false }] ];
6
- const plugins = [
7
- ["babel-plugin-styled-components"],
8
- ["import", { "libraryName": "lodash", "libraryDirectory": "", "camel2DashComponentName": false }]
9
- ];
5
+ const presets = [['react-app', { absoluteRuntime: false }]];
6
+ const plugins = [
7
+ ['babel-plugin-styled-components'],
8
+ ['import', { libraryName: 'lodash', libraryDirectory: '', camel2DashComponentName: false }]
9
+ ];
10
10
 
11
- return {
12
- presets,
13
- plugins
14
- };
15
- }
11
+ return {
12
+ presets,
13
+ plugins
14
+ };
15
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "8.39.0",
4
+ "version": "8.41.0",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -22,6 +22,9 @@
22
22
  "url": "https://github.com/comicrelief/component-library.git"
23
23
  },
24
24
  "dependencies": {
25
+ "react-scripts": "4.0.3",
26
+ "babel-plugin-import": "^1.13.8",
27
+ "@babel/cli": "^7.21.5",
25
28
  "@hookform/resolvers": "^3.9.0",
26
29
  "axios": "^1.7.2",
27
30
  "lazysizes": "^5.3.2",
@@ -57,7 +60,9 @@
57
60
  "test:e2e:ci": "NODE_ENV=development; start-server-and-test styleguide http://localhost:6060 test:e2e",
58
61
  "test:e2e:local": "export NODE_ENV=development; start-server-and-test styleguide http://localhost:6060 test:e2e",
59
62
  "lint": "eslint src",
60
- "lint-fix": "yarn lint --fix"
63
+ "lint-fix": "yarn lint --fix",
64
+ "build-pr": "rm -rf dist && NODE_ENV=development BABEL_ENV=development yarn babel src --out-dir dist --copy-files --ignore __tests__,spec.js,test.js",
65
+ "postinstall": "yarn build-pr"
61
66
  },
62
67
  "browserslist": {
63
68
  "production": [
@@ -72,10 +77,8 @@
72
77
  ]
73
78
  },
74
79
  "devDependencies": {
75
- "@babel/cli": "^7.21.5",
76
80
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
77
81
  "@playwright/test": "^1.38.1",
78
- "babel-plugin-import": "^1.13.8",
79
82
  "cross-env": "^7.0.3",
80
83
  "ejs": "^3.1.9",
81
84
  "eslint": "^7.32.0",
@@ -88,7 +91,6 @@
88
91
  "jest-styled-components": "^7.1.1",
89
92
  "npm-run-all": "^4.1.5",
90
93
  "prettier": "^2.8.8",
91
- "react-scripts": "4.0.3",
92
94
  "react-styleguidist": "^11.1.7",
93
95
  "react-test-renderer": "^17.0.2",
94
96
  "semantic-release": "^17.4.6",