Skip to content

Commit 5955f7c

Browse files
author
Bart Veneman
committed
BREAKING: ship ESM only
1 parent 36a2c4e commit 5955f7c

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "css-time-sort",
33
"description": "Sort an array of CSS <time> values",
4-
"version": "2.0.2",
4+
"version": "3.0.0-alpha.0",
55
"type": "module",
66
"homepage": "https://github.com/projectwallace/css-time-sort",
77
"repository": {
@@ -30,16 +30,15 @@
3030
"check": "tsc --noEmit",
3131
"build": "vite build"
3232
},
33+
"engines": {
34+
"node": ">=18.0.0"
35+
},
36+
"main": "./dist/css-time-sort.js",
37+
"types": "./dist/index.d.ts",
3338
"exports": {
3439
"types": "./dist/index.d.ts",
35-
"require": "./dist/css-time-sort.umd.cjs",
3640
"default": "./dist/css-time-sort.js"
3741
},
38-
"source": "index.js",
39-
"types": "./dist/index.d.ts",
40-
"main": "./dist/css-time-sort.umd.cjs",
41-
"module": "./dist/css-time-sort.js",
42-
"unpkg": "./dist/css-time-sort.umd.cjs",
4342
"devDependencies": {
4443
"@codecov/vite-plugin": "^1.9.0",
4544
"c8": "^10.1.3",

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: "cssTimeSort",
11-
fileName: "css-time-sort",
10+
formats: ['es']
1211
},
1312
rollupOptions: {
1413
// make sure to externalize deps that shouldn't be bundled

0 commit comments

Comments
 (0)