Skip to content

Commit

Permalink
chore: Upgrade dependencies and fix the issue with missing module fil…
Browse files Browse the repository at this point in the history
…e specified in package json (#311)
  • Loading branch information
mohebifar committed Mar 6, 2024
1 parent acc5650 commit 3e5d3cc
Show file tree
Hide file tree
Showing 9 changed files with 4,337 additions and 4,720 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-shoes-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-native-copilot": minor
---

Fix the issue with missing module file specified in package json
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ module.exports = {
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-unsafe-argument": "off",
},
};
20 changes: 10 additions & 10 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
"web": "expo start --web"
},
"dependencies": {
"expo": "~48.0.6",
"expo-build-properties": "~0.5.1",
"expo-dev-client": "~2.1.5",
"expo-status-bar": "~1.4.4",
"expo-updates": "~0.16.3",
"expo": "~50.0.8",
"expo-build-properties": "~0.11.1",
"expo-dev-client": "~3.3.9",
"expo-status-bar": "~1.11.1",
"expo-updates": "~0.24.11",
"react": "18.2.0",
"react-native": "0.71.3",
"react-native-copilot": "*",
"react-native-svg": "13.4.0"
"react-native": "0.73.5",
"react-native-copilot": "3.2.1",
"react-native-svg": "15.1.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"node-watch": "^0.7.3"
"@babel/core": "^7.24.0",
"node-watch": "^0.7.4"
},
"private": true
}
3,437 changes: 1,661 additions & 1,776 deletions example/yarn.lock

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"description": "Make an interactive step by step tour guide for you react-native app",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"module": "dist/index.mjs",
"private": false,
"scripts": {
"build": "tsup",
"dev": "NODE_ENV=development yarn build --watch",
"lint": "eslint src/",
"lint": "eslint src/ --ext .ts,.tsx",
"test": "jest",
"changeset": "changeset",
"release": "changeset publish"
Expand All @@ -36,39 +36,39 @@
},
"homepage": "https://github.com/mohebifar/react-native-copilot#readme",
"devDependencies": {
"@testing-library/jest-native": "^5.4.2",
"@testing-library/react-native": "^12.0.0",
"@tsconfig/react-native": "^2.0.3",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.4",
"@types/react": "^18.0.28",
"@types/react-test-renderer": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.56.0",
"babel-jest": "^29.5.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard-with-typescript": "^34.0.1",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0",
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "^12.4.3",
"@tsconfig/react-native": "^3.0.3",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.25",
"@types/react": "^18.2.64",
"@types/react-test-renderer": "^18.0.7",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"babel-jest": "^29.7.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.5.0",
"metro-react-native-babel-preset": "^0.76.0",
"prettier": "^2.8.5",
"jest": "^29.7.0",
"metro-react-native-babel-preset": "^0.77.0",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-native": "^0.71.4",
"react-native-svg": "^13.8.0",
"react-native": "^0.73.5",
"react-native-svg": "^15.1.0",
"react-test-renderer": "^18.2.0",
"ts-jest": "^29.0.5",
"tsup": "^6.7.0",
"typescript": "*"
"ts-jest": "^29.1.2",
"tsup": "^8.0.2",
"typescript": "5.4.2"
},
"dependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.0",
"mitt": "^3.0.0"
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"mitt": "^3.0.1"
},
"peerDependencies": {
"react": ">=16.8.0",
Expand Down
8 changes: 4 additions & 4 deletions src/hocs/tests/walkthroughable.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ it("spreads the copilot prop object on the wrapped component", () => {
<WalkthroughableView copilot={{ keyForNum: 1, keyForStr: "hello" }} />
);

const { props } = tree.root.findByType(View);
const { props } = tree.root.findByType(View as any );

expect(props.keyForNum).toBe(1);
expect(props.keyForStr).toBe("hello");
Expand All @@ -38,7 +38,7 @@ it("spreads the copilot prop object on the wrapped component along with other fl
/>
);

const { props } = tree.root.findByType(View);
const { props } = tree.root.findByType(View as any );

expect(props.keyForNum).toBe(1);
expect(props.keyForStr).toBe("hello");
Expand All @@ -54,7 +54,7 @@ it("spreads the copilot prop object on the wrapped component not overriding the
/>
);

const { props } = tree.root.findByType(View);
const { props } = tree.root.findByType(View as any );

expect(props.keyForNum).toBe(2);
expect(props.keyForStr).toBe("hello");
Expand All @@ -71,7 +71,7 @@ it("works with all types of react native built-in components", () => {
/>
);

const { props } = tree.root.findByType(Component);
const { props } = tree.root.findByType(Component as any );

expect(props.keyForNum).toBe(1);
expect(props.keyForStr).toBe("hello");
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@tsconfig/react-native/tsconfig.json",
"exclude": ["dist"],
"include": ["src"],
"include": ["src", "./tsup.config.ts"],
"compilerOptions": {
"types": ["react-native", "jest", "node"],
"target": "ES2015"
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from "path";

export default defineConfig({
entry: ["src/index.ts"],
format: "cjs",
format: ["cjs", "esm"],
sourcemap: true,
dts: true,
external: ["react", "react-native", "react-native-svg"],
Expand Down

0 comments on commit 3e5d3cc

Please sign in to comment.