Skip to content

Commit

Permalink
Fix REPL load (#745)
Browse files Browse the repository at this point in the history
I  missed this in #679.
  • Loading branch information
72636c authored Jan 20, 2022
1 parent 1348756 commit 268b882
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .changeset/wise-ravens-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"skuba": patch
---

node: Register `tsconfig-paths` in REPL

This resolves the following error:

```typescript
Error: Cannot find module '/node_modules/skuba/lib/register'
Require stack:
- internal/preload
```
2 changes: 1 addition & 1 deletion src/cli/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const node = async () => {
return tsNode
.createRepl({
service: tsNode.register({
require: [path.join(__dirname, '..', 'register')],
require: ['tsconfig-paths/register'],
transpileOnly: true,
}),
})
Expand Down

0 comments on commit 268b882

Please sign in to comment.