Skip to content

Commit a201366

Browse files
authored
BREAKING: ship ESM only (#119)
1 parent 5027574 commit a201366

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

package-lock.json

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

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@projectwallace/format-css",
3-
"version": "1.5.4",
3+
"version": "2.0.0-alpha.1",
44
"description": "Fast, small, zero-config library to format CSS with basic rules.",
55
"repository": {
66
"type": "git",
@@ -9,17 +9,16 @@
99
"homepage": "https://github.com/projectwallace/format-css",
1010
"issues": "https://github.com/projectwallace/format-css/issues",
1111
"license": "MIT",
12+
"engines": {
13+
"node": ">=18.0.0"
14+
},
1215
"type": "module",
13-
"source": "index.js",
16+
"main": "./dist/format-css.js",
1417
"exports": {
1518
"types": "./dist/index.d.ts",
16-
"require": "./dist/format-css.umd.cjs",
1719
"default": "./dist/format-css.js"
1820
},
1921
"types": "./dist/index.d.ts",
20-
"main": "./dist/format-css.umd.cjs",
21-
"module": "./dist/format-css.js",
22-
"unpkg": "./dist/format-css.umd.cjs",
2322
"scripts": {
2423
"build": "vite build",
2524
"test": "c8 --reporter=lcov uvu",

vite.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ export default defineConfig({
77
build: {
88
lib: {
99
entry: resolve(__dirname, "index.js"),
10-
name: "formatCss",
11-
fileName: "format-css",
10+
formats: ["es"],
1211
},
1312
rollupOptions: {
1413
// make sure to externalize deps that shouldn't be bundled

0 commit comments

Comments
 (0)