Add symlinks in ./src/node_modules for backwards compatibility.

See "Note for plugin authors" section in Changelog.

Some packages that are in use by plugins got a symlink in
./src/node_modules so that they still work after updating Etherpad. In
the future don't require('etherpad_ep-lite/node_modules/dependency')
anymore, but change this to require('dependency') and add the dependency
to your plugin's package.json
fix-admintests-rebased
webzwo0i 2023-07-06 02:21:08 +02:00 committed by SamTV12345
parent 1777684cf2
commit bf34a94190
7 changed files with 5 additions and 2 deletions

View File

@ -88,7 +88,6 @@ fi
log "Adding symlinks for plugin backwards compatibility"
mkdir src/node_modules -p
ln -s ../../node_modules/async src/node_modules/async
ln -s ../../node_modules/cheerio src/node_modules/cheerio
ln -s ../../node_modules/express src/node_modules/express
ln -s ../../node_modules/formidable src/node_modules/formidable
ln -s ../../node_modules/log4js src/node_modules/log4js

View File

@ -31,7 +31,6 @@ echo Adding symlinks for plugin backwards compatibility
mkdir src\node_modules
cd /D src\node_modules
mklink /D "async" "..\..\node_modules\async"
mklink /D "cheerio" "..\..\node_modules\cheerio"
mklink /D "express" "..\..\node_modules\express"
mklink /D "formidable" "..\..\node_modules\formidable"
mklink /D "log4js" "..\..\node_modules\log4js"

1
src/node_modules/async generated vendored Symbolic link
View File

@ -0,0 +1 @@
../../node_modules/async

1
src/node_modules/express generated vendored Symbolic link
View File

@ -0,0 +1 @@
../../node_modules/express

1
src/node_modules/formidable generated vendored Symbolic link
View File

@ -0,0 +1 @@
../../node_modules/formidable

1
src/node_modules/log4js generated vendored Symbolic link
View File

@ -0,0 +1 @@
../../node_modules/log4js

1
src/node_modules/supertest generated vendored Symbolic link
View File

@ -0,0 +1 @@
../../node_modules/supertest