Skip to content

Commit

Permalink
feat: support loading config with tsx (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed May 1, 2024
1 parent 0de2f5d commit da69e94
Show file tree
Hide file tree
Showing 6 changed files with 306 additions and 17 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ In this case create JS/TS file named:
- `postcss.config.mts`
- `postcss.config.cts`

> [!NOTE]
> 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.
```
Project (Root)
|– client
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,23 @@
"postcss-import": "^16.1.0",
"postcss-nested": "^6.0.1",
"sugarss": "^4.0.1",
"tsx": "^4.8.2",
"typescript": "5.4.5"
},
"peerDependencies": {
"jiti": ">=1.21.0",
"postcss": ">=8.0.9"
"postcss": ">=8.0.9",
"tsx": "^4.8.1"
},
"peerDependenciesMeta": {
"jiti": {
"optional": true
},
"postcss": {
"optional": true
},
"tsx": {
"optional": true
}
},
"c8": {
Expand Down
261 changes: 261 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit da69e94

Please sign in to comment.