Skip to content

Commit d1311b0

Browse files
author
Artur
committed
chore(package): bump dependencis
1 parent cab1a5f commit d1311b0

File tree

9 files changed

+7673
-6395
lines changed

9 files changed

+7673
-6395
lines changed

jest.config.js

-22
This file was deleted.

jest.config.ts

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const esModules: string[] = [
2+
'jest',
3+
'react-native',
4+
'@react-native',
5+
];
6+
7+
module.exports = {
8+
preset: 'react-native',
9+
transform: {
10+
'^.+\\.jsx$': 'babel-jest',
11+
'^.+\\.tsx?$': 'ts-jest',
12+
},
13+
transformIgnorePatterns: [`node_modules/(?!${esModules.join('|')})`],
14+
cacheDirectory: './dist/jest/cache',
15+
coverageDirectory: './dist/jest/coverage',
16+
testPathIgnorePatterns: [
17+
'<rootDir>/node_modules',
18+
'<rootDir>/dist',
19+
],
20+
};

package.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-eva-icons",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"private": true,
55
"description": "Eva Icons for React Native",
66
"workspaces": {
@@ -41,27 +41,27 @@
4141
},
4242
"homepage": "https://github.com/artyorsh/react-native-eva-icons#readme",
4343
"devDependencies": {
44-
"@types/jest": "ts3.8",
45-
"@types/node": "ts3.8",
46-
"@types/react-native": "ts3.8",
47-
"@types/rimraf": "ts3.8",
48-
"@types/stringify-object": "ts3.8",
49-
"babel-jest": "24.9.0",
50-
"babel-plugin-module-resolver": "^3.2.0",
51-
"change-case": "^3.1.0",
44+
"@types/jest": "ts4.9",
45+
"@types/node": "ts4.9",
46+
"@types/react-native": "ts4.9",
47+
"@types/rimraf": "ts4.9",
48+
"@types/stringify-object": "ts4.9",
49+
"babel-jest": "27",
50+
"babel-plugin-module-resolver": "^4.1.0",
51+
"change-case": "^4.1.0",
5252
"coveralls": "^3.0.4",
53-
"eva-icons": "^1.1.3",
54-
"jest": "24.9.0",
55-
"prettier": "^1.17.1",
56-
"react": "16.9.0",
57-
"react-native": "^0.61.5",
58-
"react-native-svg": "9.13.3",
59-
"rimraf": "^2.6.3",
53+
"eva-icons": "~1.1.3",
54+
"jest": "27",
55+
"prettier": "^2.8.0",
56+
"react": "18.1.0",
57+
"react-native": "~0.70.0",
58+
"react-native-svg": "~13.4.0",
59+
"rimraf": "^3.0.0",
6060
"stringify-object": "^3.3.0",
61-
"ts-jest": "^24.0.2",
62-
"ts-node": "^8.2.0",
61+
"ts-jest": "27",
62+
"ts-node": "^10.8.0",
6363
"tslint": "^5.16.0",
64-
"typescript": "^3.8.3"
64+
"typescript": "~4.9.0"
6565
},
6666
"resolutions": {
6767
"react": ">=16.9.0",

playground/app.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"name": "react-native-eva-icons-playground",
44
"slug": "playground",
55
"privacy": "public",
6-
"sdkVersion": "36.0.0",
76
"platforms": [
87
"ios",
9-
"android"
8+
"android",
9+
"web"
1010
],
1111
"version": "1.0.0",
1212
"orientation": "portrait",

playground/package.json

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-eva-icons-playground",
3-
"version": "1.3.0",
3+
"version": "1.3.2",
44
"main": "./node_modules/expo/AppEntry.js",
55
"workspaces": {
66
"nohoist": [
@@ -9,18 +9,19 @@
99
]
1010
},
1111
"scripts": {
12-
"start": "expo start -c"
12+
"start": "npx expo start -c"
1313
},
1414
"dependencies": {
15-
"expo": "^36.0.2",
16-
"react": "~16.9.0",
17-
"react-dom": "~16.9.0",
18-
"react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz",
19-
"react-native-svg": "9.13.3",
20-
"react-native-web": "^0.11.7"
15+
"expo": "~47",
16+
"react": "18.1.0",
17+
"react-dom": "18.1.0",
18+
"react-native": "https://github.com/expo/react-native/archive/sdk-47.0.0.tar.gz",
19+
"react-native-svg": "~13.4.0",
20+
"react-native-web": "~0.18.10"
2121
},
2222
"devDependencies": {
23-
"@expo/webpack-config": "0.7.6"
23+
"@expo/cli": "^0.4.10",
24+
"@expo/webpack-config": "~0.17.0"
2425
},
2526
"private": true
2627
}

playground/tsconfig.json

+12-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@
22
"compilerOptions": {
33
"baseUrl": "./",
44
"noEmit": true,
5-
"lib": ["dom", "esnext"],
5+
"lib": [
6+
"dom",
7+
"esnext"
8+
],
69
"jsx": "react-native",
710
"moduleResolution": "node",
811
"allowSyntheticDefaultImports": true,
912
"skipLibCheck": true,
1013
"paths": {
11-
"react-native-eva-icons": ["../lib"],
12-
"react-native-eva-icons/*": ["../lib/*"]
14+
"react-native-eva-icons": [
15+
"../lib"
16+
],
17+
"react-native-eva-icons/*": [
18+
"../lib/*"
19+
]
1320
}
14-
}
21+
},
22+
"extends": "expo/tsconfig.base"
1523
}

scripts/src/generate.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'fs';
22
import path from 'path';
33
import { getFileNameFromPath } from './common';
4-
import { pascal } from 'change-case';
4+
import { pascalCase } from 'change-case';
55

66
interface ReplacementMap {
77
[source: string]: string;
@@ -43,7 +43,7 @@ export function generateIconsForSourceDir(sourceDir: string, destDir: string) {
4343
iconFiles.forEach((file: string) => {
4444
const sourceFilePath: string = path.resolve(sourceDir, file);
4545

46-
const fileName: string = pascal(getFileNameFromPath(sourceFilePath));
46+
const fileName: string = pascalCase(getFileNameFromPath(sourceFilePath));
4747
const destFilePath: string = path.resolve(destDir, `${fileName}.tsx`);
4848

4949
const reactNativeSvgSource: string = createReactNativeSvgSource(sourceFilePath);

tsconfig.json

+9-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"sourceMap": true,
1111
"moduleResolution": "node",
1212
"jsx": "react",
13-
"target": "es2015",
13+
"target": "esnext",
1414
"module": "commonjs",
1515
"lib": [
16-
"es2018"
16+
"es6"
1717
],
1818
"typeRoots": [
1919
"./node_modules/@types"
@@ -22,6 +22,11 @@
2222
"include": [
2323
"./lib/**/*.ts",
2424
"./lib/**/*.tsx",
25-
"./lib/**/*.json"
25+
"./lib/**/*.json",
26+
],
27+
"exclude": [
28+
"./node_modules",
29+
"./babel.config.js",
30+
"./jest.config.ts",
2631
]
27-
}
32+
}

0 commit comments

Comments
 (0)