Skip to content

Commit e0e528f

Browse files
committed
chore: fix TypeScript errors and add pnpm workspace config
1 parent fba308c commit e0e528f

File tree

3 files changed

+13600
-2022
lines changed

3 files changed

+13600
-2022
lines changed

packages/@textlint/script-compiler/src/compiler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as fs from "fs";
22
import path from "path";
3-
import webpack from "webpack";
3+
import webpack, { Stats } from "webpack";
44
import type { TextlintScriptMetadata } from "@textlint/script-parser";
55
// @ts-ignore
66
import rimraf from "rimraf";
@@ -202,7 +202,7 @@ export const compile = async (options: compileOptions) => {
202202
config: rawConfig
203203
}
204204
});
205-
webpack([config], (error: null | (Error & { details?: string }), stats?) => {
205+
webpack(config, (error: null | (Error & { details?: string }), stats?: Stats) => {
206206
if (error) {
207207
console.error(error.stack || error);
208208
if (error.details) {

0 commit comments

Comments
 (0)