Skip to content

Commit 682ddd1

Browse files
jeskewsrchase
authored andcommitted
Standardize usage of TSLib across all packages, and ensure a single version is used (#77)
* Standardize usage of TSLib across all packages, and ensure a single version is used * Ensure noEmitHelpers is also set in each tsconfig file * Include TSLib as a dependency in all new modules and ensure importHelpers and noEmitHelpers are enabled by default
1 parent 00c0d0a commit 682ddd1

File tree

30 files changed

+314
-198
lines changed

30 files changed

+314
-198
lines changed
Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
{
2-
"name": "@aws/abort-controller",
3-
"version": "0.0.1",
4-
"private": true,
5-
"description": "A simple abort controller library",
6-
"main": "./build/index.js",
7-
"types": "./build/index.d.ts",
8-
"scripts": {
9-
"prepublishOnly": "tsc",
10-
"pretest": "tsc -p tsconfig.test.json",
11-
"test": "jest"
12-
},
13-
"author": "[email protected]",
14-
"license": "Apache-2.0",
15-
"dependencies": {
16-
"@aws/types": "^0.0.1"
17-
},
18-
"devDependencies": {
19-
"@types/jest": "^20.0.2",
20-
"jest": "^20.0.4",
21-
"typescript": "^2.3"
22-
}
23-
}
2+
"name": "@aws/abort-controller",
3+
"version": "0.0.1",
4+
"private": true,
5+
"description": "A simple abort controller library",
6+
"main": "./build/index.js",
7+
"types": "./build/index.d.ts",
8+
"scripts": {
9+
"prepublishOnly": "tsc",
10+
"pretest": "tsc -p tsconfig.test.json",
11+
"test": "jest"
12+
},
13+
"author": {
14+
"name": "AWS SDK for JavaScript Team",
15+
"email": "[email protected]",
16+
"url": "https://aws.amazon.com/javascript/"
17+
},
18+
"license": "Apache-2.0",
19+
"dependencies": {
20+
"@aws/types": "^0.0.1",
21+
"tslib": "^1.8.0"
22+
},
23+
"devDependencies": {
24+
"@types/jest": "^20.0.2",
25+
"jest": "^20.0.4",
26+
"typescript": "^2.3"
27+
}
28+
}

packages/abort-controller/tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"declaration": true,
1212
"stripInternal": true,
1313
"rootDir": "./src",
14-
"outDir": "./build"
14+
"outDir": "./build",
15+
"importHelpers": true,
16+
"noEmitHelpers": true
1517
}
16-
}
18+
}

packages/config-resolver/package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,20 @@
88
},
99
"main": "./build/index.js",
1010
"types": "./build/index.d.ts",
11-
"author": "[email protected]",
11+
"author": {
12+
"name": "AWS SDK for JavaScript Team",
13+
"email": "[email protected]",
14+
"url": "https://aws.amazon.com/javascript/"
15+
},
1216
"license": "Apache-2.0",
1317
"devDependencies": {
1418
"@types/jest": "^20.0.2",
1519
"typescript": "^2.3",
16-
"jest": "^20.0.4"
20+
"jest": "^20.0.4",
21+
"tslib": "^1.8.0"
1722
},
1823
"dependencies": {
19-
"@aws/types": "^0.0.1"
24+
"@aws/types": "^0.0.1",
25+
"tslib": "^1.8.0"
2026
}
21-
}
27+
}

packages/config-resolver/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"es2015.symbol.wellknown"
1515
],
1616
"rootDir": "./src",
17-
"outDir": "./build"
17+
"outDir": "./build",
18+
"importHelpers": true,
19+
"noEmitHelpers": true
1820
}
1921
}

packages/credential-provider-imds/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@
1313
"aws",
1414
"credentials"
1515
],
16-
"author": "[email protected]",
16+
"author": {
17+
"name": "AWS SDK for JavaScript Team",
18+
"email": "[email protected]",
19+
"url": "https://aws.amazon.com/javascript/"
20+
},
1721
"license": "Apache-2.0",
1822
"dependencies": {
1923
"@aws/property-provider": "^0.0.1",
2024
"@aws/types": "^0.0.1",
21-
"tslib": "^1.7.1"
25+
"tslib": "^1.8.0"
2226
},
2327
"devDependencies": {
2428
"@types/jest": "^20.0.2",
@@ -27,4 +31,4 @@
2731
"typescript": "^2.3"
2832
},
2933
"types": "./build/index.d.ts"
30-
}
34+
}

