mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
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
This commit is contained in:
parent
1777684cf2
commit
bf34a94190
7 changed files with 5 additions and 2 deletions
|
@ -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"
|
||||
|
|
1
src/node_modules/async
generated
vendored
Symbolic link
1
src/node_modules/async
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../node_modules/async
|
1
src/node_modules/express
generated
vendored
Symbolic link
1
src/node_modules/express
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../node_modules/express
|
1
src/node_modules/formidable
generated
vendored
Symbolic link
1
src/node_modules/formidable
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../node_modules/formidable
|
1
src/node_modules/log4js
generated
vendored
Symbolic link
1
src/node_modules/log4js
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../node_modules/log4js
|
1
src/node_modules/supertest
generated
vendored
Symbolic link
1
src/node_modules/supertest
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../node_modules/supertest
|
Loading…
Reference in a new issue