docs: fix demos resolution of y-prosemirror

This commit is contained in:
Nick the Sick 2024-08-12 13:50:19 +02:00
parent fef96a04bb
commit df9f6967c2
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,5 @@ tippy.js
uuid
y-webrtc
yjs
y-prosemirror
@hocuspocus/provider
@lifeomic/attempt

View File

@ -21,6 +21,10 @@ const getPackageDependencies = () => {
find: 'yjs',
replacement: resolve('../node_modules/yjs/src/index.js'),
})
paths.push({
find: 'y-prosemirror',
replacement: resolve('./node_modules/y-prosemirror/src/y-prosemirror.js'),
})
fg.sync('../packages/*', { onlyDirectories: true })
.map(name => name.replace('../packages/', ''))