From 3bd2c6dae6447f136d5b2a035653429ae1b86c57 Mon Sep 17 00:00:00 2001 From: Pierre Poupin Date: Fri, 7 Jul 2023 15:46:52 +0200 Subject: [PATCH] fix(example): fix imports with new package name --- package.json | 2 +- .../src/components/SimpleRSNApp.tsx | 2 +- .../components/configureKeyboard.android.ts | 2 +- .../src/components/configureKeyboard.ios.ts | 2 +- .../src/components/configureKeyboard.ts | 2 +- packages/rabbit-tv-with-rn-tvos/tsconfig.json | 2 +- yarn.lock | 38 ++++++------------- 7 files changed, 17 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index 70a5e55d..4418109a 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "scripts": { "test:types": "yarn workspaces foreach run test:types", "test:lint": "eslint . --ext .js,.jsx,.ts,.tsx --report-unused-disable-directives --max-warnings 0 --cache --cache-strategy content --cache-location .cache/eslint.json", - "build:core": "yarn workspace @react-spatial-navigation/core build", + "build:core": "yarn workspace react-native-tv-spatial-navigation build", "start:example": "yarn workspace @react-spatial-navigation/example start" } } diff --git a/packages/rabbit-tv-with-rn-tvos/src/components/SimpleRSNApp.tsx b/packages/rabbit-tv-with-rn-tvos/src/components/SimpleRSNApp.tsx index 20b54709..3a56671c 100644 --- a/packages/rabbit-tv-with-rn-tvos/src/components/SimpleRSNApp.tsx +++ b/packages/rabbit-tv-with-rn-tvos/src/components/SimpleRSNApp.tsx @@ -3,7 +3,7 @@ import { SpatialNavigationRoot, SpatialNavigationScrollView, SpatialNavigationView, -} from '@react-spatial-navigation/core/src'; +} from 'react-native-tv-spatial-navigation/src'; import {Program} from './Program'; import {StyleSheet} from 'react-native'; import './configureKeyboard'; diff --git a/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.android.ts b/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.android.ts index 723ac93c..d9e6cd2f 100644 --- a/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.android.ts +++ b/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.android.ts @@ -4,7 +4,7 @@ import KeyEvent from 'react-native-keyevent'; import { Directions, SpatialNavigation, -} from '@react-spatial-navigation/core/src'; +} from 'react-native-tv-spatial-navigation/src'; SpatialNavigation.configureKeyboard({ keyboardSubscriber: callback => { diff --git a/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.ios.ts b/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.ios.ts index 4cbd16fb..d8eaa724 100644 --- a/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.ios.ts +++ b/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.ios.ts @@ -2,7 +2,7 @@ import {TVEventHandler} from 'react-native'; import { Directions, SpatialNavigation, -} from '@react-spatial-navigation/core/src'; +} from 'react-native-tv-spatial-navigation/src'; SpatialNavigation.configureKeyboard({ keyboardSubscriber: callback => { diff --git a/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.ts b/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.ts index 4af2c2c9..1f23c146 100644 --- a/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.ts +++ b/packages/rabbit-tv-with-rn-tvos/src/components/configureKeyboard.ts @@ -1,7 +1,7 @@ import { Directions, SpatialNavigation, -} from '@react-spatial-navigation/core/src'; +} from 'react-native-tv-spatial-navigation/src'; SpatialNavigation.configureKeyboard({ keyboardSubscriber: callback => { diff --git a/packages/rabbit-tv-with-rn-tvos/tsconfig.json b/packages/rabbit-tv-with-rn-tvos/tsconfig.json index 42808126..66db4231 100644 --- a/packages/rabbit-tv-with-rn-tvos/tsconfig.json +++ b/packages/rabbit-tv-with-rn-tvos/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "paths": { - "@react-spatial-navigation/core": ["../core/src/*"] + "react-native-tv-spatial-navigation": ["../core/src/*"] } }, "include": [ diff --git a/yarn.lock b/yarn.lock index d5f0c28f..eb786d99 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2768,33 +2768,6 @@ __metadata: languageName: node linkType: hard -"@react-spatial-navigation/core@*, @react-spatial-navigation/core@workspace:packages/core": - version: 0.0.0-use.local - resolution: "@react-spatial-navigation/core@workspace:packages/core" - dependencies: - typescript: ^5.1.6 - webpack: ^5.88.1 - webpack-cli: ^5.1.4 - webpack-dev-server: ^4.15.1 - languageName: unknown - linkType: soft - -"@react-spatial-navigation/example@workspace:packages/example": - version: 0.0.0-use.local - resolution: "@react-spatial-navigation/example@workspace:packages/example" - dependencies: - "@react-spatial-navigation/core": "*" - babel-plugin-react-native-web: ^0.19.6 - file-loader: ^6.2.0 - react: ^18.2.0 - react-dom: ^18.2.0 - typescript: ^5.1.6 - webpack: ^5.88.1 - webpack-cli: ^5.1.4 - webpack-dev-server: ^4.15.1 - languageName: unknown - linkType: soft - "@sideway/address@npm:^4.1.3": version: 4.1.4 resolution: "@sideway/address@npm:4.1.4" @@ -10571,6 +10544,17 @@ __metadata: languageName: node linkType: hard +"react-native-tv-spatial-navigation@workspace:packages/core": + version: 0.0.0-use.local + resolution: "react-native-tv-spatial-navigation@workspace:packages/core" + dependencies: + typescript: ^5.1.6 + webpack: ^5.88.1 + webpack-cli: ^5.1.4 + webpack-dev-server: ^4.15.1 + languageName: unknown + linkType: soft + "react-native-web@npm:^0.19.6": version: 0.19.6 resolution: "react-native-web@npm:0.19.6"