From fe346a0f2ce0fa36107b7943c5dd7faac2318ccf Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Fri, 22 Jan 2021 12:03:55 -0800 Subject: [PATCH] Remove Uglify Minification from Build Step for now --- sdk/quantum/quantum/api-extractor.json | 2 +- sdk/quantum/quantum/package.json | 5 ++--- sdk/quantum/quantum/rollup.config.js | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sdk/quantum/quantum/api-extractor.json b/sdk/quantum/quantum/api-extractor.json index 5fb5b21b56f2..39fb341950f7 100644 --- a/sdk/quantum/quantum/api-extractor.json +++ b/sdk/quantum/quantum/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./esm/index.d.ts", + "mainEntryPointFilePath": "./types/index.d.ts", "docModel": { "enabled": true }, "apiReport": { "enabled": true, "reportFolder": "./review" }, "dtsRollup": { diff --git a/sdk/quantum/quantum/package.json b/sdk/quantum/quantum/package.json index 919c2283756a..0830d859b1fc 100644 --- a/sdk/quantum/quantum/package.json +++ b/sdk/quantum/quantum/package.json @@ -51,11 +51,10 @@ "tsconfig.json" ], "scripts": { - "build": "tsc && rollup -c rollup.config.js && npm run minify && mkdirp ./review && npm run extract-api", + "build": "tsc && rollup -c rollup.config.js && mkdirp ./review && npm run extract-api", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/quantum.js.map'\" -o ./dist/quantum.min.js ./dist/quantum.js", "prepack": "npm install && npm run build", "extract-api": "api-extractor run --local" }, - "sideEffects": false, - "autoPublish": true + "sideEffects": false } diff --git a/sdk/quantum/quantum/rollup.config.js b/sdk/quantum/quantum/rollup.config.js index afd141f56bb5..eaa8c84a3ff4 100644 --- a/sdk/quantum/quantum/rollup.config.js +++ b/sdk/quantum/quantum/rollup.config.js @@ -12,7 +12,7 @@ import sourcemaps from "rollup-plugin-sourcemaps"; /** @type {rollup.RollupFileOptions} */ const config = { - input: "./esm/quantumClient.js", + input: "./dist-esm/quantumClient.js", external: ["@azure/core-http"], output: { file: "./dist/quantum.js",