From fe04b0e48dc96d4d10638ccd897bfab7e8e93c3b Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Fri, 13 Feb 2026 15:05:25 +0100 Subject: [PATCH 1/2] Add and standardize paranext-core scripts --- package.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 993e48e..8f98d9e 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,8 @@ "zip": "zip-build dist release --template '%NAME%_%VERSION%.%EXT%' --override", "package": "npm run build:production && npm run zip", "package:debug": "cross-env DEBUG_PROD=true npm run package", - "start:core": "cd ../paranext-core && npm run start", - "start": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch\" \"npm:start:core\"", - "start:production": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch:production\" \"npm:start:core\"", + "start": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch\" \"npm:core:start\"", + "start:production": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch:production\" \"npm:core:start\"", "lint": "npm run lint:scripts && npm run lint:styles && npm run lint:typecheck", "lint:scripts": "cross-env NODE_ENV=development eslint --ext .cjs,.js,.jsx,.ts,.tsx --cache .", "lint:styles": "stylelint **/*.{css,scss} --allow-empty-input", @@ -29,7 +28,11 @@ "lint-fix:scripts": "npm run format && npm run lint:scripts", "bump-versions": "ts-node ./lib/bump-versions.ts", "test": "jest", - "test:coverage": "jest --coverage" + "test:coverage": "jest --coverage", + "core:start": "cd ../paranext-core && npm run start", + "core:pull": "git -C ../paranext-core pull --ff-only", + "core:install": "npm --prefix ../paranext-core install", + "core:update": "npm run core:pull && npm run core:install" }, "browserslist": [], "peerDependencies": { From e84a2a237a206077f89331d2891bbdfddf144d0a Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Thu, 19 Feb 2026 14:46:20 +0100 Subject: [PATCH 2/2] Add core:stop and always use npm --prefix --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8f98d9e..8520792 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,10 @@ "bump-versions": "ts-node ./lib/bump-versions.ts", "test": "jest", "test:coverage": "jest --coverage", - "core:start": "cd ../paranext-core && npm run start", - "core:pull": "git -C ../paranext-core pull --ff-only", + "core:start": "npm --prefix ../paranext-core start", + "core:stop": "npm --prefix ../paranext-core stop", "core:install": "npm --prefix ../paranext-core install", + "core:pull": "git -C ../paranext-core pull --ff-only", "core:update": "npm run core:pull && npm run core:install" }, "browserslist": [],