-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1538 from aws-amplify/main
chore(api): trigger release pipeline
- Loading branch information
Showing
58 changed files
with
733 additions
and
597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# Data team has general approval permissions | ||
* @aws-amplify/amplify-data | ||
|
||
# API approval - public surface and dependencies. | ||
**/API.md @aws-amplify/amplify-data-admins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/** | ||
* README | ||
* This file contains a subset of critical dependency validation rules for the transformer packages. | ||
* There are certain dependencies we need to be careful of introducing as we refactor the transformers, | ||
* including access to @aws-amplify/* namespaced packages (namely core, printer), | ||
* but we also wish to limit imports to `fs`, and a few other particular places. | ||
*/ | ||
|
||
// List of v2 transformer directories. | ||
const GQL_V2_TRANSFORMER_PACKAGES = [ | ||
'amplify-graphql-auth-transformer', | ||
'amplify-graphql-default-value-transformer', | ||
'amplify-graphql-function-transformer', | ||
'amplify-graphql-http-transformer', | ||
'amplify-graphql-index-transformer', | ||
'amplify-graphql-maps-to-transformer', | ||
'amplify-graphql-model-transformer', | ||
'amplify-graphql-predictions-transformer', | ||
'amplify-graphql-relational-transformer', | ||
'amplify-graphql-searchable-transformer', | ||
'amplify-graphql-transformer-core', | ||
'amplify-graphql-transformer-interfaces', | ||
'graphql-transformer-common', | ||
'graphql-mapping-template', | ||
]; | ||
|
||
const TRANSFORMER_RESTRICTED_IMPORTS = [ | ||
'fs', | ||
'fs-extra', | ||
'@aws-amplify/amplify-cli-core', | ||
'@aws-amplify/amplify-prompts', | ||
]; | ||
|
||
module.exports = { | ||
parser: '@typescript-eslint/parser', // Specifies the ESLint parser | ||
env: { | ||
es6: true, | ||
node: true, | ||
jest: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features | ||
sourceType: 'module', // Allows for the use of imports | ||
ecmaFeatures: { | ||
arrowFunctions: true, | ||
modules: true, | ||
module: true, | ||
}, | ||
project: ['tsconfig.base.json'], | ||
}, | ||
plugins: ['@typescript-eslint'], | ||
settings: { | ||
'import/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx'] }, | ||
'import/resolver': { typescript: {} }, | ||
}, | ||
ignorePatterns: [ | ||
'__tests__/**', | ||
'*.test.ts', | ||
'lib/**', | ||
'node_modules', | ||
'*/node_modules', | ||
], | ||
overrides: [ | ||
{ | ||
files: GQL_V2_TRANSFORMER_PACKAGES.map((packageName) => `packages/${packageName}/src/**`), | ||
excludedFiles: [ | ||
'__tests__/**', | ||
'*.test.ts', | ||
], | ||
rules: { | ||
'no-restricted-imports': ['error', ...TRANSFORMER_RESTRICTED_IMPORTS.map((importName) => ({ | ||
name: importName, | ||
message: `${importName} is not allowed in transformer v2 packages`, | ||
}))], | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rc/__tests__/nodeToNodeEncryption.test.ts → ...earchable-node-to-node-encryption.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...sts__/provider-utils/awscloudformation/utils/import-rds-utils/globalAmplifyInputs.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.