Skip to content

Commit 65ffa92

Browse files
jeskewsrchase
authored andcommitted
Organization/src and build instead of lib (#48)
* Update credential-provider-base to use src/build instead of lib * Update credential-provider-env to use src/build instead of lib * Update credential-provider-imds to use src/build instead of lib * Update credential-provider-ini to use src/build instead of lib * Update crypto-ie11-detection to use src/build instead of lib * Update crypto-supports-webcrypto to use src/build instead of lib * Update crypto-random-source-browser to use src/build instead of lib * Update crypto-random-source-node to use src/build instead of lib * Update crypto-random-source-universal to use src/build instead of lib * Update util-utf8-browser to use src/build instead of lib * Update crypto-sha256-browser to use src/build instead of lib * Update is-array-buffer to use src/build instead of lib * Update util-buffer-from to use src/build instead of lib * Update crypto-sha256-node to use src/build instead of lib * Update crypto-sha256-universal to use src/build instead of lib * Update default-credential-provider to use src/build instead of lib * Update is-iterable to use src/build instead of lib * Update is-node to use src/build instead of lib * Update json-builder to use src/build instead of lib * Update json-parser to use src/build instead of lib * Update protocol-json-rpc to use src/build instead of lib * Update protocol-timestamp to use src/build instead of lib * Update query-builder to use src/build instead of lib * Update response-metadata-extractor to use src/build instead of lib * Update service-model to use src/build instead of lib * Update service-types-generator to use src/build instead of lib * Update shared-ini-file-loader to use src/build instead of lib * Update signature-v4 to use src/build instead of lib * Update sns-message-validator to use src/build instead of lib * Update types to use src/build instead of lib * Update util-base64-browser to use src/build instead of lib * Update util-base64-node to use src/build instead of lib * Update util-base64-universal to use src/build instead of lib * Update util-hex-encoding to use src/build instead of lib * Update util-locate-window to use src/build instead of lib * Update util-utf8-node to use src/build instead of lib * Update util-utf8-universal to use src/build instead of lib * Update xml-builder to use src/build instead of lib * Update xml-parser to use src/build instead of lib * Update tsconfig.json to use rootDir instead of sourceDir * Add valid ignore files
1 parent e5de284 commit 65ffa92

Some content is hidden

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

72 files changed

+399
-285
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
/node_modules/
2-
*.js
3-
*.js.map
4-
*.d.ts
2+
/build/
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/src/
2+
/coverage/
3+
tsconfig.test.json
4+
5+
*.spec.js
6+
*.spec.d.ts
7+
*.spec.js.map
8+
9+
*.mock.js
10+
*.mock.d.ts
11+
*.mock.js.map
12+
13+
*.fixture.js
14+
*.fixture.d.ts
15+
*.fixture.js.map

packages/credential-provider-imds/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
{
2-
"name": "@aws/credential-provider-imds",
3-
"version": "0.0.1",
4-
"private": true,
5-
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
6-
"main": "index.js",
7-
"scripts": {
8-
"prepublishOnly": "tsc",
9-
"pretest": "tsc -p tsconfig.test.json",
10-
"test": "jest"
11-
},
12-
"keywords": [
13-
"aws",
14-
"credentials"
15-
],
16-
"author": "[email protected]",
17-
"license": "UNLICENSED",
18-
"dependencies": {
19-
"@aws/credential-provider-base": "^0.0.1",
20-
"@aws/types": "^0.0.1",
21-
"tslib": "^1.7.1"
22-
},
23-
"devDependencies": {
24-
"@types/jest": "^20.0.2",
25-
"@types/node": "^7.0.12",
26-
"jest": "^20.0.4",
27-
"typescript": "^2.3"
28-
}
29-
}
2+
"name": "@aws/credential-provider-imds",
3+
"version": "0.0.1",
4+
"private": true,
5+
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
6+
"main": "./build/index.js",
7+
"scripts": {
8+
"prepublishOnly": "tsc",
9+
"pretest": "tsc -p tsconfig.test.json",
10+
"test": "jest"
11+
},
12+
"keywords": [
13+
"aws",
14+
"credentials"
15+
],
16+
"author": "[email protected]",
17+
"license": "UNLICENSED",
18+
"dependencies": {
19+
"@aws/credential-provider-base": "^0.0.1",
20+
"@aws/types": "^0.0.1",
21+
"tslib": "^1.7.1"
22+
},
23+
"devDependencies": {
24+
"@types/jest": "^20.0.2",
25+
"@types/node": "^7.0.12",
26+
"jest": "^20.0.4",
27+
"typescript": "^2.3"
28+
},
29+
"types": "./build/index.d.ts"
30+
}