packages/credential-provider-imds/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"es2015.collection"
1313
],
1414
"sourceRoot": "./src",
15-
"outDir": "./build"
15+
"outDir": "./build",
16+
"noEmitHelpers": true
1617
}
1718
}
Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
{
2-
"name": "@aws/fetch-http-handler",
3-
"private": true,
4-
"version": "0.0.1",
5-
"description": "Provides a way to make requests",
6-
"scripts": {
7-
"prepublishOnly": "tsc",
8-
"pretest": "tsc -p tsconfig.test.json",
9-
"test": "jest --coverage"
10-
},
11-
"author": "[email protected]",
12-
"license": "Apache-2.0",
13-
"main": "./build/index.js",
14-
"types": "./build/index.d.ts",
15-
"dependencies": {
16-
"@aws/types": "^0.0.1",
17-
"tslib": "^1.8.0"
18-
},
19-
"devDependencies": {
20-
"@aws/abort-controller": "^0.0.1",
21-
"@types/jest": "^20.0.2",
22-
"@types/node": "^8.0.34",
23-
"jest": "^20.0.4",
24-
"typescript": "^2.3"
25-
}
26-
}
2+
"name": "@aws/fetch-http-handler",
3+
"private": true,
4+
"version": "0.0.1",
5+
"description": "Provides a way to make requests",
6+
"scripts": {
7+
"prepublishOnly": "tsc",
8+
"pretest": "tsc -p tsconfig.test.json",
9+
"test": "jest --coverage"
10+
},
11+
"author": {
12+
"name": "AWS SDK for JavaScript Team",
13+
"email": "[email protected]",
14+
"url": "https://aws.amazon.com/javascript/"
15+
},
16+
"license": "Apache-2.0",
17+
"main": "./build/index.js",
18+
"types": "./build/index.d.ts",
19+
"dependencies": {
20+
"@aws/types": "^0.0.1",
21+
"tslib": "^1.8.0"
22+
},
23+
"devDependencies": {
24+
"@aws/abort-controller": "^0.0.1",
25+
"@types/jest": "^20.0.2",
26+
"@types/node": "^8.0.34",
27+
"jest": "^20.0.4",
28+
"typescript": "^2.3"
29+
}
30+
}
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"compilerOptions": {
3-
"target": "es5",
4-
"module": "commonjs",
5-
"declaration": true,
6-
"strict": true,
7-
"sourceMap": true,
8-
"downlevelIteration": true,
9-
"importHelpers": true,
10-
"noEmitHelpers": true,
11-
"lib": [
12-
"dom",
13-
"es5",
14-
"es2015.promise",
15-
"es2015.iterable"
16-
],
17-
"rootDir": "./src",
18-
"outDir": "./build"
19-
}
20-
}
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "commonjs",
5+
"declaration": true,
6+
"strict": true,
7+
"sourceMap": true,
8+
"downlevelIteration": true,
9+
"importHelpers": true,
10+
"noEmitHelpers": true,
11+
"lib": [
12+
"dom",
13+
"es5",
14+
"es2015.promise",
15+
"es2015.iterable"
16+
],
17+
"rootDir": "./src",
18+
"outDir": "./build"
19+
}
20+
}

packages/is-array-buffer/package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
"pretest": "tsc -p tsconfig.test.json",
88
"test": "jest"
99
},
10-
"author": "[email protected]",
11-
"license": "UNLICENSED",
10+
"author": {
11+
"name": "AWS SDK for JavaScript Team",
12+
"email": "[email protected]",
13+
"url": "https://aws.amazon.com/javascript/"
14+
},
15+
"license": "Apache-2.0",
1216
"main": "./build/index.js",
1317
"devDependencies": {
1418
"@types/jest": "^20.0.2",
1519
"jest": "^20.0.4",
1620
"typescript": "^2.3"
1721
},
18-
"types": "./build/index.d.ts"
22+
"types": "./build/index.d.ts",
23+
"dependencies": {
24+
"tslib": "^1.8.0"
25+
}
1926
}

