diff --git a/.github/workflows/publish-extension.yml b/.github/workflows/publish-extension.yml index 0473c3d..ae7f70e 100644 --- a/.github/workflows/publish-extension.yml +++ b/.github/workflows/publish-extension.yml @@ -39,6 +39,9 @@ jobs: echo "AppVersion=$APP_VERSION" >> $GITHUB_OUTPUT echo "app version = v$APP_VERSION" + - name: Compile + run: npm run build + - name: Build VSIX package run: npm run package -- -o vscode-string-manipulation.v${{ steps.calculateVersion.outputs.AppVersion }}.vsix diff --git a/.vscodeignore b/.vscodeignore index 2f361b0..622c3aa 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,8 +1,11 @@ -.vscode/** -.vscode-test/** -test/** .gitignore -vsc-extension-quickstart.md -**/jsconfig.json -**/*.map +.vscode +.vscode-test/** **/.eslintrc.json +**/*.map +**/jsconfig.json +node_modules +# out/ +src/ +test/** +tsconfig.json diff --git a/package.json b/package.json index b758231..d20b391 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ "categories": [ "Other" ], - "main": "./out/extension", - "activationEvents": [ + "main": "./out/extension.js", + "activationEvents": [ "onCommand:string-manipulation.titleize", "onCommand:string-manipulation.titleizeApStyle", "onCommand:string-manipulation.titleizeChicagoStyle", @@ -335,8 +335,7 @@ "test": "node ./test/runTest.js", "build": "tsc", "package": "(rm -rf out || true) && mkdir out && cp package.json out && vsce package", - "vsce": "vsce", - "debug": "code --extensionDevelopmentPath=./" + "vscode:prepublish": "tsc -p ./" }, "devDependencies": { "@types/glob": "^7.1.3",