From b1d1851842e7e619adc76f2fa638ae80befee387 Mon Sep 17 00:00:00 2001 From: Yoni Feigelson Date: Fri, 11 Oct 2019 18:03:22 +0300 Subject: [PATCH 1/2] Fix 'run start' for Windows --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 999ae11850..1011cb7fb9 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "bootstrap": "lerna bootstrap --hoist --no-ci", "build": "lerna exec npm run build", "dev": "lerna exec npm run dev --parallel", - "start": "cd packages/cli && bin/n8n", + "start": "cd packages/cli/bin && n8n", "test": "lerna run test", "watch": "lerna run --parallel watch" }, From aa1caa41880b84e9568e7581584caa4c7d5f3e33 Mon Sep 17 00:00:00 2001 From: Yoni Feigelson Date: Sat, 12 Oct 2019 11:30:06 +0300 Subject: [PATCH 2/2] Fix 'npm run start' for Windows, keeping Linux/Mac intact --- package.json | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 1011cb7fb9..b045830f51 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,20 @@ { - "name": "n8n", - "private": true, - "homepage": "https://n8n.io", - "scripts": { - "bootstrap": "lerna bootstrap --hoist --no-ci", - "build": "lerna exec npm run build", - "dev": "lerna exec npm run dev --parallel", - "start": "cd packages/cli/bin && n8n", - "test": "lerna run test", - "watch": "lerna run --parallel watch" - }, - "devDependencies": { - "lerna": "^3.13.1" - }, - "postcss": {} + "name": "n8n", + "private": true, + "homepage": "https://n8n.io", + "scripts": { + "bootstrap": "lerna bootstrap --hoist --no-ci", + "build": "lerna exec npm run build", + "dev": "lerna exec npm run dev --parallel", + "start": "run-script-os", + "start:default": "cd packages/cli/bin && ./n8n", + "start:windows": "cd packages/cli/bin && n8n", + "test": "lerna run test", + "watch": "lerna run --parallel watch" + }, + "devDependencies": { + "lerna": "^3.13.1", + "run-script-os": "^1.0.7" + }, + "postcss": {} }