packages/credential-provider-imds/__tests__/fromContainerMetadata.ts renamed to packages/credential-provider-imds/src/fromContainerMetadata.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import {
33
ENV_CMDS_FULL_URI,
44
ENV_CMDS_RELATIVE_URI,
55
fromContainerMetadata
6-
} from "../lib/fromContainerMetadata";
7-
import {httpGet} from "../lib/remoteProvider/httpGet";
6+
} from "./fromContainerMetadata";
7+
import {httpGet} from "./remoteProvider/httpGet";
88
import {
99
fromImdsCredentials,
1010
ImdsCredentials
11-
} from "../lib/remoteProvider/ImdsCredentials";
11+
} from "./remoteProvider/ImdsCredentials";
1212
import MockInstance = jest.MockInstance;
1313
import {RequestOptions} from "http";
1414

@@ -17,7 +17,7 @@ interface HttpGet {
1717
}
1818

1919
const mockHttpGet = <MockInstance<HttpGet>><any>httpGet;
20-
jest.mock('../lib/remoteProvider/httpGet', () => ({httpGet: jest.fn()}));
20+
jest.mock('./remoteProvider/httpGet', () => ({httpGet: jest.fn()}));
2121

2222
const relativeUri = process.env[ENV_CMDS_RELATIVE_URI];
2323
const fullUri = process.env[ENV_CMDS_FULL_URI];

packages/credential-provider-imds/__tests__/fromInstanceMetadata.ts renamed to packages/credential-provider-imds/src/fromInstanceMetadata.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import {fromInstanceMetadata} from "../lib/fromInstanceMetadata";
2-
import {httpGet} from "../lib/remoteProvider/httpGet";
1+
import {fromInstanceMetadata} from "./fromInstanceMetadata";
2+
import {httpGet} from "./remoteProvider/httpGet";
33
import {
44
fromImdsCredentials,
55
ImdsCredentials
6-
} from "../lib/remoteProvider/ImdsCredentials";
6+
} from "./remoteProvider/ImdsCredentials";
77
import MockInstance = jest.MockInstance;
88
import {RequestOptions} from "http";
99

@@ -12,7 +12,7 @@ interface HttpGet {
1212
}
1313

1414
const mockHttpGet = <MockInstance<HttpGet>><any>httpGet;
15-
jest.mock('../lib/remoteProvider/httpGet', () => ({httpGet: jest.fn()}));
15+
jest.mock('./remoteProvider/httpGet', () => ({httpGet: jest.fn()}));
1616

1717
beforeEach(() => {
1818
mockHttpGet.mockReset();
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from './fromContainerMetadata';
2+
export * from './fromInstanceMetadata';
3+
export * from './remoteProvider/RemoteProviderInit';

packages/credential-provider-imds/__tests__/remoteProvider/ImdsCredentials.ts renamed to packages/credential-provider-imds/src/remoteProvider/ImdsCredentials.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
fromImdsCredentials,
33
ImdsCredentials,
44
isImdsCredentials,
5-
} from "../../lib/remoteProvider/ImdsCredentials";
5+
} from "./ImdsCredentials";
66
import {Credentials} from "@aws/types";
77

88
const creds: ImdsCredentials = Object.freeze({

packages/credential-provider-imds/__tests__/remoteProvider/RemoteProviderInit.ts renamed to packages/credential-provider-imds/src/remoteProvider/RemoteProviderInit.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
DEFAULT_MAX_RETRIES,
33
DEFAULT_TIMEOUT,
44
providerConfigFromInit,
5-
} from "../../lib/remoteProvider/RemoteProviderInit";
5+
} from "./RemoteProviderInit";
66

