From 4a62b0eeb999bf8e0b2c929c20291fbea90c134e Mon Sep 17 00:00:00 2001 From: biniam Date: Tue, 30 Jan 2018 13:26:27 -0500 Subject: [PATCH] build: drop dist6 related targets --- packages/authentication/package.json | 6 ++---- packages/context/package.json | 6 ++---- packages/core/package.json | 6 ++---- packages/example-getting-started/package.json | 5 ++--- packages/example-hello-world/package.json | 5 ++--- packages/example-log-extension/package.json | 5 ++--- packages/example-rpc-server/package.json | 6 ++---- packages/metadata/package.json | 6 ++---- packages/openapi-spec-builder/package.json | 6 ++---- packages/openapi-spec/package.json | 6 ++---- packages/openapi-v2/package.json | 4 +--- packages/repository-json-schema/package.json | 6 ++---- packages/repository/package.json | 6 ++---- packages/rest/package.json | 6 ++---- packages/testlab/package.json | 6 ++---- 15 files changed, 29 insertions(+), 56 deletions(-) diff --git a/packages/authentication/package.json b/packages/authentication/package.json index 55f5de213854..4272ce8fc5f0 100644 --- a/packages/authentication/package.json +++ b/packages/authentication/package.json @@ -7,12 +7,11 @@ }, "scripts": { "acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"", - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean loopback-authentication*.tgz dist dist6 package api-docs", + "clean": "lb-clean loopback-authentication*.tgz dist package api-docs", "integration": "lb-mocha \"DIST/test/integration/**/*.js\"", "prepublishOnly": "npm run build && npm run build:apidocs", "pretest": "npm run build:current", @@ -48,7 +47,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "api-docs", "src" ], diff --git a/packages/context/package.json b/packages/context/package.json index 917c9987b530..6aeee228761c 100644 --- a/packages/context/package.json +++ b/packages/context/package.json @@ -7,12 +7,11 @@ }, "scripts": { "acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"", - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean loopback-context*.tgz dist dist6 package api-docs", + "clean": "lb-clean loopback-context*.tgz dist package api-docs", "prepublishOnly": "npm run build && npm run build:apidocs", "pretest": "npm run build:current", "test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/acceptance/**/*.js\"", @@ -47,7 +46,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "api-docs", "src" ], diff --git a/packages/core/package.json b/packages/core/package.json index 01d049054c14..83a2701bc94c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -7,12 +7,11 @@ }, "scripts": { "acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"", - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean loopback-core*.tgz dist dist6 package api-docs", + "clean": "lb-clean loopback-core*.tgz dist package api-docs", "prepublishOnly": "npm run build && npm run build:apidocs", "pretest": "npm run build:current", "integration": "lb-mocha \"DIST/test/integration/**/*.js\"", @@ -38,7 +37,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "api-docs", "src" ], diff --git a/packages/example-getting-started/package.json b/packages/example-getting-started/package.json index f07c4dab3dae..2ff0f2174fae 100644 --- a/packages/example-getting-started/package.json +++ b/packages/example-getting-started/package.json @@ -9,12 +9,11 @@ }, "scripts": { "acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"", - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean *example-getting-started*.tgz dist dist6 package api-docs", + "clean": "lb-clean *example-getting-started*.tgz dist package api-docs", "prepublishOnly": "npm run build && npm run build:apidocs", "pretest": "npm run build:current", "test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/acceptance/**/*.js\"", diff --git a/packages/example-hello-world/package.json b/packages/example-hello-world/package.json index 5f88ea1eea31..baf3ea16f7ab 100644 --- a/packages/example-hello-world/package.json +++ b/packages/example-hello-world/package.json @@ -9,12 +9,11 @@ }, "scripts": { "acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"", - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean *example-hello-world*.tgz dist dist6 package api-docs", + "clean": "lb-clean *example-hello-world*.tgz dist package api-docs", "prepublishOnly": "npm run build && npm run build:apidocs", "verify": "npm pack && tar xf *example-hello-world*.tgz && tree package && npm run clean", "start": "npm run build && node ." diff --git a/packages/example-log-extension/package.json b/packages/example-log-extension/package.json index 0782afe2456d..3502866b46f7 100644 --- a/packages/example-log-extension/package.json +++ b/packages/example-log-extension/package.json @@ -8,13 +8,12 @@ "node": ">=6" }, "scripts": { - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", "build:watch": "lb-tsc --watch", - "clean": "lb-clean *example-log-extension-*.tgz dist dist6 package api-docs", + "clean": "lb-clean *example-log-extension-*.tgz dist package api-docs", "lint": "npm run prettier:check && npm run tslint", "lint:fix": "npm run prettier:fix && npm run tslint", "prettier:cli": "lb-prettier \"**/*.ts\" \"**/*.js\"", diff --git a/packages/example-rpc-server/package.json b/packages/example-rpc-server/package.json index 97e98ed383e8..0bb5733e10a2 100644 --- a/packages/example-rpc-server/package.json +++ b/packages/example-rpc-server/package.json @@ -11,10 +11,9 @@ "node": ">=6" }, "scripts": { - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:watch": "lb-tsc --watch", "clean": "lb-clean", "lint": "npm run prettier:check && npm run tslint", @@ -40,8 +39,7 @@ "README.md", "index.js", "index.d.ts", - "dist", - "dist6" + "dist" ], "dependencies": { "@loopback/context": "^4.0.0-alpha.29", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index e12c78f4d7a1..1ac71db284c8 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -7,12 +7,11 @@ }, "scripts": { "acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"", - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean loopback-metadata*.tgz dist dist6 package api-docs", + "clean": "lb-clean loopback-metadata*.tgz dist package api-docs", "prepublishOnly": "npm run build && npm run build:apidocs", "pretest": "npm run build:current", "test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/acceptance/**/*.js\"", @@ -43,7 +42,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "api-docs", "src" ], diff --git a/packages/openapi-spec-builder/package.json b/packages/openapi-spec-builder/package.json index 7190dda42e88..7bec1a61642a 100644 --- a/packages/openapi-spec-builder/package.json +++ b/packages/openapi-spec-builder/package.json @@ -6,12 +6,11 @@ "node": ">=6" }, "scripts": { - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean loopback-openapi-spec*.tgz dist dist6 package api-docs", + "clean": "lb-clean loopback-openapi-spec*.tgz dist package api-docs", "prepublishOnly": "npm run build && npm run build:apidocs", "verify": "npm pack && tar xf loopback-openapi-spec*.tgz && tree package && npm run clean" }, @@ -36,7 +35,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "api-docs", "src" ], diff --git a/packages/openapi-spec/package.json b/packages/openapi-spec/package.json index beedaadbc4c5..3f52fda8d1a9 100644 --- a/packages/openapi-spec/package.json +++ b/packages/openapi-spec/package.json @@ -9,12 +9,11 @@ "@loopback/build": "^4.0.0-alpha.12" }, "scripts": { - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean loopback-openapi-spec*.tgz dist dist6 package api-docs", + "clean": "lb-clean loopback-openapi-spec*.tgz dist package api-docs", "prepublishOnly": "npm run build && npm run build:apidocs", "verify": "npm pack && tar xf loopback-openapi-spec*.tgz && tree package && npm run clean" }, @@ -32,7 +31,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "api-docs", "src" ], diff --git a/packages/openapi-v2/package.json b/packages/openapi-v2/package.json index a8ad76e178d7..c63bfe6b986a 100644 --- a/packages/openapi-v2/package.json +++ b/packages/openapi-v2/package.json @@ -14,10 +14,9 @@ "@types/lodash": "^4.14.96" }, "scripts": { - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", "clean": "lb-clean loopback-openapi-v2*.tgz dist* package", "prepublishOnly": "npm run build && npm run build:apidocs", @@ -38,7 +37,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "api-docs", "src" ], diff --git a/packages/repository-json-schema/package.json b/packages/repository-json-schema/package.json index 420f9d64ae26..1db122b396bc 100644 --- a/packages/repository-json-schema/package.json +++ b/packages/repository-json-schema/package.json @@ -6,12 +6,11 @@ "node": ">=6" }, "scripts": { - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean loopback-json-schema*.tgz dist dist6 package api-docs", + "clean": "lb-clean loopback-json-schema*.tgz dist package api-docs", "prepublishOnly": "npm run build && npm run build:apidocs", "pretest": "npm run build:current", "test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/integration/**/*.js\" \"DIST/test/acceptance/**/*.js\"", @@ -43,7 +42,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "api-docs", "src" ], diff --git a/packages/repository/package.json b/packages/repository/package.json index bd37b45801c5..987ae5543074 100644 --- a/packages/repository/package.json +++ b/packages/repository/package.json @@ -8,12 +8,11 @@ "main": "index", "scripts": { "acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"", - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean loopback-repository*.tgz dist dist6 package api-docs", + "clean": "lb-clean loopback-repository*.tgz dist package api-docs", "prepublishOnly": "npm run build && npm run build:apidocs", "pretest": "npm run build:current", "test": "lb-mocha \"DIST/test/unit/**/*.js\" \"DIST/test/acceptance/**/*.js\"", @@ -37,7 +36,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "api-docs", "src" ], diff --git a/packages/rest/package.json b/packages/rest/package.json index a6364b365834..c040a838f714 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -7,12 +7,11 @@ }, "scripts": { "acceptance": "lb-mocha \"DIST/test/acceptance/**/*.js\"", - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", "build:apidocs": "lb-apidocs", - "clean": "lb-clean loopback-rest*.tgz dist dist6 package api-docs", + "clean": "lb-clean loopback-rest*.tgz dist package api-docs", "prepublishOnly": "npm run build && npm run build:apidocs", "pretest": "npm run build:current", "integration": "lb-mocha \"DIST/test/integration/**/*.js\"", @@ -51,7 +50,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "api-docs", "src" ], diff --git a/packages/testlab/package.json b/packages/testlab/package.json index 43ce54dbeca6..ab864991b802 100644 --- a/packages/testlab/package.json +++ b/packages/testlab/package.json @@ -6,11 +6,10 @@ "node": ">=6" }, "scripts": { - "build": "npm run build:dist && npm run build:dist6", + "build": "npm run build:dist", "build:current": "lb-tsc", "build:dist": "lb-tsc es2017", - "build:dist6": "lb-tsc es2015", - "clean": "lb-clean loopback-testlab*.tgz dist dist6 package api-docs", + "clean": "lb-clean loopback-testlab*.tgz dist package api-docs", "prepublishOnly": "npm run build", "pretest": "npm run build:current", "test": "lb-mocha \"DIST/test\"", @@ -41,7 +40,6 @@ "index.js", "index.d.ts", "dist/src", - "dist6/src", "should-as-function.d.ts", "src" ],