From ff19c2940a7fcc706a79568b2bc0d71eb72fc9da Mon Sep 17 00:00:00 2001 From: Kaustav Ghosh Date: Sun, 7 Nov 2021 16:27:39 -0800 Subject: [PATCH] feat: change override.ts file to override.ts.sample in resources/ for pkg CLI to work (#8716) Co-authored-by: Ghosh --- .../overrides-resource/{override.ts => override.ts.sample} | 0 .../DynamoDB/{override.ts => override.ts.sample} | 0 .../overrides-resource/S3/{override.ts => override.ts.sample} | 0 .../src/overrides-manager/override-skeleton-generator.ts | 2 +- .../overrides-resource/{override.ts => override.ts.sample} | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename packages/amplify-category-auth/resources/overrides-resource/{override.ts => override.ts.sample} (100%) rename packages/amplify-category-storage/resources/overrides-resource/DynamoDB/{override.ts => override.ts.sample} (100%) rename packages/amplify-category-storage/resources/overrides-resource/S3/{override.ts => override.ts.sample} (100%) rename packages/amplify-provider-awscloudformation/resources/overrides-resource/{override.ts => override.ts.sample} (100%) diff --git a/packages/amplify-category-auth/resources/overrides-resource/override.ts b/packages/amplify-category-auth/resources/overrides-resource/override.ts.sample similarity index 100% rename from packages/amplify-category-auth/resources/overrides-resource/override.ts rename to packages/amplify-category-auth/resources/overrides-resource/override.ts.sample diff --git a/packages/amplify-category-storage/resources/overrides-resource/DynamoDB/override.ts b/packages/amplify-category-storage/resources/overrides-resource/DynamoDB/override.ts.sample similarity index 100% rename from packages/amplify-category-storage/resources/overrides-resource/DynamoDB/override.ts rename to packages/amplify-category-storage/resources/overrides-resource/DynamoDB/override.ts.sample diff --git a/packages/amplify-category-storage/resources/overrides-resource/S3/override.ts b/packages/amplify-category-storage/resources/overrides-resource/S3/override.ts.sample similarity index 100% rename from packages/amplify-category-storage/resources/overrides-resource/S3/override.ts rename to packages/amplify-category-storage/resources/overrides-resource/S3/override.ts.sample diff --git a/packages/amplify-cli-core/src/overrides-manager/override-skeleton-generator.ts b/packages/amplify-cli-core/src/overrides-manager/override-skeleton-generator.ts index 453147e2c2d..0a9137da824 100644 --- a/packages/amplify-cli-core/src/overrides-manager/override-skeleton-generator.ts +++ b/packages/amplify-cli-core/src/overrides-manager/override-skeleton-generator.ts @@ -94,6 +94,6 @@ export const generateTsConfigforProject = (backendDir: string, srcResourceDirPat // ensure build dir path fs.ensureDirSync(path.join(destDirPath, 'build')); const resourceTsConfigFileName = path.join(destDirPath, 'build', 'tsconfig.resource.json'); - fs.writeFileSync(overrideFileName, fs.readFileSync(path.join(srcResourceDirPath, 'override.ts'))); + fs.writeFileSync(overrideFileName, fs.readFileSync(path.join(srcResourceDirPath, 'override.ts.sample'))); fs.writeFileSync(resourceTsConfigFileName, fs.readFileSync(path.join(srcResourceDirPath, 'tsconfig.resource.json'))); }; diff --git a/packages/amplify-provider-awscloudformation/resources/overrides-resource/override.ts b/packages/amplify-provider-awscloudformation/resources/overrides-resource/override.ts.sample similarity index 100% rename from packages/amplify-provider-awscloudformation/resources/overrides-resource/override.ts rename to packages/amplify-provider-awscloudformation/resources/overrides-resource/override.ts.sample