diff --git a/developer/src/vscode-plugin/.gitignore b/developer/src/vscode-plugin/.gitignore index 890b4c93da8..83eaa37a32e 100644 --- a/developer/src/vscode-plugin/.gitignore +++ b/developer/src/vscode-plugin/.gitignore @@ -4,3 +4,4 @@ node_modules .vscode-test/ *.vsix !.vscode +/LICENSE.md diff --git a/developer/src/vscode-plugin/README.md b/developer/src/vscode-plugin/README.md index 4d0ae643b86..29863fe95af 100644 --- a/developer/src/vscode-plugin/README.md +++ b/developer/src/vscode-plugin/README.md @@ -26,6 +26,12 @@ There is also a `build.sh` which works the usual way. - You can use the **Developer: Reload Window** command to reload the `[extension development]` window with a new version of the plugin. +## Packaging .vsix + +- `npm run vscode:package` + +(Doesn't work yet.) + ## License Copyright (c) SIL Global. diff --git a/developer/src/vscode-plugin/package.json b/developer/src/vscode-plugin/package.json index b10870454e8..a7d649a07a2 100644 --- a/developer/src/vscode-plugin/package.json +++ b/developer/src/vscode-plugin/package.json @@ -1,5 +1,6 @@ { - "name": "@keymanapp/keyman-developer-vscode", + "name": "keyman-developer-vscode", + "version": "18.0.0-PREALPHA", "displayName": "Keyman Developer for VSCode", "description": "Plugin for compiling Keyman projects in VSCode", "engines": { @@ -17,13 +18,14 @@ "contributes": { }, "scripts": { - "vscode:prepublish": "npm run compile", + "vscode:prepublish": "npm run compile && cp ../../../LICENSE.md .", "compile": "tsc -b ./", "watch": "tsc -watch -b ./", "pretest": "npm run compile && npm run lint", "lint": "eslint src", "test": "echo use 'ui-test' to run the test - TODO-LDML-EDITOR", - "ui-test": "vscode-test" + "ui-test": "vscode-test", + "vscode:package": "npx '@vscode/vsce' package" }, "devDependencies": { "@types/mocha": "^10.0.0", @@ -39,5 +41,6 @@ "@keymanapp/kmc-kmn": "*", "@keymanapp/kmc-ldml": "*", "@keymanapp/kmc-package": "*" - } + }, + "private": "true" } diff --git a/package-lock.json b/package-lock.json index 76e2574792e..49af194f2bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2141,7 +2141,8 @@ } }, "developer/src/vscode-plugin": { - "name": "@keymanapp/keyman-developer-vscode", + "name": "keyman-developer-vscode", + "version": "18.0.0-PREALPHA", "license": "MIT", "dependencies": { "@keymanapp/common-types": "*", @@ -3028,10 +3029,6 @@ "resolved": "common/tools/hextobin", "link": true }, - "node_modules/@keymanapp/keyman-developer-vscode": { - "resolved": "developer/src/vscode-plugin", - "link": true - }, "node_modules/@keymanapp/keyman-version": { "resolved": "common/web/keyman-version", "link": true @@ -11311,6 +11308,10 @@ "resolved": "web", "link": true }, + "node_modules/keyman-developer-vscode": { + "resolved": "developer/src/vscode-plugin", + "link": true + }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",