remove entry point from bundle build
port terminal.js to typescript