Bundling all matchers on build

This commit is contained in:
svartalf 2019-10-22 14:28:13 +03:00
parent 9e78198b90
commit 333d0cf286
2 changed files with 15 additions and 2 deletions

12
dist/.matchers/rustfmt.json vendored Normal file
View file

@ -0,0 +1,12 @@
{
"problemMatcher": [
{
"owner": "rustfmt",
"pattern": {
"regexp": "^Diff in (\\S+) at line (\\d+):$",
"file": 1,
"line": 2
}
}
]
}

View file

@ -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": {