Skip to content

Commit 2a9bb69

Browse files
committed
small changes
1 parent ae9c266 commit 2a9bb69

File tree

5 files changed

+15
-41
lines changed

5 files changed

+15
-41
lines changed

webview/esbuild.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
6+
import { autoEsbuildOrWatch, autoSelectEsbuildConfig } from '@microsoft/vscode-azext-eng/esbuild';
7+
await autoEsbuildOrWatch(autoSelectEsbuildConfig());

webview/eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6+
import { azExtEslintRecommended } from '@microsoft/vscode-azext-eng/eslint'; // Other configurations exist
7+
import { defineConfig } from 'eslint/config';
8+
69
export default defineConfig([
710
{
811
ignores: ['react-shim.js']

webview/index.d.ts

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

webview/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"module": "dist/esm/src/index.js",
1313
"main": "dist/cjs/src/index.js",
14-
"types": "index.d.ts",
14+
"types": "dist/esm/src/index.d.ts",
1515
"license": "MIT",
1616
"repository": {
1717
"type": "git",
@@ -22,9 +22,9 @@
2222
},
2323
"homepage": "https://github.com/Microsoft/vscode-azuretools/blob/main/webview/README.md",
2424
"scripts": {
25-
"build": "npm run build:esm && npm run build:cjs && npm run build:webview",
26-
"build:esm": "tsc -p ./",
27-
"build:cjs": "tsc -p ./ --outDir ./dist/cjs --module nodenext --moduleResolution nodenext --declaration false",
25+
"build": "npm run build:esbuild && npm run build:declarations && npm run build:webview",
26+
"build:esbuild": "node esbuild.mjs",
27+
"build:declarations": "tsc -p ./ --emitDeclarationOnly",
2828
"build:webview": "node esbuild.views.mjs",
2929
"lint": "eslint --max-warnings 0",
3030
"package": "npm pack",

webview/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"types": [
1515
"node"
1616
],
17-
"skipLibCheck": true, // TODO: webpack typings issue
17+
"skipLibCheck": true,
1818
},
1919
"exclude": [
2020
"node_modules",

0 commit comments

Comments
 (0)