Skip to content

Commit

Permalink
chore: rename protocol_tests to private in config
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Oct 28, 2021
1 parent 57a2536 commit 8f9ba3f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
...base,
projects: [
"<rootDir>/lib/*/jest.config.js",
"<rootDir>/protocol_tests/*/jest.config.js",
"<rootDir>/private/*/jest.config.js",
"<rootDir>/packages/*/jest.config.js",
"<rootDir>/clients/*/jest.config.js",
],
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -107,7 +107,7 @@
"clients/*",
"lib/*",
"packages/*",
"protocol_tests/*"
"private/*"
],
"nohoist": [
"**/karma*",
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate-clients/copy-to-clients.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`));
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-clients/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion scripts/verdaccio-publish/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8f9ba3f

Please sign in to comment.