gemcss 0.1.0 → 0.2.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.
package/README.md CHANGED
@@ -10,13 +10,13 @@ function, with types inferred from the CSS itself.
10
10
  `button.module.css`
11
11
 
12
12
  ```css
13
- .button { border-radius: 6px; padding: 8px 14px; }
14
- .button_disabled { opacity: 0.5; pointer-events: none; }
15
- .button_variant_primary { background: #2563eb; color: #fff; }
16
- .button_variant_ghost { background: transparent; color: #2563eb; }
17
- .button_size_s { padding: 4px 10px; font-size: 13px; }
18
- .button_size_m { padding: 8px 14px; font-size: 14px; }
19
- .button_size_l { padding: 12px 20px; font-size: 16px; }
13
+ .button {... }
14
+ .button_disabled {... }
15
+ .button_variant_primary {... }
16
+ .button_variant_ghost {... }
17
+ .button_size_s {... }
18
+ .button_size_m {... }
19
+ .button_size_l {... }
20
20
  ```
21
21
 
22
22
  `button.tsx`
package/bin/gemcss.mjs ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import './../dist/cli.js';
package/dist/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcss",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "Typed BEM classes from CSS modules — every block becomes a modifier-combinator function, with types inferred from the CSS",
6
6
  "keywords": [
@@ -21,12 +21,11 @@
21
21
  },
22
22
  "bugs": "https://github.com/vkalinichev/gemcss/issues",
23
23
  "homepage": "https://github.com/vkalinichev/gemcss#readme",
24
- "packageManager": "pnpm@11.12.0",
25
24
  "engines": {
26
25
  "node": ">=22.14"
27
26
  },
28
27
  "bin": {
29
- "gemcss": "./dist/cli.js"
28
+ "gemcss": "./bin/gemcss.mjs"
30
29
  },
31
30
  "exports": {
32
31
  "./runtime": {
@@ -47,22 +46,10 @@
47
46
  }
48
47
  },
49
48
  "files": [
49
+ "bin",
50
50
  "dist",
51
51
  "ts-plugin"
52
52
  ],
53
- "scripts": {
54
- "build": "pnpm build:lib && pnpm -r --filter 'example-*' build",
55
- "build:lib": "pnpm clean && tsup && node scripts/fix-ts-plugin-dts.mjs",
56
- "clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
57
- "test": "vitest run",
58
- "test:watch": "vitest",
59
- "typecheck": "tsc --noEmit",
60
- "lint": "eslint .",
61
- "format": "prettier --write .",
62
- "check:exports": "publint --strict && attw --pack . --profile esm-only",
63
- "release": "changeset publish",
64
- "prepublishOnly": "pnpm build:lib"
65
- },
66
53
  "dependencies": {
67
54
  "postcss": "^8.4.49",
68
55
  "postcss-modules": "^6.0.1",
@@ -97,5 +84,17 @@
97
84
  "vite": "^6.0.0",
98
85
  "vitest": "^2.1.8",
99
86
  "webpack": "^5.97.1"
87
+ },
88
+ "scripts": {
89
+ "build": "pnpm build:lib && pnpm -r --filter 'example-*' build",
90
+ "build:lib": "pnpm clean && tsup && node scripts/fix-ts-plugin-dts.mjs",
91
+ "clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
92
+ "test": "vitest run",
93
+ "test:watch": "vitest",
94
+ "typecheck": "tsc --noEmit",
95
+ "lint": "eslint .",
96
+ "format": "prettier --write .",
97
+ "check:exports": "publint --strict && attw --pack . --profile esm-only",
98
+ "release": "changeset publish"
100
99
  }
101
- }
100
+ }