packages/is-array-buffer/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"strict": true,
1111
"sourceMap": true,
1212
"sourceRoot": "./src",
13-
"outDir": "./build"
13+
"outDir": "./build",
14+
"importHelpers": true,
15+
"noEmitHelpers": true
1416
}
1517
}

packages/middleware-content-length/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
},
99
"main": "./build/index.js",
1010
"types": "./build/index.d.ts",
11-
"author": "[email protected]",
11+
"author": {
12+
"name": "AWS SDK for JavaScript Team",
13+
"email": "[email protected]",
14+
"url": "https://aws.amazon.com/javascript/"
15+
},
1216
"license": "Apache-2.0",
1317
"dependencies": {
14-
"@aws/types": "^0.0.1"
18+
"@aws/types": "^0.0.1",
19+
"tslib": "^1.8.0"
1520
},
1621
"devDependencies": {
1722
"@types/jest": "^20.0.2",

packages/middleware-content-length/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"es2015.symbol.wellknown"
1515
],
1616
"rootDir": "./src",
17-
"outDir": "./build"
17+
"outDir": "./build",
18+
"importHelpers": true,
19+
"noEmitHelpers": true
1820
}
1921
}
Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
{
2-
"name": "@aws/middleware-stack",
3-
"private": true,
4-
"version": "0.0.1",
5-
"description": "Provides a means for composing multiple middleware functions into a single handler",
6-
"scripts": {
7-
"prepublishOnly": "tsc",
8-
"pretest": "tsc -p tsconfig.test.json",
9-
"test": "jest"
10-
},
11-
"author": "[email protected]",
12-
"license": "Apache-2.0",
13-
"main": "./build/index.js",
14-
"types": "./build/index.d.ts",
15-
"dependencies": {
16-
"@aws/types": "^0.0.1"
17-
},
18-
"devDependencies": {
19-
"@types/jest": "^20.0.2",
20-
"jest": "^20.0.4",
21-
"typescript": "^2.3"
22-
}
23-
}
2+
"name": "@aws/middleware-stack",
3+
"private": true,
4+
"version": "0.0.1",
5+
"description": "Provides a means for composing multiple middleware functions into a single handler",
6+
"scripts": {
7+
"prepublishOnly": "tsc",
8+
"pretest": "tsc -p tsconfig.test.json",
9+
"test": "jest"
10+
},
11+
"author": {
12+
"name": "AWS SDK for JavaScript Team",
13+
"email": "[email protected]",
14+
"url": "https://aws.amazon.com/javascript/"
15+
},
16+
"license": "Apache-2.0",
17+
"main": "./build/index.js",
18+
"types": "./build/index.d.ts",
19+
"dependencies": {
20+
"@aws/types": "^0.0.1",
21+
"tslib": "^1.8.0"
22+
},
23+
"devDependencies": {
24+
"@types/jest": "^20.0.2",
25+
"jest": "^20.0.4",
26+
"typescript": "^2.3"
27+
}
28+
}
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"compilerOptions": {
3-
"target": "es5",
4-
"module": "commonjs",
5-
"declaration": true,
6-
"strict": true,
7-
"sourceMap": true,
8-
"lib": [
9-
"es5",
10-
"es2015.promise",
11-
"es2015.collection"
12-
],
13-
"rootDir": "./src",
14-
"outDir": "./build"
15-
}
16-
}
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "commonjs",
5+
"declaration": true,
6+
"strict": true,
7+
"sourceMap": true,
8+
"lib": [
9+
"es5",
10+
"es2015.promise",
11+
"es2015.collection"
12+
],
13+
"rootDir": "./src",
14+
"outDir": "./build",
15+
"importHelpers": true,
16+
"noEmitHelpers": true
17+
}
18+
}

0 commit comments

Comments
 (0)