From c7a2f6abdbbde0b3390a1512a7e49612b05df572 Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Mon, 26 Aug 2024 11:11:25 +0800 Subject: [PATCH] add vscode prepublish command --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 81627fb..95d5848 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,8 @@ "test-cov": "c8 -r=lcov -r=html -r=json npm run test-unit", "updateFont": "node ./build/updateFont.js", "l10n": "vscode-l10n-dev export -o ./l10n ./src", - "build": "ncc build ./src/extension.js -o dist/ --license licenses.txt" + "build": "ncc build ./src/extension.js -o dist/ --license licenses.txt", + "vscode:prepublish": "npm run l10n && npm run build" }, "devDependencies": { "@types/mocha": "^10.0.6",