From 2d220e249d6a0d19823c7c0d691f9b450c9973a3 Mon Sep 17 00:00:00 2001 From: Brian Inoa Date: Thu, 16 Jun 2022 18:29:20 +0200 Subject: [PATCH 1/2] :arrow_up: Up gulp dependency :pushpin: override glob-parent version for child dependencies --- package.json | 137 ++++++++++++++++++++++++++------------------------- 1 file changed, 71 insertions(+), 66 deletions(-) diff --git a/package.json b/package.json index 4c83043..3ef2604 100644 --- a/package.json +++ b/package.json @@ -1,70 +1,75 @@ { - "name": "n8n-nodes-starter", - "version": "0.1.0", - "description": "Example starter module for custom n8n nodes.", - "keywords": ["n8n-community-node-package"], - "license": "SEE LICENSE IN LICENSE.md", - "homepage": "https://n8n.io", - "author": { - "name": "Jan Oberhauser", - "email": "jan@n8n.io" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/n8n-io/n8n-nodes-starter.git" - }, - "main": "index.js", - "scripts": { - "dev": "npm run watch", - "build": "tsc && gulp", - "lint": "tslint -p tsconfig.json -c tslint.json", - "lintfix": "tslint --fix -p tsconfig.json -c tslint.json", - "nodelinter": "nodelinter", - "watch": "tsc --watch", - "test": "jest" - }, - "files": [ - "dist" + "name": "n8n-nodes-starter", + "version": "0.1.0", + "description": "Example starter module for custom n8n nodes.", + "keywords": [ + "n8n-community-node-package" + ], + "license": "SEE LICENSE IN LICENSE.md", + "homepage": "https://n8n.io", + "author": { + "name": "Jan Oberhauser", + "email": "jan@n8n.io" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/n8n-io/n8n-nodes-starter.git" + }, + "main": "index.js", + "scripts": { + "dev": "npm run watch", + "build": "tsc && gulp", + "lint": "tslint -p tsconfig.json -c tslint.json", + "lintfix": "tslint --fix -p tsconfig.json -c tslint.json", + "nodelinter": "nodelinter", + "watch": "tsc --watch", + "test": "jest" + }, + "files": [ + "dist" + ], + "n8n": { + "credentials": [ + "dist/credentials/ExampleCredentials.credentials.js" ], - "n8n": { - "credentials": [ - "dist/credentials/ExampleCredentials.credentials.js" - ], - "nodes": [ - "dist/nodes/ExampleNode/ExampleNode.node.js" - ] + "nodes": [ + "dist/nodes/ExampleNode/ExampleNode.node.js" + ] + }, + "devDependencies": { + "@types/express": "^4.17.6", + "@types/jest": "^26.0.13", + "@types/node": "^14.17.27", + "@types/request-promise-native": "~1.0.15", + "gulp": "^4.0.2", + "jest": "^26.4.2", + "n8n-workflow": "~0.83.0", + "nodelinter": "^0.1.9", + "ts-jest": "^26.3.0", + "tslint": "^6.1.2", + "typescript": "~4.3.5" + }, + "dependencies": { + "n8n-core": "~0.101.0" + }, + "overrides": { + "glob-parent": "5.1.2" + }, + "jest": { + "transform": { + "^.+\\.tsx?$": "ts-jest" }, - "devDependencies": { - "@types/express": "^4.17.6", - "@types/jest": "^26.0.13", - "@types/node": "^14.17.27", - "@types/request-promise-native": "~1.0.15", - "gulp": "^4.0.0", - "jest": "^26.4.2", - "n8n-workflow": "~0.83.0", - "nodelinter": "^0.1.9", - "ts-jest": "^26.3.0", - "tslint": "^6.1.2", - "typescript": "~4.3.5" - }, - "dependencies": { - "n8n-core": "~0.101.0" - }, - "jest": { - "transform": { - "^.+\\.tsx?$": "ts-jest" - }, - "testURL": "http://localhost/", - "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", - "testPathIgnorePatterns": [ - "/dist/", - "/node_modules/" - ], - "moduleFileExtensions": [ - "ts", - "tsx", - "js", - "json" - ] - } + "testURL": "http://localhost/", + "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", + "testPathIgnorePatterns": [ + "/dist/", + "/node_modules/" + ], + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "json" + ] + } } From 2ddf486c077ffc1a30adc151b2f92b965a5f9d94 Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Fri, 17 Jun 2022 16:56:10 +0200 Subject: [PATCH 2/2] Also bump n8n packages version --- package.json | 4 ++-- tsconfig.json | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 3ef2604..ab244cf 100644 --- a/package.json +++ b/package.json @@ -43,14 +43,14 @@ "@types/request-promise-native": "~1.0.15", "gulp": "^4.0.2", "jest": "^26.4.2", - "n8n-workflow": "~0.83.0", + "n8n-workflow": "~0.104.0", "nodelinter": "^0.1.9", "ts-jest": "^26.3.0", "tslint": "^6.1.2", "typescript": "~4.3.5" }, "dependencies": { - "n8n-core": "~0.101.0" + "n8n-core": "~0.122.1" }, "overrides": { "glob-parent": "5.1.2" diff --git a/tsconfig.json b/tsconfig.json index 6456490..48efe0b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,7 +18,8 @@ "declaration": true, "outDir": "./dist/", "target": "es2017", - "sourceMap": true + "sourceMap": true, + "esModuleInterop": true }, "include": [ "credentials/**/*", @@ -30,4 +31,4 @@ "exclude": [ "**/*.spec.ts" ] -} \ No newline at end of file +}