Skip to content

Commit e2d5ebc

Browse files
committed
Use Typescript config for esbuild
1 parent 15da1b1 commit e2d5ebc

File tree

4 files changed

+9
-22
lines changed

4 files changed

+9
-22
lines changed

esbuild.js renamed to esbuild.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ async function main() {
2828
}
2929
}
3030

31-
/**
32-
* @type {import('esbuild').Plugin}
33-
*/
34-
const esbuildProblemMatcherPlugin = {
31+
const esbuildProblemMatcherPlugin: esbuild.Plugin = {
3532
name: "esbuild-problem-matcher",
3633

3734
setup(build) {

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,26 +96,26 @@
9696
},
9797
"scripts": {
9898
"clean": "rimraf ./out",
99-
"build:dev": "npm run clean && node esbuild.js",
100-
"build:prod": "npm run clean && node esbuild.js --production",
99+
"build:dev": "npm run clean && node esbuild.ts",
100+
"build:prod": "npm run clean && node esbuild.ts --production",
101101
"check-types": "tsc --noEmit",
102102
"compile:dev": "npm run check-types && npm run build:dev",
103103
"compile:prod": "npm run check-types && npm run build:prod",
104104
"watch": "npm-run-all -p watch:*",
105-
"watch:esbuild": "node esbuild.js --watch",
106-
"watch:tsc": "tsc --noEmit -w -p ./tsconfig.dev.json",
105+
"watch:esbuild": "node esbuild.ts --watch",
106+
"watch:tsc": "tsc --noEmit -w",
107107
"lint": "eslint --cache .",
108-
"fix:prettier": "prettier --write './**/*.{js,json,md,ts}'",
108+
"fix:prettier": "prettier --write './**/*.{json,md,ts}'",
109109
"precommit": "lint-staged",
110110
"prepare": "husky",
111111
"vscode:prepublish": "npm run compile:prod",
112112
"package": "vsce package"
113113
},
114114
"lint-staged": {
115-
"*.{js,json,ts}": [
115+
"*.{json,ts}": [
116116
"eslint --cache"
117117
],
118-
"*.{js,json,md,ts}": [
118+
"*.{json,md,ts}": [
119119
"prettier --write"
120120
]
121121
},

tsconfig.dev.json

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

tsconfig.eslint.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
22
"extends": "./tsconfig.json",
3-
"include": ["**/*.*"],
4-
"compilerOptions": {
5-
"allowJs": true,
6-
"checkJs": true
7-
}
3+
"include": ["**/*.*"]
84
}

0 commit comments

Comments
 (0)