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

Commit e567d18

Browse files
committed
Fix: VSCE package errors.
1 parent 9a9c621 commit e567d18

File tree

7 files changed

+20
-29
lines changed

7 files changed

+20
-29
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"parserOptions": {
55
"ecmaVersion": 6,
66
"sourceType": "module",
7-
"project": ["src/tsconfig.json"]
7+
"project": ["tsconfig.json"]
88
},
99
"plugins": ["@typescript-eslint"],
1010
"extends": [

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,4 @@ jobs:
115115
run: npm install
116116

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

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Package VSIX
3131
if: steps.version_check.outputs.changed == 'true'
32-
run: npx vsce package
32+
run: npx vsce package --yarn
3333

3434
- name: Publish on Visual Studio Code Extension Marketplace
3535
if: steps.version_check.outputs.changed == 'true'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"compile": "webpack",
1111
"watch": "webpack --watch",
1212
"package": "webpack --mode production --devtool hidden-source-map",
13-
"test-compile": "tsc -p ./src",
14-
"test-watch": "tsc -watch -p ./src",
13+
"test-compile": "tsc -p ./",
14+
"test-watch": "tsc -watch -p ./",
1515
"pretest": "npm run test-compile",
1616
"lint": "eslint src --ext ts",
1717
"test": "node ./out/test/runTest.js",

src/constants.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import { name, publisher } from '../package.json';
1+
const PUBLISHER = 'seanwu'; // Should be the same in package.json
2+
3+
const NAME = 'vscode-qt-for-python'; // Should be the same in package.json
24

35
export const EXTENSION_NAME = 'qtForPython';
46

5-
export const EXTENSION_ID = `${publisher}.${name}`;
7+
export const EXTENSION_ID = `${PUBLISHER}.${NAME}`;
68

79
export type SupportedTool = 'designer' | 'lupdate' | 'uic' | 'rcc';

src/tsconfig.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

tsconfig.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
{
22
"compilerOptions": {
3-
"rootDir": ".",
4-
"outDir": ".",
3+
"module": "commonjs",
4+
"target": "es6",
5+
"rootDir": "src",
6+
"outDir": "out",
7+
"lib": ["esnext"],
8+
"sourceMap": true,
59
"resolveJsonModule": true,
6-
"composite": true
10+
"strict": true,
11+
"noImplicitReturns": true,
12+
"noFallthroughCasesInSwitch": true,
13+
"noUnusedParameters": true
714
},
8-
"files": ["package.json"]
15+
"exclude": ["node_modules", ".vscode-test"]
916
}

0 commit comments

Comments
 (0)