Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: run downlevel-dts in prepublishOnly #2218

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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