Monorepo with yarn workspaces requires yarn 3.2
This commit is contained in:
parent
68d110a081
commit
3a135d1a5c
@ -2,8 +2,8 @@ import * as plugos from "../plugos/types";
|
||||
import { EndpointHookT } from "../plugos/hooks/endpoint";
|
||||
import { CronHookT } from "../plugos/hooks/node_cron";
|
||||
import { EventHookT } from "../plugos/hooks/event";
|
||||
import { CommandHookT } from "../silverbullet-webapp/hooks/command";
|
||||
import { SlashCommandHookT } from "../silverbullet-webapp/hooks/slash_command";
|
||||
import { CommandHookT } from "@silverbulletmd/web/hooks/command";
|
||||
import { SlashCommandHookT } from "@silverbulletmd/web/hooks/slash_command";
|
||||
|
||||
export type SilverBulletHooks = CommandHookT &
|
||||
SlashCommandHookT &
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { SpacePrimitives } from "./space_primitives";
|
||||
import { safeRun } from "@silverbulletmd/web/util";
|
||||
import { PageMeta } from "../types";
|
||||
import { EventEmitter } from "../event";
|
||||
import { Plug } from "../../plugos/plug";
|
||||
import { Manifest } from "../manifest";
|
||||
import { plugPrefix, trashPrefix } from "./constants";
|
||||
import { safeRun } from "../util";
|
||||
|
||||
const pageWatchInterval = 2000;
|
||||
|
||||
|
@ -9,7 +9,7 @@ import {
|
||||
renderToText,
|
||||
replaceNodesMatching
|
||||
} from "./tree";
|
||||
import wikiMarkdownLang from "../silverbullet-webapp/parser";
|
||||
import wikiMarkdownLang from "@silverbulletmd/web/parser";
|
||||
|
||||
const mdTest1 = `
|
||||
# Heading
|
||||
|
@ -17,7 +17,7 @@ import { NodeCronHook } from "@silverbulletmd/plugos/hooks/node_cron";
|
||||
import { markdownSyscalls } from "@silverbulletmd/common/syscalls/markdown";
|
||||
import { EventedSpacePrimitives } from "@silverbulletmd/common/spaces/evented_space_primitives";
|
||||
import { Space } from "@silverbulletmd/common/spaces/space";
|
||||
import { safeRun, throttle } from "@silverbulletmd/web/util";
|
||||
import { safeRun, throttle } from "@silverbulletmd/common/util";
|
||||
import { createSandbox } from "@silverbulletmd/plugos/environments/node_sandbox";
|
||||
import { jwtSyscalls } from "@silverbulletmd/plugos/syscalls/jwt";
|
||||
import { fetchSyscalls } from "@silverbulletmd/plugos/syscalls/fetch.node";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { PageMeta } from "../../common/types";
|
||||
import { SysCallMapping } from "../../plugos/system";
|
||||
import { Space } from "../../common/spaces/space";
|
||||
import { PageMeta } from "@silverbulletmd/common/types";
|
||||
import { SysCallMapping } from "@silverbulletmd/plugos/system";
|
||||
import { Space } from "@silverbulletmd/common/spaces/space";
|
||||
|
||||
export default (space: Space): SysCallMapping => {
|
||||
return {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Editor } from "./editor";
|
||||
import { safeRun } from "./util";
|
||||
import { safeRun } from "../silverbullet-common/util";
|
||||
import { Space } from "@silverbulletmd/common/spaces/space";
|
||||
import { HttpSpacePrimitives } from "@silverbulletmd/common/spaces/http_space_primitives";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { isMacLike } from "../util";
|
||||
import { isMacLike } from "../../silverbullet-common/util";
|
||||
import { FilterList } from "./filter";
|
||||
import { faPersonRunning } from "@fortawesome/free-solid-svg-icons";
|
||||
import { AppCommand } from "../hooks/command";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { EditorView } from "@codemirror/view";
|
||||
import * as util from "../util";
|
||||
import * as util from "../../silverbullet-common/util";
|
||||
|
||||
export function StatusBar({ editorView }: { editorView?: EditorView }) {
|
||||
let wordCount = 0,
|
||||
|
@ -37,7 +37,7 @@ import { indexerSyscalls } from "./syscalls";
|
||||
import { spaceSyscalls } from "./syscalls/space";
|
||||
import { Action, AppViewState, initialViewState } from "./types";
|
||||
import { SilverBulletHooks } from "@silverbulletmd/common/manifest";
|
||||
import { safeRun, throttle } from "./util";
|
||||
import { safeRun, throttle } from "../silverbullet-common/util";
|
||||
import { System } from "../plugos/system";
|
||||
import { EventHook } from "../plugos/hooks/event";
|
||||
import { systemSyscalls } from "./syscalls/system";
|
||||
|
@ -2,7 +2,7 @@ import { Hook, Manifest } from "../../plugos/types";
|
||||
import { System } from "../../plugos/system";
|
||||
import { Completion, CompletionContext, CompletionResult } from "@codemirror/autocomplete";
|
||||
import { slashCommandRegexp } from "../types";
|
||||
import { safeRun } from "../util";
|
||||
import { safeRun } from "../../silverbullet-common/util";
|
||||
import { Editor } from "../editor";
|
||||
|
||||
export type SlashCommandDef = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { safeRun } from "./util";
|
||||
import { safeRun } from "../silverbullet-common/util";
|
||||
|
||||
function encodePageUrl(name: string): string {
|
||||
return name.replaceAll(" ", "_");
|
||||
|
@ -1,10 +1,11 @@
|
||||
{
|
||||
"include": ["webapp/**/*", "server/**/*", "plugos/**/*", "plugs/**/*", "common/**/*"],
|
||||
"include": ["packages/**/*"],
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"strict": true,
|
||||
"moduleResolution": "node",
|
||||
"module": "esnext",
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"resolveJsonModule": true,
|
||||
|
Loading…
Reference in New Issue
Block a user