A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
editor: make build scripts compatible with windows
Abdullah Atta165862db06f0
diff --git a/packages/editor/package.json b/packages/editor/package.jsonindex 341ddd801..62c65dace 100644--- a/packages/editor/package.json+++ b/packages/editor/package.json@@ -67,8 +67,10 @@"react-dom": ">=17.0.0"},"scripts": {- "build": "zx ./scripts/build.mjs",- "watch": "zx ./scripts/build.mjs --watch",+ "prebuild": "zx ./scripts/build.mjs",+ "prewatch": "zx ./scripts/build.mjs",+ "build": "tsc",+ "watch": "tsc --watch","prepub": "npm run build","pub": "np","postinstall": "npx patch-package"diff --git a/packages/editor/scripts/build.mjs b/packages/editor/scripts/build.mjsindex e9159b620..8f969c019 100755--- a/packages/editor/scripts/build.mjs+++ b/packages/editor/scripts/build.mjs@@ -44,5 +44,3 @@ fs.writeFileSync(path.join(ROOT_DIR, "src", "extensions", "code-block", "languages.json"),JSON.stringify(languagesList));--await $`cd ${ROOT_DIR} && npx tsc ${process.argv.slice(3)}`;diff --git a/packages/editor/src/extensions/list-item/commands.ts b/packages/editor/src/extensions/list-item/commands.tsindex 67896f088..5c6d3f76a 100644--- a/packages/editor/src/extensions/list-item/commands.ts+++ b/packages/editor/src/extensions/list-item/commands.ts@@ -20,6 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.import { EditorState } from "prosemirror-state";import { NodeType } from "prosemirror-model";import { Editor } from "@tiptap/core";+import {+ findParentNodeOfType,+ hasParentNodeOfType+} from "../../utils/prosemirror";// WORKAROUND: if we're at the start of a list item, we need to either// backspace directly to an empty list item above, or outdent this node