Skip to content

Commit 42cedf6

Browse files
committed
build!: move to typesVersions, bump dependencies, and drop cjs support
1 parent 61ebce0 commit 42cedf6

File tree

8 files changed

+1727
-3318
lines changed

8 files changed

+1727
-3318
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nuxtrc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
typescript.includeWorkspace=true
21
sourcemap=false
3-
4-
# enable TypeScript bundler module resolution - https://www.typescriptlang.org/docs/handbook/modules/reference.html#bundler
5-
experimental.typescriptBundlerResolution=true

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@
2222

2323
## Features
2424

25-
- Nuxt 3 and Nuxt Bridge support
2625
- Add `.${color}-mode` class to `<html>` for easy CSS theming
2726
- Force a page to a specific color mode (perfect for incremental development)
2827
- Works with client-side and universal rendering
2928
- Auto detect system [color-mode](https://drafts.csswg.org/mediaqueries-5/#descdef-media-prefers-color-mode)
30-
- Supports IE9+ 👴
3129

3230
[📖 &nbsp;Read more](https://color-mode.nuxtjs.org)
3331

docs/.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@nuxtjs/color-mode",
33
"version": "3.5.2",
4-
"description": "Dark and Light mode for Nuxt with auto detection",
4+
"description": "Dark and light mode for Nuxt with auto detection",
55
"repository": {
66
"type": "git",
77
"url": "git+https://github.com/nuxt-modules/color-mode.git"
88
},
99
"license": "MIT",
10-
"packageManager": "pnpm@10.20.0",
10+
"packageManager": "pnpm@10.21.0",
1111
"contributors": [
1212
{
1313
"name": "Nuxt Team"
@@ -16,13 +16,18 @@
1616
"type": "module",
1717
"exports": {
1818
".": {
19-
"types": "./dist/types.d.ts",
20-
"import": "./dist/module.mjs",
21-
"require": "./dist/module.cjs"
19+
"types": "./dist/types.d.mts",
20+
"import": "./dist/module.mjs"
21+
}
22+
},
23+
"main": "./dist/module.mjs",
24+
"typesVersions": {
25+
"*": {
26+
".": [
27+
"./dist/types.d.mts"
28+
]
2229
}
2330
},
24-
"main": "./dist/module.cjs",
25-
"types": "./dist/types.d.ts",
2631
"files": [
2732
"dist"
2833
],
@@ -43,25 +48,26 @@
4348
"@nuxt/kit": "^4.2.1",
4449
"pathe": "^2.0.3",
4550
"pkg-types": "^2.3.0",
46-
"semver": "^7.6.3"
51+
"semver": "^7.7.3"
4752
},
4853
"devDependencies": {
4954
"@commitlint/cli": "^20.1.0",
5055
"@commitlint/config-conventional": "^20.0.0",
5156
"@nuxt/eslint-config": "^1.10.0",
52-
"@nuxt/module-builder": "^0.8.4",
57+
"@nuxt/module-builder": "^1.0.2",
5358
"@nuxt/schema": "^4.2.1",
54-
"@nuxt/test-utils": "^3.14.4",
59+
"@nuxt/test-utils": "^3.20.1",
5560
"@types/lodash.template": "^4.5.3",
56-
"@types/semver": "^7.5.8",
57-
"@typescript-eslint/parser": "^8.11.0",
61+
"@types/semver": "^7.7.1",
62+
"@typescript-eslint/parser": "^8.46.4",
5863
"@vitest/coverage-v8": "^4.0.8",
59-
"changelogen": "^0.5.7",
60-
"eslint": "^9.13.0",
61-
"husky": "9.1.6",
64+
"changelogen": "^0.6.2",
65+
"esbuild": "^0.27.0",
66+
"eslint": "^9.39.1",
67+
"husky": "9.1.7",
6268
"nuxt": "^4.2.1",
63-
"typescript": "^5.6.3",
69+
"typescript": "^5.9.3",
6470
"vitest": "^4.0.8",
65-
"vue-tsc": "^2.1.6"
71+
"vue-tsc": "^3.1.3"
6672
}
6773
}

playground/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
"name": "color-mode-playground",
33
"private": true,
44
"dependencies": {
5-
"@nuxt/icon": "^1.5.6",
5+
"@iconify-json/ph": "^1.2.2",
6+
"@iconify/utils": "^3.0.2",
7+
"@nuxt/icon": "^2.1.0",
68
"@nuxtjs/color-mode": "latest",
7-
"@nuxtjs/tailwindcss": "^6.12.2",
9+
"@nuxtjs/tailwindcss": "^6.14.0",
810
"nuxt": "^4.2.1"
911
},
1012
"scripts": {

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
packages:
2-
- docs
3-
- playground
4-
- ./
2+
- docs
3+
- playground
4+
- ./
5+
6+
onlyBuiltDependencies:
7+
- better-sqlite3

0 commit comments

Comments
 (0)