Skip to content

Commit d3ed6d4

Browse files
authored
[0.74] Scope various packages to rnw-scripts namespace. (#15717)
* Scope various packaged to rnw-scripts namespace. (#15705) * Scope various packaged to rnw-scripts namespace. * Fix build. * Fix build 1. * Revert unnecessary white space change. * Change files * Fix telemetry test. * Change files * Fix prettier. * Add some more packages to @rnw-scripts namespace. * Remove sample-apps from rnw-scripts namespace. * Remove playground from rnw-scripts namespace. * Fix Ensure servers readiness task. * Remove e2e-test-app-* from rnw-scripts namespace. * Remove integration-test-app from rnw-scripts namespace.
1 parent c813e9a commit d3ed6d4

7 files changed

Lines changed: 25 additions & 9 deletions

File tree

.ado/jobs/desktop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ jobs:
317317
targetType: 'inline'
318318
script: |
319319
# Test website
320-
Invoke-WebRequest -Uri 'http://localhost:5555'
321-
Invoke-WebRequest -Uri 'https://localhost:5543'
320+
Invoke-WebRequest -UseBasicParsing -Uri 'http://localhost:5555'
321+
Invoke-WebRequest -UseBasicParsing -Uri 'https://localhost:5543'
322322
323323
# Bundler
324324
Invoke-WebRequest -UseBasicParsing -Uri "http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=windows&dev=true"
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/debug-test/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "debug-test",
2+
"name": "@rnw-scripts/debug-test",
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
@@ -19,4 +19,4 @@
1919
"ts-jest": "^29.0.3",
2020
"ws": "^6.2.2"
2121
}
22-
}
22+
}

0 commit comments

Comments
 (0)