Skip to content

Commit 222edea

Browse files
authored
Scope various packaged to rnw-scripts namespace. (#15705) (#15715)
Scoped several packages to the rnw-scripts namespace. See https://portal.microsofticm.com/imp/v5/incidents/details/31000000553748/summary. Port of #15705 for 0.82-stable branch.
1 parent d7c47e9 commit 222edea

16 files changed

Lines changed: 36 additions & 20 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "Scope various foo and bar test package to rnw-scripts.\"",
4+
"packageName": "@react-native-windows/cli",
5+
"email": "yicyao@microsoft.com",
6+
"dependentChangeType": "none"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "none",
3+
"comment": "Fix telemetry test.",
4+
"packageName": "@react-native-windows/telemetry",
5+
"email": "yicyao@microsoft.com",
6+
"dependentChangeType": "none"
7+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "bar",
2+
"name": "@rnw-scripts/bar",
33
"version": "1.2.3",
44
"description": "Synthetic project.json for testing project.json logic",
55
"license": "MIT",
66
"private": true
7-
}
7+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "foo",
2+
"name": "@rnw-scripts/foo",
33
"version": "1.2.3",
44
"description": "Synthetic project.json for testing project.json logic",
55
"license": "MIT",
66
"private": true
7-
}
7+
}

packages/@react-native-windows/telemetry/src/test/projectUtils.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ test('configToProjectInfo() works with playground project info', async () => {
7474

7575
const projectInfo = info as projectUtils.AppProjectInfo;
7676

77-
expect(projectInfo.id).toBe(projectUtils.getProjectId('playground'));
77+
expect(projectInfo.id).toBe(
78+
projectUtils.getProjectId('@rnw-scripts/playground'),
79+
);
7880
expect(projectInfo.platforms).toStrictEqual(['windows']);
7981
expect(projectInfo.rnwLang).toBe('cpp');
8082
expect(projectInfo.usesTS).toBe(true);

packages/@react-native-windows/tester/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@typescript-eslint/eslint-plugin": "^7.1.1",
1515
"@typescript-eslint/parser": "^7.1.1",
1616
"flow-enums-runtime": "^0.0.6",
17-
"sample-custom-component": "0.0.1"
17+
"@rnw-scripts/sample-custom-component": "0.0.1"
1818
},
1919
"peerDependencies": {
2020
"@react-native-picker/picker": "2.11.0",

packages/@react-native-windows/tester/src/js/examples-win/NativeComponents/CustomAccessibility.windows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import React from 'react';
44
import {View} from 'react-native';
5-
import {CustomAccessibility} from 'sample-custom-component';
5+
import {CustomAccessibility} from '@rnw-scripts/sample-custom-component';
66
import RNTesterText from '../../components/RNTesterText';
77

88
const CustomAccessibilityExample = () => {

packages/@react-native-windows/tester/src/js/examples-win/NativeComponents/DrawingIsland.windows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import React from 'react';
1414
import {View} from 'react-native';
1515

16-
import {DrawingIsland} from 'sample-custom-component';
16+
import {DrawingIsland} from '@rnw-scripts/sample-custom-component';
1717

1818
const DrawingIslandExample = () => {
1919
return (

packages/@react-native-windows/tester/src/js/examples-win/NativeComponents/MovingLight.windows.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import React, { useRef, useState } from 'react';
44
import {Button, Text, View} from 'react-native';
5-
import {MovingLight} from 'sample-custom-component';
6-
import type {MovingLightHandle} from 'sample-custom-component';
5+
import {MovingLight} from '@rnw-scripts/sample-custom-component';
6+
import type {MovingLightHandle} from '@rnw-scripts/sample-custom-component';
77

88
const colors = ['white', 'red', 'green', 'blue'];
99

packages/@react-native-windows/tester/src/js/examples-win/XAML/FabricXamlExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import React, {useState} from 'react';
1414
import {Alert, Button, Text, View, ScrollView} from 'react-native';
15-
import {CalendarView} from 'sample-custom-component';
15+
import {CalendarView} from '@rnw-scripts/sample-custom-component';
1616

1717
const XamlContentExample = () => {
1818
const [selectedDate, setSelectedDate] = useState(true);

0 commit comments

Comments
 (0)