Skip to content

Commit 1700e55

Browse files
authored
Output .css instead of .module.css (#21)
1 parent 22c63e2 commit 1700e55

12 files changed

+118
-7
lines changed

.changeset/two-drinks-double.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"postcss-typesafe-css-modules": minor
3+
---
4+
5+
Output .css instead of .module.css to prevent potential consumers from trying to double compile CSS modules
10.3 KB
Binary file not shown.
6.3 KB
Binary file not shown.
89.7 KB
Binary file not shown.
170 KB
Binary file not shown.
172 KB
Binary file not shown.
3.99 KB
Binary file not shown.
9.84 KB
Binary file not shown.
20.9 KB
Binary file not shown.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
},
2626
"scripts": {
2727
"build": "run-p 'build:**'",
28-
"build:transpile-esm": "swc ./src --config-file esm.swcrc --out-dir dist/esm --strip-leading-paths --out-file-extension mjs",
28+
"build:transpile-esm": "swc ./src --config-file esm.swcrc --out-dir dist/esm --strip-leading-paths --out-file-extension mjs",
2929
"build:transpile-cjs": "swc ./src --config-file cjs.swcrc --out-dir dist/cjs --strip-leading-paths",
3030
"build:typecheck": "tsc -p tsconfig.json",
31+
"clean": "rm -rf dist",
3132
"lint": "prettier --check 'src/**/*.ts'",
3233
"lint-fix": "prettier --write 'src/**/*.ts'",
33-
"clean": "rm -rf dist"
34+
"watch-esm": "swc ./src -w -s --config-file esm.swcrc --out-dir dist/esm --strip-leading-paths --out-file-extension mjs",
35+
"watch-cjs": "swc ./src -w -s --config-file cjs.swcrc --out-dir dist/cjs --strip-leading-paths"
3436
},
3537
"dependencies": {
3638
"fs-extra": "^11.2.0",
@@ -45,6 +47,7 @@
4547
"@swc/plugin-transform-imports": "^3.0.1",
4648
"@types/fs-extra": "^11.0.4",
4749
"@types/node": "^20.10.5",
50+
"chokidar": "^3.6.0",
4851
"npm-run-all": "^4.1.5",
4952
"postcss": "^8.4.40",
5053
"prettier": "^3.3.3",

0 commit comments

Comments
 (0)