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.jsonpull/5812/merge^2
parent
8ddc26b7af
commit
3a45aa1cb2
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
../../node_modules/async
|
|
@ -0,0 +1 @@
|
|||
../../node_modules/express
|
|
@ -0,0 +1 @@
|
|||
../../node_modules/formidable
|
|
@ -0,0 +1 @@
|
|||
../../node_modules/log4js
|
|
@ -0,0 +1 @@
|
|||
../../node_modules/supertest
|
Loading…
Reference in New Issue