@code-sherpas/pharos-react 2.0.0 → 2.0.1
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/package.json +9 -6
- package/styles.css.d.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-sherpas/pharos-react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "React component library for Code Sherpas. Consumes @code-sherpas/pharos-tokens. Vite library mode + CSS Modules — no Tailwind, no CSS framework required at the consumer.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -17,14 +17,18 @@
|
|
|
17
17
|
},
|
|
18
18
|
"type": "module",
|
|
19
19
|
"files": [
|
|
20
|
-
"dist"
|
|
20
|
+
"dist",
|
|
21
|
+
"styles.css.d.ts"
|
|
21
22
|
],
|
|
22
23
|
"exports": {
|
|
23
24
|
".": {
|
|
24
25
|
"types": "./dist/index.d.ts",
|
|
25
26
|
"import": "./dist/index.js"
|
|
26
27
|
},
|
|
27
|
-
"./styles.css":
|
|
28
|
+
"./styles.css": {
|
|
29
|
+
"types": "./styles.css.d.ts",
|
|
30
|
+
"default": "./dist/styles.css"
|
|
31
|
+
},
|
|
28
32
|
"./Avatar": {
|
|
29
33
|
"types": "./dist/components/Avatar.d.ts",
|
|
30
34
|
"import": "./dist/components/Avatar.js"
|
|
@@ -110,8 +114,7 @@
|
|
|
110
114
|
"**/*.css"
|
|
111
115
|
],
|
|
112
116
|
"engines": {
|
|
113
|
-
"node": ">=22"
|
|
114
|
-
"pnpm": "10.33.0"
|
|
117
|
+
"node": ">=22"
|
|
115
118
|
},
|
|
116
119
|
"lint-staged": {
|
|
117
120
|
"*.{ts,tsx,js,mjs,cjs,json,md,mdx,css,yml,yaml}": "prettier --write"
|
|
@@ -175,7 +178,7 @@
|
|
|
175
178
|
"test:e2e": "pnpm --filter @examples/saas-demo test:e2e",
|
|
176
179
|
"dev:demo": "bash scripts/check-node-version.sh && pnpm --filter @examples/saas-demo dev",
|
|
177
180
|
"typecheck": "tsc --noEmit",
|
|
178
|
-
"verify:dist-types": "tsc --noEmit -p tsconfig.dist-smoke.json",
|
|
181
|
+
"verify:dist-types": "tsc --noEmit -p tsconfig.dist-smoke.json && tsc --noEmit -p tsconfig.css-entry-types.json",
|
|
179
182
|
"verify:dist-rsc": "node scripts/verify-dist-rsc.mjs",
|
|
180
183
|
"lint": "eslint .",
|
|
181
184
|
"format": "prettier --write .",
|
package/styles.css.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Types for the stylesheet entry point (`./styles.css`). A stylesheet exports
|
|
2
|
+
// nothing; this file only lets TypeScript resolve its side-effect import
|
|
3
|
+
// (`import '@code-sherpas/pharos-react/styles.css'`), which TypeScript 6 and
|
|
4
|
+
// later check by default (`noUncheckedSideEffectImports`).
|
|
5
|
+
export {};
|