Skip to content

Commit

Permalink
Move theme to shared package
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Dec 15, 2024
1 parent e6055b5 commit d41c4a7
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 83 deletions.
6 changes: 6 additions & 0 deletions .changeset/many-books-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@solid-devtools/shared": minor
"@solid-devtools/frontend": patch
---

Move theme to shared package
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@changesets/cli": "^2.27.10",
"@nothing-but/eslint-plugin": "^0.2.3",
"@playwright/test": "^1.49.0",
"@solid-devtools/theme": "file:packages/theme",
"@solid-devtools/shared": "file:packages/shared",
"@total-typescript/ts-reset": "^0.6.1",
"@types/node": "^22.10.1",
"@typescript-eslint/eslint-plugin": "^8.17.0",
Expand Down
1 change: 0 additions & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"@nothing-but/utils": "~0.17.0",
"@solid-devtools/debugger": "workspace:^",
"@solid-devtools/shared": "workspace:^",
"@solid-devtools/theme": "workspace:^",
"@solid-primitives/context": "^0.2.3",
"@solid-primitives/cursor": "^0.0.115",
"@solid-primitives/date": "^2.0.24",
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/ui/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from '@solid-devtools/theme'
export * from '@solid-devtools/shared/theme'
export * from './styles.tsx'

export * from './badge.tsx'
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/ui/styles.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as s from 'solid-js'
import {make_var_styles} from '@solid-devtools/theme'
import {make_var_styles} from '@solid-devtools/shared/theme'
import {value_node_styles} from '../inspector.tsx'
import {owner_path_styles} from '../structure.tsx'
import * as ui from '../ui/index.ts'
Expand Down
12 changes: 9 additions & 3 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
"types": "./dist/utils.d.ts",
"default": "./dist/utils.js"
}
},
"./theme": {
"import": {
"types": "./dist/theme.d.ts",
"default": "./dist/theme.js"
}
}
},
"peerDependencies": {
Expand All @@ -66,10 +72,10 @@
"@solid-primitives/scheduled": "^1.4.4",
"@solid-primitives/static-store": "^0.0.8",
"@solid-primitives/styles": "^0.0.114",
"@solid-primitives/utils": "^6.2.3"
"@solid-primitives/utils": "^6.2.3",
"@nothing-but/utils": "~0.17.0"
},
"devDependencies": {
"solid-js": "^1.9.3"
},
"browser": {}
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/shared/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*", "../../env.d.ts"]
"include": ["src/**/*"]
}
13 changes: 0 additions & 13 deletions packages/theme/CHANGELOG.md

This file was deleted.

45 changes: 0 additions & 45 deletions packages/theme/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/theme/tsconfig.json

This file was deleted.

18 changes: 6 additions & 12 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion uno.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as theme from '@solid-devtools/theme'
import * as theme from '@solid-devtools/shared/theme'
import * as unocss from '@unocss/core'
import presetUno from '@unocss/preset-uno'

Expand Down

0 comments on commit d41c4a7

Please sign in to comment.