From 333d0cf2864b4ae730a5ee15007e64deeeb1e0dc Mon Sep 17 00:00:00 2001 From: svartalf Date: Tue, 22 Oct 2019 14:28:13 +0300 Subject: [PATCH] Bundling all matchers on build --- dist/.matchers/rustfmt.json | 12 ++++++++++++ package.json | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 dist/.matchers/rustfmt.json 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": {