diff --git a/dist/.matchers/rustfmt.json b/dist/.matchers/rustfmt.json new file mode 100644 index 0000000..32ca9df --- /dev/null +++ b/dist/.matchers/rustfmt.json @@ -0,0 +1,12 @@ +{ + "problemMatcher": [ + { + "owner": "rustfmt", + "pattern": { + "regexp": "^Diff in (\\S+) at line (\\d+):$", + "file": 1, + "line": 2 + } + } + ] +} diff --git a/package.json b/package.json index fc49786..0154b3f 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,9 @@ "test": "__tests__" }, "scripts": { - "build": "ncc build src/main.ts --minify", - "watch": "ncc build src/main.ts --watch --minify", + "bundle": "cp -r .matchers ./dist/", + "build": "ncc build src/main.ts --minify && npm run bundle", + "watch": "npm run bundle && ncc build src/main.ts --watch --minify", "test": "jest" }, "repository": {