@cssints/devtools 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -3
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -78,9 +78,16 @@ the box gets focus and after a send that found none, so starting OpenCode later
78
78
 
79
79
  ### The command `/cssints-devtools`
80
80
 
81
- The box does not choose a session: an OpenCode command attaches the session it runs in to a dev server. Load the plugin of
82
- this package in the repository of the app (OpenCode loads `.ts` files of `.opencode/plugins/`; a package subpath in
83
- `plugins` of opencode.jsonc is not loaded in 2.0.27, nor is a folder with only a `package.json`):
81
+ The box does not choose a session: an OpenCode command attaches the session it runs in to a dev server. The plugin is the
82
+ main entry of this package, so OpenCode loads it by the package name (checked on 2.0.27: it installs the package and finds
83
+ the entry; a package subpath, `@cssints/devtools/opencode`, is not loaded as a plugin):
84
+
85
+ ```jsonc
86
+ // opencode.jsonc of the repository of the app (or ~/.config/opencode/opencode.jsonc)
87
+ { "plugins": ["@cssints/devtools"] }
88
+ ```
89
+
90
+ Or, with the package installed in the app, a file of the repository (OpenCode loads the `.ts` files of `.opencode/plugins/`):
84
91
 
85
92
  ```ts
86
93
  // .opencode/plugins/cssints-devtools.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cssints/devtools",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "A dev overlay inspector for cssints: an element's classes by the call that made them, the cascade of the sheet, checked against the browser",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,6 +16,7 @@
16
16
  "type": "module",
17
17
  "sideEffects": false,
18
18
  "exports": {
19
+ ".": "./dist/opencode.js",
19
20
  "./overlay": "./dist/overlay.js",
20
21
  "./opencode": "./dist/opencode.js",
21
22
  "./core": {
@@ -29,11 +30,11 @@
29
30
  "./inject": "./src/core/inject.ts"
30
31
  },
31
32
  "dependencies": {
32
- "@cssints/css-grammar": "^0.3.0",
33
+ "@cssints/css-grammar": "^0.4.0",
33
34
  "effect": "4.0.0"
34
35
  },
35
36
  "peerDependencies": {
36
- "cssints": "^0.3.0"
37
+ "cssints": "^0.4.0"
37
38
  },
38
39
  "engines": {
39
40
  "node": ">=22"