Skip to content

Commit

Permalink
fix: run downlevel-dts in prepublishOnly (#2218)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored and JordonPhillips committed Apr 8, 2021
1 parent 2b0532a commit 052a9ad
Show file tree
Hide file tree
Showing 345 changed files with 596 additions and 940 deletions.
5 changes: 2 additions & 3 deletions clients/client-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-acm-pca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-acm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-alexa-for-business/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-amplifybackend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "yarn build && jest --coverage --passWithNoTests",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-apigatewaymanagementapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-apigatewayv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-app-mesh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-appconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-appflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "yarn build && jest --coverage --passWithNoTests",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-appintegrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "yarn build && jest --coverage --passWithNoTests",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-application-auto-scaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-application-discovery-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-application-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-appstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-appsync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-athena/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-auditmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "yarn build && jest --coverage --passWithNoTests",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-auto-scaling-plans/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions clients/client-auto-scaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",
"remove-dist": "rimraf ./dist",
"remove-documentation": "rimraf ./docs",
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
Loading

0 comments on commit 052a9ad

Please sign in to comment.