mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Handle subflow modules with their own npm dependencies
This commit is contained in:
4
test/resources/subflow/package/subflow.js
Normal file
4
test/resources/subflow/package/subflow.js
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
module.exports = function(RED) {
|
||||
RED.nodes.registerSubflow(JSON.parse(require('fs').readFileSync(require("path").join(__dirname,"subflow.json"))))
|
||||
}
|
||||
Reference in New Issue
Block a user