From 719062ab2f783d2cddbf93a6777893aff3827ff1 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 6 Feb 2024 10:06:26 +0100 Subject: [PATCH] Remove bundles from string-templates --- packages/server/package.json | 16 ---------------- packages/string-templates/package.json | 5 ++--- packages/string-templates/src/index-helpers.js | 9 --------- 3 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 packages/string-templates/src/index-helpers.js diff --git a/packages/server/package.json b/packages/server/package.json index 31d2804cff..ebfa66aeca 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -167,12 +167,6 @@ "@budibase/backend-core" ], "target": "build" - }, - { - "projects": [ - "@budibase/string-templates" - ], - "target": "build:esbuild" } ] }, @@ -191,16 +185,6 @@ "target": "build" } ] - }, - "test": { - "dependsOn": [ - { - "projects": [ - "@budibase/string-templates" - ], - "target": "build:esbuild" - } - ] } } } diff --git a/packages/string-templates/package.json b/packages/string-templates/package.json index a572963d19..bbd5cf0a85 100644 --- a/packages/string-templates/package.json +++ b/packages/string-templates/package.json @@ -21,9 +21,8 @@ "manifest.json" ], "scripts": { - "build:esbuild": "esbuild --minify --bundle src/index-helpers.js --outfile=dist/index-helpers.bundled.js --platform=node --format=esm --external:handlebars", - "build": "yarn build:esbuild && tsc && rollup -c", - "dev": "concurrently \"yarn build:esbuild --watch\" \"tsc && rollup -cw\"", + "build": "tsc && rollup -c", + "dev": "concurrently \"tsc --watch\" \"rollup -cw\"", "test": "jest", "manifest": "node ./scripts/gen-collection-info.js" }, diff --git a/packages/string-templates/src/index-helpers.js b/packages/string-templates/src/index-helpers.js deleted file mode 100644 index c71f8a9853..0000000000 --- a/packages/string-templates/src/index-helpers.js +++ /dev/null @@ -1,9 +0,0 @@ -const { getJsHelperList } = require("./helpers/list") - -const helpers = getJsHelperList() -module.exports = { - ...helpers, - // pointing stripProtocol to a unexisting function to be able to declare it on isolated-vm - // eslint-disable-next-line no-undef - stripProtocol: helpersStripProtocol, -}