|
1 | 1 | { |
2 | 2 | "name": "eslint-plugin-jsonc", |
3 | | - "version": "0.2.0", |
| 3 | + "version": "0.3.0", |
4 | 4 | "description": "ESLint plugin for JSON, JSONC and JSON5 files.", |
5 | 5 | "main": "dist/index.js", |
| 6 | + "typescript": { |
| 7 | + "definition": "index.d.ts" |
| 8 | + }, |
| 9 | + "types": "index.d.ts", |
6 | 10 | "files": [ |
7 | | - "dist" |
| 11 | + "dist", |
| 12 | + "index.d.ts" |
8 | 13 | ], |
9 | 14 | "scripts": { |
10 | 15 | "prebuild": "npm run -s clean && npm run setup-types", |
11 | | - "build": "tsc --project ./tsconfig.build.json", |
| 16 | + "build": "npm run build:ts && npm run build:dts", |
| 17 | + "build:ts": "tsc --project ./tsconfig.build.json", |
| 18 | + "build:dts": "npm run build:dts-step1 && npm run build:dts-step2", |
| 19 | + "build:dts-step1": "tsc --declaration --outDir dist-ts --project ./tsconfig.build.json", |
| 20 | + "build:dts-step2": "dts-bundle --name eslint-plugin-jsonc --main ./dist-ts/index.d.ts --out ../index.d.ts", |
12 | 21 | "clean": "rimraf .nyc_output dist coverage", |
13 | 22 | "lint": "eslint \"tests\" \"lib\" \"docs/.vuepress\" --ext .js,.vue,.ts", |
14 | 23 | "eslint-fix": "eslint \"tests\" \"lib\" \"docs/.vuepress\" --ext .js,.vue,.ts --fix", |
15 | | - "pretest": "npm run build", |
| 24 | + "pretest": "npm run setup-types", |
16 | 25 | "test:base": "mocha --require ts-node/register \"tests/lib/**/*.ts\" --reporter dot --timeout 60000", |
17 | 26 | "test": "npm run test:base", |
18 | | - "pretest:nyc": "npm run build", |
19 | 27 | "test:nyc": "nyc --reporter=lcov npm run test:base", |
20 | 28 | "test:debug": "mocha --require ts-node/register --inspect-brk \"tests/lib/**/*.ts\" --reporter dot", |
21 | 29 | "update": "ts-node ./tools/update.ts && npm run eslint-fix && npm run test:nyc", |
22 | 30 | "new": "ts-node ./tools/new-rule.ts", |
23 | | - "predocs:watch": "npm run build", |
| 31 | + "predocs:watch": "npm run build:ts", |
24 | 32 | "docs:watch": "vuepress dev --debug docs", |
25 | | - "docs:build": "npm run build && vuepress build docs --no-cache", |
| 33 | + "docs:build": "npm run build:ts && vuepress build docs --no-cache", |
26 | 34 | "docs-deploysetup": "npm run docs:build && npm run docs-deploysetup:clean && npm run docs-deploysetup:copy", |
27 | 35 | "docs-deploysetup:clean": "rimraf assets", |
28 | 36 | "docs-deploysetup:copy": "npx cpx \"docs/\\.vuepress/dist/**\" . -u", |
|
60 | 68 | "@types/node": "^14.0.13", |
61 | 69 | "@types/semver": "^7.3.1", |
62 | 70 | "babel-eslint": "^10.1.0", |
| 71 | + "dts-bundle": "^0.7.3", |
63 | 72 | "eslint": "^7.3.0", |
64 | 73 | "eslint4b": "^7.3.1", |
65 | 74 | "espree": "^7.1.0", |
|
0 commit comments