Skip to content

Commit

Permalink
Bug: fix repl (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
coco-sha authored Sep 28, 2021
1 parent c086221 commit 23091c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/polar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "secret-polar",
"version": "0.2.0",
"version": "0.3.0",
"main": "dist/src/index.js",
"authors": [
{
Expand Down
3 changes: 2 additions & 1 deletion packages/polar/src/builtin-tasks/repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { runInNewContext } from "vm";
import * as polar from "../index";
import { task } from "../internal/core/config/config-env";
import { isRecoverableError, preprocess } from "../internal/util/repl";
import { PolarRuntimeEnvironment } from "../types";
import { PolarRuntimeEnvironment, TaskArguments } from "../types";
import { TASK_REPL } from "./task-names";

// handles top level await by preprocessing input and awaits the output before returning
Expand Down Expand Up @@ -49,6 +49,7 @@ export default function (): void {
task(TASK_REPL, "Opens polar console")
.setAction(
async (
_taskArgs: TaskArguments,
runtimeEnv: PolarRuntimeEnvironment
) => {
if (!runtimeEnv.config.paths) {
Expand Down

0 comments on commit 23091c7

Please sign in to comment.