Skip to content

Commit da69e94

Browse files
feat: support loading config with tsx (#260)
1 parent 0de2f5d commit da69e94

File tree

6 files changed

+306
-17
lines changed

6 files changed

+306
-17
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ In this case create JS/TS file named:
100100
- `postcss.config.mts`
101101
- `postcss.config.cts`
102102

103+
> [!NOTE]
104+
> For TypeScript configs, you must have [tsx](https://www.npmjs.com/package/tsx) or [jiti](https://www.npmjs.com/package/jiti) installed as a peer dependency.
105+
103106
```
104107
Project (Root)
105108
|– client

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,23 @@
5353
"postcss-import": "^16.1.0",
5454
"postcss-nested": "^6.0.1",
5555
"sugarss": "^4.0.1",
56+
"tsx": "^4.8.2",
5657
"typescript": "5.4.5"
5758
},
5859
"peerDependencies": {
5960
"jiti": ">=1.21.0",
60-
"postcss": ">=8.0.9"
61+
"postcss": ">=8.0.9",
62+
"tsx": "^4.8.1"
6163
},
6264
"peerDependenciesMeta": {
6365
"jiti": {
6466
"optional": true
6567
},
6668
"postcss": {
6769
"optional": true
70+
},
71+
"tsx": {
72+
"optional": true
6873
}
6974
},
7075
"c8": {

pnpm-lock.yaml

Lines changed: 261 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)