From 6a89c7672267d34e991565a3ae5c685bffc5ad93 Mon Sep 17 00:00:00 2001 From: Miki Date: Thu, 17 Nov 2022 19:05:43 -0800 Subject: [PATCH] Makes `yarn pkg-version` work across platforms Signed-off-by: Miki --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2b02d28f1802..ea26f4d78e9d 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "docs:acceptApiChanges": "node --max-old-space-size=6144 scripts/check_published_api_changes.js --accept", "osd:bootstrap": "node scripts/build_ts_refs && node scripts/register_git_hook", "spec_to_console": "node scripts/spec_to_console", - "pkg-version": "./dev-tools/get-version.sh" + "pkg-version": "node -e \"console.log(require('./package.json').version)\"" }, "repository": { "type": "git",