@octanejs/styled-components 0.1.2 → 0.1.3

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/package.json +4 -4
  2. package/src/env.d.ts +17 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/styled-components",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -42,17 +42,17 @@
42
42
  "stylis": "^4.3.2"
43
43
  },
44
44
  "peerDependencies": {
45
- "octane": "0.1.10"
45
+ "octane": "0.1.11"
46
46
  },
47
47
  "devDependencies": {
48
- "@tsrx/react": "^0.2.37",
48
+ "@tsrx/react": "^0.2.44",
49
49
  "@types/stylis": "^4.2.5",
50
50
  "esbuild": "^0.28.1",
51
51
  "react": "^19.2.0",
52
52
  "react-dom": "^19.2.0",
53
53
  "styled-components": "6.4.3",
54
54
  "vitest": "^4.1.9",
55
- "octane": "0.1.10"
55
+ "octane": "0.1.11"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run"
package/src/env.d.ts ADDED
@@ -0,0 +1,17 @@
1
+ // The `process.env` reads in this package (SC_ATTR / REACT_APP_SC_ATTR /
2
+ // NODE_ENV / SC_DISABLE_SPEEDY) are build-time-replaceable globals guarded by
3
+ // `typeof process !== 'undefined'` checks — not a Node.js dependency. Declare
4
+ // the minimal shape here so the package typechecks without @types/node; when
5
+ // @types/node IS in the program these declarations merge with its identical
6
+ // `var process: NodeJS.Process` global.
7
+ declare namespace NodeJS {
8
+ interface ProcessEnv {
9
+ [key: string]: string | undefined;
10
+ }
11
+
12
+ interface Process {
13
+ env: ProcessEnv;
14
+ }
15
+ }
16
+
17
+ declare var process: NodeJS.Process;