Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Fix: VSCE package errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanwu1105 committed May 4, 2021
1 parent 9a9c621 commit e567d18
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"project": ["src/tsconfig.json"]
"project": ["tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"extends": [
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,4 @@ jobs:
run: npm install

- name: Package VSIX
if: steps.version_check.outputs.changed == 'true'
run: npx vsce package
run: npx vsce package --yarn
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Package VSIX
if: steps.version_check.outputs.changed == 'true'
run: npx vsce package
run: npx vsce package --yarn

- name: Publish on Visual Studio Code Extension Marketplace
if: steps.version_check.outputs.changed == 'true'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p ./src",
"test-watch": "tsc -watch -p ./src",
"test-compile": "tsc -p ./",
"test-watch": "tsc -watch -p ./",
"pretest": "npm run test-compile",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
Expand Down
6 changes: 4 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { name, publisher } from '../package.json';
const PUBLISHER = 'seanwu'; // Should be the same in package.json

const NAME = 'vscode-qt-for-python'; // Should be the same in package.json

export const EXTENSION_NAME = 'qtForPython';

export const EXTENSION_ID = `${publisher}.${name}`;
export const EXTENSION_ID = `${PUBLISHER}.${NAME}`;

export type SupportedTool = 'designer' | 'lupdate' | 'uic' | 'rcc';
17 changes: 0 additions & 17 deletions src/tsconfig.json

This file was deleted.

15 changes: 11 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
"compilerOptions": {
"rootDir": ".",
"outDir": ".",
"module": "commonjs",
"target": "es6",
"rootDir": "src",
"outDir": "out",
"lib": ["esnext"],
"sourceMap": true,
"resolveJsonModule": true,
"composite": true
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedParameters": true
},
"files": ["package.json"]
"exclude": ["node_modules", ".vscode-test"]
}

0 comments on commit e567d18

Please sign in to comment.