From d919b1f3123b7bfb8e9b18832a7840d8e4ce18ed Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Fri, 12 Apr 2024 20:56:16 -0400 Subject: [PATCH] Register terminal and phoenix builtins --- packages/backend/src/SelfhostedModule.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/backend/src/SelfhostedModule.js b/packages/backend/src/SelfhostedModule.js index cb35362c..9de50bf0 100644 --- a/packages/backend/src/SelfhostedModule.js +++ b/packages/backend/src/SelfhostedModule.js @@ -21,6 +21,18 @@ class SelfhostedModule extends AdvancedBase { command: 'npm', args: ['run', 'start-webpack'], }, + { + name: 'terminal:rollup-watch', + directory: 'packages/terminal', + command: 'npx', + args: ['rollup', '-c', 'rollup.config.js', '--watch'], + }, + { + name: 'phoenix:rollup-watch', + directory: 'packages/terminal', + command: 'npx', + args: ['rollup', '-c', 'rollup.config.js', '--watch'], + }, ], }); @@ -31,6 +43,14 @@ class SelfhostedModule extends AdvancedBase { prefix: '/sdk', path: path_.resolve(__dirname, '../../../packages/puter-js/dist'), }, + { + prefix: '/builtin/terminal', + path: path_.resolve(__dirname, '../../../packages/terminal/dist'), + }, + { + prefix: '/builtin/phoenix', + path: path_.resolve(__dirname, '../../../packages/phoenix/dist'), + }, ], }); }