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: replace prepublishOnly script with downlevel-dts #2537

Merged
merged 4 commits into from
Jul 1, 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
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions clients/client-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-acm-pca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-acm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-alexa-for-business/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-amp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-amplifybackend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-apigatewaymanagementapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-apigatewayv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-app-mesh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-appconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-appflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-appintegrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-application-auto-scaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-application-discovery-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-application-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-applicationcostprofiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-apprunner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-appstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-appsync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-athena/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-auditmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"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"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
Loading