From b7c14d64555564917a127dd44a9f7da7f7b2a46c Mon Sep 17 00:00:00 2001 From: azel_s Date: Thu, 22 Feb 2024 18:09:23 -0600 Subject: [PATCH] Added npm run build-local command. --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3789b77a..0bad2621 100644 --- a/package.json +++ b/package.json @@ -165,7 +165,10 @@ "fix:prettier": "yarn lint:prettier --write", "build": "node ./scripts/build/build.mjs", "build:website": "node ./scripts/build-website.mjs", - "vendors:bundle": "node ./scripts/vendors/bundle-vendors.mjs" + "vendors:bundle": "node ./scripts/vendors/bundle-vendors.mjs", + "build-local_win32": "npm run build && cd .. && robocopy prettier/dist/ prettier-vscode/node_modules/prettier/ && cd prettier", + "build-local_darwin": "npm run build && cd .. && cp -R prettier/dist/ prettier-vscode/node_modules/prettier/ && cd prettier", + "build-local": "node -e \"child_process.exec(`npm run build-local_${os.platform()}`)\"" }, "browserslist": [ ">0.5%", @@ -173,4 +176,4 @@ "not safari 5.1", "not op_mini all" ] -} +} \ No newline at end of file