|
35 | 35 | "dts-bundle": "^0.7.3",
|
36 | 36 | "eslint": "^5.13.0",
|
37 | 37 | "fs-extra": "^7.0.1",
|
38 |
| - "mocha": "^5.2.0", |
| 38 | + "mocha": "^6.1.4", |
39 | 39 | "npm-run-all": "^4.1.5",
|
40 |
| - "nyc": "^13.2.0", |
| 40 | + "nyc": "^14.0.0", |
41 | 41 | "opener": "^1.5.1",
|
42 | 42 | "rimraf": "^2.6.3",
|
43 | 43 | "rollup": "^1.1.2",
|
44 | 44 | "rollup-plugin-node-resolve": "^4.0.0",
|
45 | 45 | "rollup-plugin-sourcemaps": "^0.4.2",
|
46 |
| - "rollup-watch": "^4.3.1", |
47 |
| - "typescript": "~3.3.1", |
| 46 | + "ts-node": "^8.1.0", |
| 47 | + "typescript": "~3.4.4", |
48 | 48 | "wait-on": "^3.2.0",
|
49 | 49 | "warun": "^1.0.0"
|
50 | 50 | },
|
51 | 51 | "scripts": {
|
52 |
| - "_mocha": "_mocha \"test/*.js\" --reporter dot --timeout 10000", |
53 | 52 | "prebuild": "npm run -s clean",
|
54 |
| - "build": "tsc && rollup -c -o index.js && dts-bundle --name vue-eslint-parser --main .temp/index.d.ts --out ../index.d.ts", |
| 53 | + "build": "tsc --module es2015 && rollup -c -o index.js && dts-bundle --name vue-eslint-parser --main .temp/index.d.ts --out ../index.d.ts", |
55 | 54 | "clean": "rimraf .nyc_output .temp coverage index.*",
|
56 |
| - "codecov": "nyc report --reporter lcovonly && codecov", |
57 |
| - "coverage": "nyc report --reporter lcov && opener ./coverage/lcov-report/index.html", |
| 55 | + "codecov": "codecov", |
| 56 | + "coverage": "opener ./coverage/lcov-report/index.html", |
58 | 57 | "lint": "eslint src test --ext .js,.ts",
|
59 | 58 | "setup": "git submodule update --init && cd test/fixtures/eslint && npm install",
|
60 | 59 | "pretest": "run-s build lint",
|
61 |
| - "test": "nyc npm run _mocha", |
| 60 | + "test": "nyc mocha \"test/*.js\" --reporter dot --timeout 10000", |
62 | 61 | "preupdate-fixtures": "npm run -s build",
|
63 | 62 | "update-fixtures": "node scripts/update-fixtures-ast.js",
|
64 | 63 | "preversion": "npm test",
|
65 | 64 | "version": "npm run -s build",
|
66 | 65 | "postversion": "git push && git push --tags",
|
67 | 66 | "prewatch": "npm run -s clean",
|
68 | 67 | "watch": "run-p watch:*",
|
69 |
| - "watch:tsc": "tsc --watch", |
| 68 | + "watch:tsc": "tsc --module es2015 --watch", |
70 | 69 | "watch:rollup": "wait-on .temp/index.js && rollup -c -o index.js --watch",
|
71 |
| - "watch:test": "wait-on index.js && warun index.js \"test/*.js\" \"test/fixtures/ast/*/*.json\" \"test/fixtures/*\" --debounce 1000 --no-initial -- nyc -r lcov npm run -s _mocha", |
| 70 | + "watch:test": "wait-on index.js && warun index.js \"test/*.js\" \"test/fixtures/ast/*/*.json\" \"test/fixtures/*\" --debounce 1000 --no-initial -- nyc mocha \"test/*.js\" --reporter dot --timeout 10000", |
72 | 71 | "watch:update-ast": "wait-on index.js && warun index.js \"test/fixtures/ast/*/*.vue\" -- node scripts/update-fixtures-ast.js",
|
73 | 72 | "watch:coverage-report": "wait-on coverage/lcov-report/index.html && opener coverage/lcov-report/index.html"
|
74 | 73 | },
|
|
0 commit comments