From f45a29af46cf0c86c770af97218eef559dcd3535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Fri, 18 Jun 2021 11:01:55 +0200 Subject: [PATCH] fix: remove ESM support Due to issues in frontend repos using webpack to build, we decided to remove the ESM support for now. Related: https://github.com/apify/apify-web/pull/1169 --- package.json | 1 - packages/consts/package.json | 11 ----------- packages/datastructures/package.json | 8 -------- packages/git/package.json | 8 -------- packages/hubspot_client/package.json | 8 -------- packages/image_proxy_client/package.json | 8 -------- packages/input_schema/package.json | 8 -------- packages/log/package.json | 8 -------- packages/markdown/package.json | 8 -------- packages/salesforce_client/package.json | 8 -------- packages/utilities/package.json | 8 -------- 11 files changed, 84 deletions(-) diff --git a/package.json b/package.json index 96d2b1a76..42d206f31 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,6 @@ "commitlint": "^12.1.1", "deploy-web-to-s3": "^1.3.0", "eslint": "^7.25.0", - "gen-esm-wrapper": "^1.1.1", "husky": "^6.0.0", "jest": "^27.0.4", "lerna": "^4.0.0", diff --git a/packages/consts/package.json b/packages/consts/package.json index 3639ec1bb..24599ab62 100644 --- a/packages/consts/package.json +++ b/packages/consts/package.json @@ -3,14 +3,7 @@ "version": "1.1.2", "description": "Tools and constants shared across Apify projects.", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" - } - }, "keywords": [ "apify" ], @@ -34,15 +27,11 @@ "homepage": "https://apify.com", "scripts": { "build": "npm run clean && npm run compile && npm run copy", - "postbuild": "npx gen-esm-wrapper dist/index.js dist/index.mjs", "clean": "rimraf ./dist", "compile": "tsc -p tsconfig.build.json", "copy": "ts-node -T ../../scripts/copy.ts" }, "publishConfig": { "access": "public" - }, - "devDependencies": { - "gen-esm-wrapper": "^1.1.1" } } diff --git a/packages/datastructures/package.json b/packages/datastructures/package.json index a19a5b1c8..90d814586 100644 --- a/packages/datastructures/package.json +++ b/packages/datastructures/package.json @@ -3,14 +3,7 @@ "version": "1.0.0", "description": "Tools and constants shared across Apify projects.", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" - } - }, "keywords": [ "apify" ], @@ -34,7 +27,6 @@ "homepage": "https://apify.com", "scripts": { "build": "npm run clean && npm run compile && npm run copy", - "postbuild": "npx gen-esm-wrapper dist/index.js dist/index.mjs", "clean": "rimraf ./dist", "compile": "tsc -p tsconfig.build.json", "copy": "ts-node -T ../../scripts/copy.ts" diff --git a/packages/git/package.json b/packages/git/package.json index 4008d1d8d..55be3a80e 100644 --- a/packages/git/package.json +++ b/packages/git/package.json @@ -3,14 +3,7 @@ "version": "1.0.0", "description": "Tools and constants shared across Apify projects.", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" - } - }, "keywords": [ "apify" ], @@ -34,7 +27,6 @@ "homepage": "https://apify.com", "scripts": { "build": "npm run clean && npm run compile && npm run copy", - "postbuild": "npx gen-esm-wrapper dist/index.js dist/index.mjs", "clean": "rimraf ./dist", "compile": "tsc -p tsconfig.build.json", "copy": "ts-node -T ../../scripts/copy.ts" diff --git a/packages/hubspot_client/package.json b/packages/hubspot_client/package.json index 8f32ec3dc..b451adab6 100644 --- a/packages/hubspot_client/package.json +++ b/packages/hubspot_client/package.json @@ -3,14 +3,7 @@ "version": "1.0.0", "description": "Tools and constants shared across Apify projects.", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" - } - }, "keywords": [ "apify" ], @@ -34,7 +27,6 @@ "homepage": "https://apify.com", "scripts": { "build": "npm run clean && npm run compile && npm run copy", - "postbuild": "yarn gen-esm-wrapper dist/index.js dist/index.mjs", "clean": "rimraf ./dist", "compile": "tsc -p tsconfig.build.json", "copy": "ts-node -T ../../scripts/copy.ts" diff --git a/packages/image_proxy_client/package.json b/packages/image_proxy_client/package.json index bdde1e9fb..ae715137f 100644 --- a/packages/image_proxy_client/package.json +++ b/packages/image_proxy_client/package.json @@ -3,14 +3,7 @@ "version": "1.0.0", "description": "Tools and constants shared across Apify projects.", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" - } - }, "keywords": [ "apify" ], @@ -34,7 +27,6 @@ "homepage": "https://apify.com", "scripts": { "build": "npm run clean && npm run compile && npm run copy", - "postbuild": "npx gen-esm-wrapper dist/index.js dist/index.mjs", "clean": "rimraf ./dist", "compile": "tsc -p tsconfig.build.json", "copy": "ts-node -T ../../scripts/copy.ts" diff --git a/packages/input_schema/package.json b/packages/input_schema/package.json index 82484d57c..86dc44cc3 100644 --- a/packages/input_schema/package.json +++ b/packages/input_schema/package.json @@ -3,14 +3,7 @@ "version": "1.0.3", "description": "Tools and constants shared across Apify projects.", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" - } - }, "keywords": [ "apify" ], @@ -34,7 +27,6 @@ "homepage": "https://apify.com", "scripts": { "build": "npm run clean && npm run compile && npm run copy", - "postbuild": "npx gen-esm-wrapper dist/index.js dist/index.mjs", "clean": "rimraf ./dist", "compile": "tsc -p tsconfig.build.json", "copy": "ts-node -T ../../scripts/copy.ts" diff --git a/packages/log/package.json b/packages/log/package.json index c0e031ed5..f7923cc0d 100644 --- a/packages/log/package.json +++ b/packages/log/package.json @@ -3,14 +3,7 @@ "version": "1.0.4", "description": "Tools and constants shared across Apify projects.", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" - } - }, "keywords": [ "apify" ], @@ -34,7 +27,6 @@ "homepage": "https://apify.com", "scripts": { "build": "npm run clean && npm run compile && npm run copy", - "postbuild": "npx gen-esm-wrapper dist/index.js dist/index.mjs", "clean": "rimraf ./dist", "compile": "tsc -p tsconfig.build.json", "copy": "ts-node -T ../../scripts/copy.ts" diff --git a/packages/markdown/package.json b/packages/markdown/package.json index 856736b5d..14e62e53c 100644 --- a/packages/markdown/package.json +++ b/packages/markdown/package.json @@ -3,14 +3,7 @@ "version": "1.0.5", "description": "Tools and constants shared across Apify projects.", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" - } - }, "keywords": [ "apify" ], @@ -34,7 +27,6 @@ "homepage": "https://apify.com", "scripts": { "build": "npm run clean && npm run compile && npm run copy", - "postbuild": "npx gen-esm-wrapper dist/index.js dist/index.mjs", "clean": "rimraf ./dist", "compile": "tsc -p tsconfig.build.json", "copy": "ts-node -T ../../scripts/copy.ts" diff --git a/packages/salesforce_client/package.json b/packages/salesforce_client/package.json index 7d76b125d..fba6b4acf 100644 --- a/packages/salesforce_client/package.json +++ b/packages/salesforce_client/package.json @@ -3,14 +3,7 @@ "version": "1.0.0", "description": "Tools and constants shared across Apify projects.", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" - } - }, "keywords": [ "apify" ], @@ -34,7 +27,6 @@ "homepage": "https://apify.com", "scripts": { "build": "npm run clean && npm run compile && npm run copy", - "postbuild": "npx gen-esm-wrapper dist/index.js dist/index.mjs", "clean": "rimraf ./dist", "compile": "tsc -p tsconfig.build.json", "copy": "ts-node -T ../../scripts/copy.ts" diff --git a/packages/utilities/package.json b/packages/utilities/package.json index db4ee5b20..9eb07af24 100644 --- a/packages/utilities/package.json +++ b/packages/utilities/package.json @@ -3,14 +3,7 @@ "version": "1.0.5", "description": "Tools and constants shared across Apify projects.", "main": "dist/index.js", - "module": "dist/index.mjs", "typings": "dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" - } - }, "keywords": [ "apify" ], @@ -34,7 +27,6 @@ "homepage": "https://apify.com", "scripts": { "build": "npm run clean && npm run compile && npm run copy", - "postbuild": "npx gen-esm-wrapper dist/index.js dist/index.mjs", "clean": "rimraf ./dist", "compile": "tsc -p tsconfig.build.json", "copy": "ts-node -T ../../scripts/copy.ts"