diff --git a/packages/server/package.json b/packages/server/package.json index bac65c768e..8e66f3d7e0 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -175,6 +175,10 @@ ] }, "build": { + "inputs": [ + "{projectRoot}/builder", + "{projectRoot}/client" + ], "outputs": [ "{projectRoot}/builder", "{projectRoot}/client", diff --git a/packages/string-templates/package.json b/packages/string-templates/package.json index aa3aa5adec..4a26b263a9 100644 --- a/packages/string-templates/package.json +++ b/packages/string-templates/package.json @@ -33,6 +33,7 @@ }, "devDependencies": { "@rollup/plugin-commonjs": "^17.1.0", + "@rollup/plugin-inject": "^5.0.5", "@rollup/plugin-typescript": "8.3.0", "doctrine": "^3.0.0", "jest": "29.7.0", @@ -43,6 +44,7 @@ "rollup-plugin-node-globals": "^1.4.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-terser": "^7.0.2", + "ts-jest": "29.1.1", "typescript": "5.2.2" } } diff --git a/packages/string-templates/rollup.config.js b/packages/string-templates/rollup.config.js index e7aa2ced99..a843286a82 100644 --- a/packages/string-templates/rollup.config.js +++ b/packages/string-templates/rollup.config.js @@ -6,6 +6,7 @@ import builtins from "rollup-plugin-node-builtins" import globals from "rollup-plugin-node-globals" import typescript from "@rollup/plugin-typescript" import injectProcessEnv from "rollup-plugin-inject-process-env" +import inject from "@rollup/plugin-inject" const production = !process.env.ROLLUP_WATCH @@ -24,6 +25,7 @@ const config = (format, outputFile) => ({ }), commonjs(), globals(), + inject({ Buffer: ["buffer", "Buffer"] }), builtins(), json(), injectProcessEnv({ diff --git a/packages/worker/src/constants/index.ts b/packages/worker/src/constants/index.ts index 4301569a3a..17fce666db 100644 --- a/packages/worker/src/constants/index.ts +++ b/packages/worker/src/constants/index.ts @@ -52,7 +52,7 @@ export enum InternalTemplateBinding { RESET_URL = "resetUrl", RESET_CODE = "resetCode", INVITE_URL = "inviteUrl", - INVITE_CODE = "inviteUrl", + INVITE_CODE = "inviteCode", CONTENTS = "contents", } diff --git a/yarn.lock b/yarn.lock index 979f5a94e0..b2e0b32d43 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3922,7 +3922,7 @@ "@rollup/pluginutils" "^5.0.1" mini-svg-data-uri "^1.4.4" -"@rollup/plugin-inject@^5.0.4": +"@rollup/plugin-inject@^5.0.4", "@rollup/plugin-inject@^5.0.5": version "5.0.5" resolved "https://registry.yarnpkg.com/@rollup/plugin-inject/-/plugin-inject-5.0.5.tgz#616f3a73fe075765f91c5bec90176608bed277a3" integrity sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==