electron-types 42.8.0 → 42.8.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/README.md +12 -9
- package/dist/electron.d.ts +1 -1
- package/dist/version.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,11 +14,11 @@ The official `electron` package is ~200MB because it includes the Electron binar
|
|
|
14
14
|
Since this package only provides TypeScript types, install it as a dev dependency. **Install the version that matches your Electron version** (see [Version Matching](#version-matching)):
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install -D electron-types@42.8.
|
|
17
|
+
npm install -D electron-types@42.8.1
|
|
18
18
|
# or
|
|
19
|
-
yarn add -D electron-types@42.8.
|
|
19
|
+
yarn add -D electron-types@42.8.1
|
|
20
20
|
# or
|
|
21
|
-
pnpm add -D electron-types@42.8.
|
|
21
|
+
pnpm add -D electron-types@42.8.1
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Usage
|
|
@@ -55,24 +55,27 @@ This package is automatically updated via CI:
|
|
|
55
55
|
|
|
56
56
|
## Development
|
|
57
57
|
|
|
58
|
+
Local development requires Node.js 22.13+ for pnpm 11. Enable Corepack once with
|
|
59
|
+
`corepack enable` if pnpm is not already available.
|
|
60
|
+
|
|
58
61
|
```bash
|
|
59
62
|
# Install dependencies
|
|
60
|
-
|
|
63
|
+
pnpm install
|
|
61
64
|
|
|
62
65
|
# Extract types from latest electron
|
|
63
|
-
|
|
66
|
+
pnpm extract
|
|
64
67
|
|
|
65
68
|
# Extract types from a specific version
|
|
66
|
-
|
|
69
|
+
pnpm extract 39.2.7
|
|
67
70
|
|
|
68
71
|
# Build package for a specific version (extract + update version)
|
|
69
|
-
|
|
72
|
+
pnpm build 39.2.7
|
|
70
73
|
|
|
71
74
|
# Test that types work correctly
|
|
72
|
-
|
|
75
|
+
pnpm test
|
|
73
76
|
|
|
74
77
|
# Check if a new version needs to be published
|
|
75
|
-
|
|
78
|
+
pnpm check-versions
|
|
76
79
|
```
|
|
77
80
|
|
|
78
81
|
## License
|
package/dist/electron.d.ts
CHANGED
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "electron-types",
|
|
3
|
-
"version": "42.8.
|
|
3
|
+
"version": "42.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript type definitions extracted from the electron package",
|
|
6
6
|
"types": "./dist/electron.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"typescript": "^5.0.0",
|
|
39
39
|
"vitest": "^4.0.16"
|
|
40
40
|
},
|
|
41
|
-
"packageManager": "
|
|
41
|
+
"packageManager": "pnpm@11.18.0",
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=18.0.0"
|
|
44
44
|
}
|