Skip to content

Commit

Permalink
fix(dependencies): remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
luancurti committed Jun 2, 2023
1 parent 268afc3 commit e3491ef
Show file tree
Hide file tree
Showing 6 changed files with 2,139 additions and 7,629 deletions.
20 changes: 20 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const tsConfig = require('./tsconfig');

module.exports = {
preset: 'react-native',
verbose: true,
testEnvironment: 'node',
moduleDirectories: ['node_modules', 'src'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$',
transform: {
'^.+\\.ts$': 'babel-jest',
'^.+\\.tsx$': 'babel-jest',
'^.+\\.js$': 'babel-jest',
'^.+\\.jsx$': 'babel-jest',
},
transformIgnorePatterns: [
'node_modules/(?!react-native|react-clone-referenced-element|@react-native-community|react-navigation|@react-navigation/.*|@unimodules/.*|native-base|react-native-code-push)/',
],
testPathIgnorePatterns: ['<rootDir>/node_modules/', '\\.snap$', '/exampleDev/'],
};
17 changes: 0 additions & 17 deletions metro.config.js

This file was deleted.

36 changes: 9 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
},
"license": "ISC",
"scripts": {
"test": "cross-env CI=1 react-scripts test --env=jsdom --passWithNoTests",
"test:watch": "react-scripts test --env=jsdom",
"build": "rm -rf dist && npm run build:cjs",
"build:cjs": "tsc --project ./tsconfig.json",
"start": "rollup -c -w",
"test": "jest --passWithNoTests",
"build": "tsc --project ./tsconfig.json",
"prepare": "husky install",
"pretty": "prettier --config ./.prettierrc.js --write \"src/**/*.{jsx,ts,tsx,json}\"",
"uglify": "for f in /dist/*.js; do short=${f%.js}; uglifyjs $f > $short.min.js; rm -rf $f; mv $short.min.js $short.js; done",
"lint": "tsc && eslint '*/**/*.{ts, tsx}' --fix"
},
"resolutions": {
"@types/react": "^17.0.38"
},
"peerDependencies": {
"react": ">=^16.13.1",
"react-native": ">=0.71.1",
"react-native-gesture-handler": ">=^2.10.1",
"react-native-reanimated": ">=2.14.4",
"react-native-safe-area-context": ">=^4.5.3",
Expand All @@ -36,40 +36,22 @@
"@babel/core": "^7.11.4",
"@babel/runtime": "^7.11.2",
"@platformbuilders/eslint-config-builders": "^0.1.2",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^21.0.0",
"@rollup/plugin-node-resolve": "^13.0.5",
"@rollup/plugin-url": "^6.1.0",
"@testing-library/react-hooks": "^7.0.2",
"@types/jest": "^27.0.2",
"@types/react": "^17.0.27",
"@types/styled-components-react-native": "^5.2.1",
"cross-env": "^7.0.2",
"eslint": "^7.7.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-sonarjs": "^0.10.0",
"eslint-plugin-typescript": "^0.14.0",
"gh-pages": "^3.1.0",
"husky": "^7.0.1",
"jest": "^29.5.0",
"lint-staged": "^11.1.2",
"prettier": "^2.1.1",
"react": "^17.0.2",
"react-scripts": "^4.0.3",
"react-test-renderer": "^17.0.2",
"react-native": "0.71.1",
"react-native-gesture-handler": "^2.10.1",
"react-native-reanimated": "2.14.4",
"react-native-safe-area-context": "^4.5.3",
"styled-components": "^5.3.11",
"rollup": "^3.23.0",
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"typescript": "^4.0.2",
"uglify-js": "^3.14.1"
"typescript": "^5.1.3"
}
}
38 changes: 0 additions & 38 deletions rollup.config.mjs

This file was deleted.

7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"target": "ESNext",
"module": "CommonJS",
"lib": [
"ESNext",
"ESNext"
],
"types": [
"react",
"jest",
"jest"
],
"jsx": "react",
"declaration": true,
Expand Down Expand Up @@ -45,7 +45,6 @@
],
"exclude": [
"node_modules",
"dist",
"rollup.config.mjs"
"dist"
]
}
Loading

0 comments on commit e3491ef

Please sign in to comment.