|
8 | 8 | "publishConfig": { |
9 | 9 | "access": "public" |
10 | 10 | }, |
| 11 | + "keywords": [ |
| 12 | + "config", |
| 13 | + "eslint", |
| 14 | + "react" |
| 15 | + ], |
11 | 16 | "type": "module", |
12 | 17 | "sideEffects": false, |
13 | 18 | "files": [ |
14 | | - "index.d.ts", |
15 | | - "index.js", |
16 | | - "recommended.js", |
| 19 | + "dist/", |
17 | 20 | ".remarkrc" |
18 | 21 | ], |
| 22 | + "main": "./dist/index.js", |
| 23 | + "module": "./dist/index.js", |
| 24 | + "types": "./dist/index.d.ts", |
19 | 25 | "exports": { |
20 | 26 | ".": { |
21 | | - "types": "./index.d.ts", |
22 | | - "import": "./index.js", |
23 | | - "default": "./index.js" |
| 27 | + "types": "./dist/index.d.ts", |
| 28 | + "import": "./dist/index.js", |
| 29 | + "default": "./dist/index.js" |
24 | 30 | }, |
25 | 31 | "./remarkrc": { |
26 | | - "types": "./remarkrc.d.ts", |
27 | | - "import": "./remarkrc.js", |
28 | | - "default": "./remarkrc.js" |
| 32 | + "types": "./dist/remarkrc.d.ts", |
| 33 | + "import": "./dist/remarkrc.js", |
| 34 | + "default": "./dist/remarkrc.js" |
| 35 | + }, |
| 36 | + "./remark-lint-code-format": { |
| 37 | + "types": "./dist/remark-lint-code-format.d.ts", |
| 38 | + "import": "./dist/remark-lint-code-format.js", |
| 39 | + "default": "./dist/remark-lint-code-format.js" |
| 40 | + }, |
| 41 | + "./remark-lint-mdx-jsx-format": { |
| 42 | + "types": "./dist/remark-lint-mdx-jsx-format.d.ts", |
| 43 | + "import": "./dist/remark-lint-mdx-jsx-format.js", |
| 44 | + "default": "./dist/remark-lint-mdx-jsx-format.js" |
| 45 | + }, |
| 46 | + "./remark-preserve-alert-markers": { |
| 47 | + "types": "./dist/remark-preserve-alert-markers.d.ts", |
| 48 | + "import": "./dist/remark-preserve-alert-markers.js", |
| 49 | + "default": "./dist/remark-preserve-alert-markers.js" |
29 | 50 | } |
30 | 51 | }, |
31 | 52 | "scripts": { |
32 | | - "prepublishOnly": "qui-cli pre-publish", |
| 53 | + "build": "run-s clean build:js build:types", |
| 54 | + "build:js": "tsx build.ts", |
| 55 | + "build:types": "tsc -p tsconfig.lib.json", |
| 56 | + "build:watch": "run-p watch:js watch:types", |
| 57 | + "watch:js": "tsx build.ts --watch", |
| 58 | + "watch:types": "tsc -p tsconfig.lib.json -w --preserveWatchOutput", |
| 59 | + "clean": "shx rm -rf dist", |
| 60 | + "lint": "eslint --quiet", |
| 61 | + "test": "turbo build --filter @qualcomm-ui/eslint-config-mdx && vitest -c vitest.config.ts --run", |
| 62 | + "test:unit:ci": "pnpm build && cross-env NODE_OPTIONS='' vitest -c vitest.config.ts --run --pool=threads --no-file-parallelism", |
| 63 | + "prepublishOnly": "pnpm build && qui-cli pre-publish", |
33 | 64 | "postpublish": "qui-cli post-publish" |
34 | 65 | }, |
35 | 66 | "devDependencies": { |
36 | 67 | "@eslint/core": "^1.0.0", |
37 | 68 | "@qualcomm-ui/cli": "catalog:", |
| 69 | + "@qualcomm-ui/esbuild": "catalog:", |
| 70 | + "@qualcomm-ui/tsconfig": "catalog:", |
| 71 | + "cross-env": "^10.1.0", |
| 72 | + "esbuild": "catalog:", |
38 | 73 | "eslint-mdx": "^3.7.0", |
39 | 74 | "eslint-plugin-mdx": "^3.7.0", |
40 | 75 | "eslint-plugin-react": "^7.37.5", |
| 76 | + "npm-run-all2": "catalog:", |
| 77 | + "oxfmt": "catalog:", |
41 | 78 | "remark-frontmatter": "^5.0.0", |
42 | 79 | "remark-lint-fenced-code-flag": "^4.2.0", |
43 | 80 | "remark-lint-final-newline": "^3.0.1", |
|
49 | 86 | "remark-lint-no-duplicate-headings-in-section": "^4.0.1", |
50 | 87 | "remark-lint-no-heading-punctuation": "^4.0.1", |
51 | 88 | "remark-lint-unordered-list-marker-style": "^4.0.1", |
52 | | - "unified": "catalog:" |
| 89 | + "shx": "catalog:", |
| 90 | + "tsx": "catalog:", |
| 91 | + "typescript": "catalog:", |
| 92 | + "unified": "catalog:", |
| 93 | + "vitest": "catalog:" |
53 | 94 | }, |
54 | 95 | "peerDependencies": { |
55 | 96 | "eslint": ">=9.37.0", |
56 | 97 | "eslint-mdx": ">=3.7.0", |
57 | 98 | "eslint-plugin-mdx": ">=3.7.0", |
58 | 99 | "eslint-plugin-react": ">=7.37.5", |
| 100 | + "oxfmt": ">=0.48.0", |
59 | 101 | "remark-frontmatter": ">=5.0.0", |
60 | 102 | "remark-lint-fenced-code-flag": ">=4.2.0", |
61 | 103 | "remark-lint-final-newline": ">=3.0.1", |
|
70 | 112 | "typescript": ">=5.9.3", |
71 | 113 | "typescript-eslint": ">=8.31.1", |
72 | 114 | "unified": ">=11" |
73 | | - }, |
74 | | - "keywords": [ |
75 | | - "eslint", |
76 | | - "config", |
77 | | - "react" |
78 | | - ] |
| 115 | + } |
79 | 116 | } |
0 commit comments