77
describe('providerConfigFromInit', () => {
88
it('should populate default values for retries and timeouts', () => {

packages/credential-provider-imds/__tests__/remoteProvider/httpGet.ts renamed to packages/credential-provider-imds/src/remoteProvider/httpGet.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {createServer} from 'http';
2-
import {httpGet} from "../../lib/remoteProvider/httpGet";
2+
import {httpGet} from "./httpGet";
33
import {CredentialError} from '@aws/credential-provider-base';
44

55
let matchers: {[url: string]: string} = {};

packages/credential-provider-imds/__tests__/remoteProvider/retry.ts renamed to packages/credential-provider-imds/src/remoteProvider/retry.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {retry} from "../../lib/remoteProvider/retry";
1+
import {retry} from "./retry";
22

33
describe('retry', () => {
44
it('should retry a function the specified number of times', async () => {
Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{
2-
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "es5",
5-
"declaration": true,
6-
"strict": true,
7-
"sourceMap": true,
8-
"importHelpers": true,
9-
"lib": [
10-
"es5",
11-
"es2015.promise",
12-
"es2015.collection"
13-
]
14-
}
15-
}
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"target": "es5",
5+
"declaration": true,
6+
"strict": true,
7+
"sourceMap": true,
8+
"importHelpers": true,
9+
"lib": [
10+
"es5",
11+
"es2015.promise",
12+
"es2015.collection"
13+
],
14+
"sourceRoot": "./src",
15+
"outDir": "./build"
16+
}
17+
}
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"sourceMap": false,
5-
"inlineSourceMap": true,
6-
"inlineSources": true
7-
}
8-
}
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"sourceMap": false,
5+
"inlineSourceMap": true,
6+
"inlineSources": true,
7+
"sourceRoot": "./src",
8+
"outDir": "./build"
9+
}
10+
}

packages/is-array-buffer/.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
*.js
2-
*.js.map
3-
*.d.ts
1+
/node_modules/
2+
/build/

packages/is-array-buffer/.npmignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/src/
2+
/coverage/
3+
tsconfig.test.json
4+
5+
*.spec.js
6+
*.spec.d.ts
7+
*.spec.js.map
8+
9+
*.mock.js
10+
*.mock.d.ts
11+
*.mock.js.map
12+
13+
*.fixture.js
14+
*.fixture.d.ts
15+
*.fixture.js.map

packages/is-array-buffer/package.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
2-
"name": "@aws/is-array-buffer",
3-
"private": true,
4-
"version": "0.0.1",
5-
"description": "Provides a function for detecting if an argument is an ArrayBuffer",
6-
"scripts": {
7-
"pretest": "tsc -p tsconfig.test.json",
8-
"test": "jest"
9-
},
10-
"author": "[email protected]",
11-
"license": "UNLICENSED",
12-
"main": "index.js",
13-
"devDependencies": {
14-
"@types/jest": "^20.0.2",
15-
"jest": "^20.0.4",
16-
"typescript": "^2.3"
17-
}
18-
}
2+
"name": "@aws/is-array-buffer",
3+
"private": true,
4+
"version": "0.0.1",
5+
"description": "Provides a function for detecting if an argument is an ArrayBuffer",
6+
"scripts": {
7+
"pretest": "tsc -p tsconfig.test.json",
8+
"test": "jest"
9+
},
10+
"author": "[email protected]",
11+
"license": "UNLICENSED",
12+
"main": "./build/index.js",
13+
"devDependencies": {
14+
"@types/jest": "^20.0.2",
15+
"jest": "^20.0.4",
16+
"typescript": "^2.3"
17+
},
18+
"types": "./build/index.d.ts"
19+
}

packages/is-array-buffer/__tests__/index.ts renamed to packages/is-array-buffer/src/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {isArrayBuffer} from "../";
1+
import {isArrayBuffer} from "./";
22

33
describe('isArrayBuffer', () => {
44
const arrayBufferConstructor = ArrayBuffer;
Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
2-
"compilerOptions": {
3-
"target": "es5",
4-
"lib": [
5-
"es5",
6-
"es2015.collection"
7-
],
8-
"module": "commonjs",
9-
"declaration": true,
10-
"strict": true,
11-
"sourceMap": true
12-
}
13-
}
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": [
5+
"es5",
6+
"es2015.collection"
7+
],
8+
"module": "commonjs",
9+
"declaration": true,
10+
"strict": true,
11+
"sourceMap": true,
12+
"sourceRoot": "./src",
13+
"outDir": "./build"
14+
}
15+
}
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"extends": "./tsconfig.json",
3-
"compilerOptions": {
4-
"sourceMap": false,
5-
"inlineSourceMap": true,
6-
"inlineSources": true
7-
}
8-
}
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"sourceMap": false,
5+
"inlineSourceMap": true,
6+
"inlineSources": true,
7+
"sourceRoot": "./src",
8+
"outDir": "./build"
9+
}
10+
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
/node_modules/
2-
*.js
3-
*.js.map
4-
*.d.ts
2+
/build/
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/src/
2+
/coverage/
3+
tsconfig.test.json
4+
5+
*.spec.js
6+
*.spec.d.ts
7+
*.spec.js.map
8+
9+
*.mock.js
10+
*.mock.d.ts
11+
*.mock.js.map
12+
13+
*.fixture.js
14+
*.fixture.d.ts
15+
*.fixture.js.map
Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
{
2-
"name": "@aws/shared-ini-file-loader",
3-
"private": true,
4-
"version": "0.0.1",
5-
"devDependencies": {
6-
"@types/jest": "^20.0.2",
7-
"@types/node": "^7.0.12",
8-
"jest": "^20.0.4",
9-
"typescript": "^2.3"
10-
},
11-
"scripts": {
12-
"prepublishOnly": "tsc",
13-
"test": "tsc"
14-
},
15-
"author": "[email protected]",
16-
"license": "UNLICENSED"
2+
"name": "@aws/shared-ini-file-loader",
3+
"private": true,
4+
"version": "0.0.1",
5+
"devDependencies": {
6+
"@types/jest": "^20.0.2",
7+
"@types/node": "^7.0.12",
8+
"jest": "^20.0.4",
9+
"typescript": "^2.3"
10+
},
11+
"scripts": {
12+
"prepublishOnly": "tsc",
13+
"pretest": "tsc -p tsconfig.test.json",
14+
"test": "jest"
15+
},
16+
"author": "[email protected]",
17+
"license": "UNLICENSED",
18+
"main": "./build/index.js",
19+
"types": "./build/index.d.ts"
1720
}

0 commit comments

Comments
 (0)