Skip to content

Commit d2b041f

Browse files
authored
chore: rename aws-gamelift → aws-gamelift-alpha (#25066)
This PR is part of a refactor to make all directory names equal to the package name of the package inside it. It is a re-roll of #24930, but split into parts (one PR per package), so that we will cut down on merge conflicts. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent bad28a5 commit d2b041f

File tree

137 files changed

+3
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+3
-3
lines changed

packages/@aws-cdk/aws-gamelift/package.json renamed to packages/@aws-cdk/aws-gamelift-alpha/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"repository": {
4646
"type": "git",
4747
"url": "https://github.com/aws/aws-cdk.git",
48-
"directory": "packages/@aws-cdk/aws-gamelift"
48+
"directory": "packages/@aws-cdk/aws-gamelift-alpha"
4949
},
5050
"scripts": {
5151
"build": "cdk-build",

tools/@aws-cdk/prlint/module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const awsCdkLibModules: string[] = [];
99
export function findModulePath(fuzz: string): string {
1010
discoverModules();
1111

12-
const regex = new RegExp(`[-_/]${fuzz}$`)
12+
const regex = new RegExp(`[-_/]${fuzz}($|-alpha)`)
1313
const matched = [
1414
...modules.filter(m => regex.test(m)),
1515
...(awsCdkLibModules.some(m => regex.test(m)) ? [awsCdkLibPath] : []),

tools/@aws-cdk/prlint/test/module.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('findModulePath', () => {
1515
test('single fuzzy match', () => {
1616
expect(relative(findModulePath('lambda'))).toEqual('packages/aws-cdk-lib');
1717
expect(relative(findModulePath('s3'))).toEqual('packages/aws-cdk-lib');
18-
expect(relative(findModulePath('gamelift'))).toEqual('packages/@aws-cdk/aws-gamelift');
18+
expect(relative(findModulePath('gamelift'))).toEqual('packages/@aws-cdk/aws-gamelift-alpha');
1919
expect(relative(findModulePath('cdk-build-tools'))).toEqual('tools/@aws-cdk/cdk-build-tools');
2020
});
2121

0 commit comments

Comments
 (0)