api: fix term/lib imports

Before this change, `term/lib` was importing the Poke type from the `http-api` package. This was causing the rollup build output to place the `term` exported types in a separate path (`dist/api/term`). By switching to the relative import, it is now exported at the expected path (`dist/term`). This fixes imports in consuming projects (e.g., `import {  Belt, pokeTask, pokeBelt } from '@urbit/api/term';`).

Also, remove the extraneous `Scry` import.
This commit is contained in:
tomholford 2022-07-16 12:59:39 -07:00 committed by Patrick O'Sullivan
parent 43efca7760
commit 02545a7309

View File

@ -1,5 +1,4 @@
import { Scry } from '../../http-api/src'
import { Poke } from '../../http-api/src/types';
import { Poke } from '../lib'
import { Belt, Task, SessionTask } from './types';
export const pokeTask = (session: string, task: Task): Poke<SessionTask> => ({