From 8f9ba3fac37b12c5004ea5a1dc9de69da582604e Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Wed, 27 Oct 2021 23:28:07 +0000 Subject: [PATCH] chore: rename protocol_tests to private in config --- jest.config.js | 2 +- package.json | 6 +++--- scripts/generate-clients/copy-to-clients.js | 4 ++-- scripts/generate-clients/index.js | 2 +- scripts/verdaccio-publish/index.js | 2 +- tsconfig.json | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/jest.config.js b/jest.config.js index a94b37b7c9fdb..b1e618b5efa09 100644 --- a/jest.config.js +++ b/jest.config.js @@ -4,7 +4,7 @@ module.exports = { ...base, projects: [ "/lib/*/jest.config.js", - "/protocol_tests/*/jest.config.js", + "/private/*/jest.config.js", "/packages/*/jest.config.js", "/clients/*/jest.config.js", ], diff --git a/package.json b/package.json index 78b6048926592..2041674261ee6 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "generate-clients": "node ./scripts/generate-clients", "bootstrap": "yarn", "clean": "yarn clear-build-cache && yarn clear-build-info && lerna clean", - "clear-build-cache": "rimraf ./packages/*/dist ./clients/*/dist ./lib/*/dist ./protocol_tests/*/dist", - "clear-build-info": "rimraf ./packages/**/*.tsbuildinfo ./clients/**/*.tsbuildinfo ./lib/**/*.tsbuildinfo ./protocol_tests/**/*.tsbuildinfo", + "clear-build-cache": "rimraf ./packages/*/dist ./clients/*/dist ./lib/*/dist ./private/*/dist", + "clear-build-info": "rimraf ./packages/**/*.tsbuildinfo ./clients/**/*.tsbuildinfo ./lib/**/*.tsbuildinfo ./private/**/*.tsbuildinfo", "remove-documentation": "rimraf ./docs", "build:crypto-dependencies": "lerna run --scope '@aws-sdk/{types,util-utf8-browser,util-locate-window,hash-node}' --include-dependencies build", "build:protocols": "yarn build:crypto-dependencies && lerna run --scope '@aws-sdk/aws-protocoltests-*' --include-dependencies build", @@ -107,7 +107,7 @@ "clients/*", "lib/*", "packages/*", - "protocol_tests/*" + "private/*" ], "nohoist": [ "**/karma*", diff --git a/scripts/generate-clients/copy-to-clients.js b/scripts/generate-clients/copy-to-clients.js index 3f78a72f9a555..d5ca68eef3382 100644 --- a/scripts/generate-clients/copy-to-clients.js +++ b/scripts/generate-clients/copy-to-clients.js @@ -168,11 +168,11 @@ const copyServerTests = async (sourceDir, destinationDir) => { const destManifest = existsSync(destSubPath) ? JSON.parse(readFileSync(destSubPath).toString()) : {}; const mergedManifest = { ...mergeManifest(packageManifest, destManifest), - homepage: `https://github.com/aws/aws-sdk-js-v3/tree/main/protocol_tests/${testName}`, + homepage: `https://github.com/aws/aws-sdk-js-v3/tree/main/private/${testName}`, repository: { type: "git", url: "https://github.com/aws/aws-sdk-js-v3.git", - directory: `protocol_tests/${testName}`, + directory: `private/${testName}`, }, }; writeFileSync(destSubPath, JSON.stringify(mergedManifest, null, 2).concat(`\n`)); diff --git a/scripts/generate-clients/index.js b/scripts/generate-clients/index.js index aa45704e9dd9f..1d9086d65c298 100644 --- a/scripts/generate-clients/index.js +++ b/scripts/generate-clients/index.js @@ -13,7 +13,7 @@ const { prettifyCode } = require("./code-prettify"); const { eslintFixCode } = require("./code-eslint-fix"); const SDK_CLIENTS_DIR = path.normalize(path.join(__dirname, "..", "..", "clients")); -const PROTOCOL_TESTS_CLIENTS_DIR = path.normalize(path.join(__dirname, "..", "..", "protocol_tests")); +const PROTOCOL_TESTS_CLIENTS_DIR = path.normalize(path.join(__dirname, "..", "..", "private")); const { models, diff --git a/scripts/verdaccio-publish/index.js b/scripts/verdaccio-publish/index.js index 1c3f561b098d6..5e11bbb6b4b08 100644 --- a/scripts/verdaccio-publish/index.js +++ b/scripts/verdaccio-publish/index.js @@ -41,7 +41,7 @@ spawn("npx", args, pipeStdIo).on("close", (code) => { // Rollback the changes caused by the version bumping execSync("git checkout -- clients/*/package.json"); execSync("git checkout -- packages/*/package.json"); - execSync("git checkout -- protocol_tests/*/package.json"); + execSync("git checkout -- private/*/package.json"); // Kill the background verdaccio server verdaccio.kill(); diff --git a/tsconfig.json b/tsconfig.json index b799dc2fb58fe..86c6787052c4a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ "paths": { "@aws-sdk/*": ["packages/*/src"], "@aws-sdk/client-*": ["clients/client-*/"], - "@aws-sdk/aws-*": ["protocol_tests/aws-*/"], + "@aws-sdk/aws-*": ["private/aws-*/"], "@aws-sdk/lib-*": ["lib/*"] }, "preserveConstEnums": true,