Skip to content

Commit f5f8e76

Browse files
committed
fix: add esm dist folder to sigv4 browser and unversal
1 parent b641000 commit f5f8e76

File tree

11 files changed

+57
-11
lines changed

11 files changed

+57
-11
lines changed

packages/signature-v4-browser/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/build/
33
/coverage/
44
/docs/
5+
/dist/
56
*.tsbuildinfo
67
*.tgz
78
*.log

packages/signature-v4-browser/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
"description": "A standalone AWS Signature V4 request signer for browser JavaScript",
44
"version": "0.1.0-preview.6",
55
"scripts": {
6-
"prepublishOnly": "tsc",
6+
"build:cjs": "tsc -p ./tsconfig.test.json",
7+
"build:es": "tsc -p ./tsconfig.es.json",
8+
"build": "yarn build:es && yarn build:cjs",
9+
"prepublishOnly": "yarn build",
710
"pretest": "tsc -p tsconfig.test.json",
811
"test": "jest"
912
},
1013
"main": "./build/index.js",
1114
"types": "./build/index.d.ts",
15+
"browser": "./dist/es/index.js",
1216
"author": {
1317
"name": "AWS SDK for JavaScript Team",
1418
"url": "https://aws.amazon.com/javascript/"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"target": "es5",
5+
"module": "esNext",
6+
"moduleResolution": "node",
7+
"lib": ["dom", "es5", "es2015.promise", "es2015.collection"],
8+
"declaration": true,
9+
"sourceMap": true,
10+
"strict": true,
11+
"stripInternal": true,
12+
"rootDir": "./src",
13+
"outDir": "./dist/es",
14+
"importHelpers": true,
15+
"noEmitHelpers": true,
16+
"noUnusedLocals": true,
17+
"incremental": true
18+
}
19+
}

packages/signature-v4-browser/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "es2017",
44
"module": "commonjs",
55
"declaration": true,
66
"strict": true,
77
"sourceMap": true,
8-
"lib": ["dom", "es5", "es2015.promise", "es2015.collection"],
8+
"stripInternal": true,
99
"rootDir": "./src",
1010
"outDir": "./build",
1111
"importHelpers": true,

packages/signature-v4-universal/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/build/
33
/coverage/
44
/docs/
5+
/dist/
56
*.tsbuildinfo
67
*.tgz
78
*.log

packages/signature-v4-universal/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
"description": "A standalone AWS Signature V4 request signer targeting all JS environments",
44
"version": "0.1.0-preview.6",
55
"scripts": {
6-
"prepublishOnly": "tsc",
6+
"build:cjs": "tsc -p ./tsconfig.test.json",
7+
"build:es": "tsc -p ./tsconfig.es.json",
8+
"build": "yarn build:es && yarn build:cjs",
9+
"prepublishOnly": "yarn build",
710
"pretest": "tsc -p tsconfig.test.json",
811
"test": "jest"
912
},
1013
"main": "./build/index.js",
1114
"types": "./build/index.d.ts",
15+
"browser": "./dist/es/index.js",
1216
"author": {
1317
"name": "AWS SDK for JavaScript Team",
1418
"url": "https://aws.amazon.com/javascript/"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"target": "es5",
5+
"module": "esNext",
6+
"moduleResolution": "node",
7+
"lib": ["dom", "es5", "es2015.promise", "es2015.collection"],
8+
"declaration": true,
9+
"sourceMap": true,
10+
"strict": true,
11+
"stripInternal": true,
12+
"rootDir": "./src",
13+
"outDir": "./dist/es",
14+
"importHelpers": true,
15+
"noEmitHelpers": true,
16+
"noUnusedLocals": true,
17+
"incremental": true
18+
}
19+
}

packages/signature-v4-universal/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "es2017",
44
"module": "commonjs",
55
"declaration": true,
66
"strict": true,
77
"sourceMap": true,
8-
"lib": ["dom", "es5", "es2015.promise", "es2015.collection"],
8+
"stripInternal": true,
99
"rootDir": "./src",
1010
"outDir": "./build",
1111
"importHelpers": true,

packages/signature-v4/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/node_modules/
22
/build/
3-
/es/
3+
/dist/
44
/coverage/
55
/docs/
66
*.tsbuildinfo

packages/signature-v4/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"version": "0.1.0-preview.6",
44
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
55
"main": "./build/index.js",
6-
"browser": {
7-
"./build/index.js": "./es/index.js"
8-
},
6+
"browser": "./dist/es/index.js",
97
"scripts": {
108
"build:cjs": "tsc -p ./tsconfig.json",
119
"build:es": "tsc -p ./tsconfig.es.json",

packages/signature-v4/tsconfig.es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"strict": true,
1111
"stripInternal": true,
1212
"rootDir": "./src",
13-
"outDir": "./es",
13+
"outDir": "./dist/es",
1414
"importHelpers": true,
1515
"noEmitHelpers": true,
1616
"noUnusedLocals": true,

0 commit comments

Comments
 (0)