Add index.js entry point so n8n loads the package from custom extensions
This commit is contained in:
parent
e490c1dc83
commit
47b14dafeb
2 changed files with 10 additions and 1 deletions
7
index.js
Normal file
7
index.js
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
module.exports = {
|
||||||
|
// Credentials
|
||||||
|
TeamoRouterApi: require('./dist/credentials/TeamorouterApi.credentials.js'),
|
||||||
|
// Nodes
|
||||||
|
TeamoRouter: require('./dist/nodes/Teamorouter/Teamorouter.node.js'),
|
||||||
|
LmChatTeamRouter: require('./dist/nodes/LmChatTeamRouter/LmChatTeamRouter.node.js'),
|
||||||
|
};
|
||||||
|
|
@ -27,8 +27,10 @@
|
||||||
"mock": "node test/mock-server.mjs",
|
"mock": "node test/mock-server.mjs",
|
||||||
"prepublishOnly": "npm run build"
|
"prepublishOnly": "npm run build"
|
||||||
},
|
},
|
||||||
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist",
|
||||||
|
"index.js"
|
||||||
],
|
],
|
||||||
"n8n": {
|
"n8n": {
|
||||||
"n8nNodesApiVersion": 1,
|
"n8nNodesApiVersion": 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue