|
3 | 3 | "version": "0.0.1",
|
4 | 4 | "description": "An mdast plugin for Astro Flavored Markdown",
|
5 | 5 | "main": "index.js",
|
| 6 | + "files": [ |
| 7 | + "types/*.d.ts" |
| 8 | + ], |
| 9 | + "types": "types/index.d.ts", |
6 | 10 | "scripts": {
|
7 | 11 | "prepare:husky": "husky install",
|
| 12 | + "prepare:esbuild": "esbuild src/index.ts --bundle --packages=external --platform=neutral --outfile=index.js", |
8 | 13 | "prepare:tsc": "tsc",
|
9 | 14 | "prepare": "run-p prepare:*",
|
10 | 15 | "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest"
|
|
29 | 34 | "mdast-util-find-and-replace": "^3.0.0"
|
30 | 35 | },
|
31 | 36 | "devDependencies": {
|
32 |
| - "@tsconfig/node14": "^1.0.3", |
| 37 | + "@trivago/prettier-plugin-sort-imports": "^4.2.0", |
| 38 | + "@tsconfig/node16": "^16.1.1", |
33 | 39 | "@types/jest": "^29.2.5",
|
34 | 40 | "@types/mdast": "^4.0.0",
|
35 | 41 | "@typescript-eslint/eslint-plugin": "^5.48.1",
|
36 | 42 | "@typescript-eslint/parser": "^5.48.1",
|
37 | 43 | "cross-env": "^7.0.3",
|
| 44 | + "esbuild": "^0.19.2", |
38 | 45 | "eslint": "^8.31.0",
|
39 | 46 | "eslint-config-prettier": "^8.6.0",
|
40 | 47 | "eslint-plugin-jest": "^27.2.1",
|
| 48 | + "glob": "^10.3.4", |
41 | 49 | "husky": "^8.0.3",
|
42 |
| - "jest": "^29.3.1", |
| 50 | + "jest": "^29.6.4", |
43 | 51 | "lint-staged": "^13.1.0",
|
44 | 52 | "mdast-util-from-markdown": "^2.0.0",
|
45 | 53 | "npm-run-all": "^4.1.5",
|
46 | 54 | "prettier": "^2.8.2",
|
47 |
| - "ts-jest": "^29.0.4", |
48 |
| - "typescript": "^4.9.4" |
| 55 | + "ts-dedent": "^2.2.0", |
| 56 | + "ts-jest": "^29.1.1", |
| 57 | + "typescript": "^5.2.2" |
49 | 58 | },
|
50 | 59 | "type": "module",
|
51 | 60 | "sideEffects": false,
|
52 | 61 | "prettier": {
|
| 62 | + "plugins": [ |
| 63 | + "@trivago/prettier-plugin-sort-imports" |
| 64 | + ], |
| 65 | + "importOrder": [ |
| 66 | + "^[@a-zA-Z].*(?<!(?:css|gif|json|png|svg))$", |
| 67 | + "^[.~/].*(?<!(?:css|gif|json|png|svg))$", |
| 68 | + "" |
| 69 | + ], |
| 70 | + "importOrderSeparation": true, |
| 71 | + "importOrderSortSpecifiers": true, |
53 | 72 | "semi": false,
|
54 |
| - "singleQuote": true |
| 73 | + "singleQuote": true, |
| 74 | + "trailingComma": "es5" |
55 | 75 | },
|
56 | 76 | "jest": {
|
57 | 77 | "preset": "ts-jest/presets/default-esm",
|
58 | 78 | "collectCoverage": true,
|
59 | 79 | "coverageReporters": [
|
60 | 80 | "text",
|
61 | 81 | "cobertura"
|
62 |
| - ] |
| 82 | + ], |
| 83 | + "moduleNameMapper": { |
| 84 | + "^(\\.{1,2}/.*)\\.js$": "$1" |
| 85 | + } |
63 | 86 | },
|
64 | 87 | "eslintConfig": {
|
65 | 88 | "env": {
|
|
0 commit comments