Files
electron/package.json
T
claude[bot]andClaude Opus 5.5 70d678d1d9 docs: narrow clipboardItem.getType() return type from its MIME type (#54300)
* docs: narrow clipboardItem.getType() return type from its MIME type

Type getType() with a generic MIME type parameter and a conditional
return type so a literal `electron application/bookmark` resolves to a
ClipboardBookmark, any other literal MIME type resolves to a Blob, and
a non-literal string still resolves to the union. Adds ts-smoke cases
for all three and drops the now-unneeded `instanceof Blob` check from
the `text/uri-list` example.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmVsAQiHawruFHijTtkzV9

* build: bump @electron/docs-parser to 3.0.2

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HmVsAQiHawruFHijTtkzV9

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-24 20:01:03 -07:00

149 lines
5.7 KiB
JSON

{
"name": "@electron-ci/dev-root",
"version": "0.0.0-development",
"repository": "https://github.com/electron/electron",
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
"devDependencies": {
"@azure/storage-blob": "^12.28.0",
"@datadog/datadog-ci": "^5.17.0",
"@electron/asar": "^4.3.0",
"@electron/docs-parser": "^3.0.2",
"@electron/fiddle-core": "^2.2.2",
"@electron/github-app-auth": "^3.2.0",
"@electron/lint-roller": "^4.0.0",
"@electron/typescript-definitions": "^9.2.0",
"@hurdlegroup/robotjs": "^0.12.3",
"@octokit/rest": "^22.0.1",
"@sentry/cli": "3.6.2",
"@types/minimist": "^1.2.5",
"@types/node": "^24.9.0",
"@types/stream-json": "^1.7.8",
"@xmldom/xmldom": "^0.9.12",
"folder-hash": "^4.1.2",
"husky": "^9.1.7",
"lint-staged": "^17.3.0",
"markdownlint-cli2": "^0.18.0",
"minimist": "^1.2.8",
"node-gyp": "^12.3.0",
"oxfmt": "^0.42.0",
"oxlint": "^1.80.0",
"pre-flight": "^2.0.0",
"rolldown": "^1.2.8",
"semver": "^7.6.3",
"stream-json": "^1.9.1",
"tap-xunit": "^2.4.1",
"typescript": "^7.0.2",
"yaml": "^2.8.1"
},
"private": true,
"scripts": {
"asar": "asar",
"generate-version-json": "node script/generate-version-json.js",
"lint": "node ./script/lint.js && npm run lint:fmt && npm run lint:docs && npm run lint:chromium-roller",
"lint:js": "node ./script/lint.js --js",
"lint:fmt": "oxfmt --check \"{lib,spec,script,build,default_app,npm,typings}/**/*.{js,ts,mjs,mts,cjs}\"",
"format": "oxfmt --write \"{lib,spec,script,build,default_app,npm,typings}/**/*.{js,ts,mjs,mts,cjs}\"",
"lint:clang-format": "python3 script/run-clang-format.py -r -c shell/ || (echo \"\\nCode not formatted correctly.\" && exit 1)",
"lint:clang-tidy": "node ./script/run-clang-tidy.mts",
"lint:cpp": "node ./script/lint.js --cc",
"lint:objc": "node ./script/lint.js --objc",
"lint:py": "node ./script/lint.js --py",
"lint:gn": "node ./script/lint.js --gn",
"lint:docs": "npm run lint:js-in-markdown && npm run lint:fmt-in-markdown && npm run create-typescript-definitions && npm run lint:ts-check-js-in-markdown && npm run lint:docs-fiddles && npm run lint:docs-relative-links && npm run lint:markdown && npm run lint:api-history",
"lint:docs-fiddles": "oxlint docs/fiddles",
"lint:docs-relative-links": "lint-roller-markdown-links --resource-root . --root docs \"**/*.md\"",
"lint:markdown": "node ./script/lint.js --md",
"lint:ts-check-js-in-markdown": "lint-roller-markdown-ts-check --root docs \"**/*.md\" --ignore \"breaking-changes.md\"",
"lint:js-in-markdown": "lint-roller-markdown-oxlint --root docs \"**/*.md\"",
"lint:fmt-in-markdown": "lint-roller-markdown-oxfmt --root docs \"**/*.md\" --config docs/.oxfmtrc.json",
"lint:api-history": "lint-roller-markdown-api-history --root \"./docs/api/\" --schema \"./docs/api-history.schema.json\" --breaking-changes-file \"./docs/breaking-changes.md\" --check-placement --check-strings \"*.md\"",
"lint:chromium-roller": "node ./script/lint-roller-chromium-changes.mjs",
"create-api-json": "node script/create-api-json.mjs",
"create-typescript-definitions": "npm run create-api-json && electron-typescript-definitions --api=electron-api.json && node spec/ts-smoke/runner.js",
"gn-typescript-definitions": "npm run create-typescript-definitions && node script/cp.mjs electron.d.ts",
"pre-flight": "pre-flight",
"gn-check": "node ./script/gn-check.js",
"gn-format": "node ./script/lint.js --gn --fix",
"precommit": "lint-staged",
"preinstall": "node -e 'process.exit(0)'",
"pretest": "npm run create-typescript-definitions",
"prepare": "husky",
"repl": "node ./script/start.js --interactive",
"start": "node ./script/start.js",
"test": "node ./script/spec-runner.js",
"tsc": "tsc",
"bundle": "node build/bundle/bundle.mjs",
"typecheck": "node build/bundle/typecheck.mjs"
},
"license": "MIT",
"author": "Electron Community",
"keywords": [
"electron"
],
"lint-staged": {
"*": [
"npm run lint:chromium-roller"
],
"*.{js,ts,mjs,mts,cjs}": [
"oxfmt --write"
],
"*.{js,ts,mjs,mts}": [
"node script/lint.js --js --fix --only --",
"oxfmt --write"
],
"*.{js,mjs,ts,mts,d.ts}": [
"node script/gen-filenames.mts"
],
"*.{cc,mm,c,h}": [
"python3 script/run-clang-format.py -r -c --fix"
],
"*.md": [
"npm run lint:docs"
],
"*.{gn,gni}": [
"npm run gn-check",
"node ./script/lint.js --gn --fix --only --"
],
"*.py": [
"node script/lint.js --py --fix --only --"
],
"docs/api/**/*.md": [
"node script/gen-filenames.mts",
"markdownlint-cli2 --config .autofix.markdownlint-cli2.jsonc --fix"
],
"{*.patch,.patches}": [
"node script/lint.js --patches --only --",
"node script/check-patch-diff.mts"
],
"DEPS": [
"node script/gen-hunspell-filenames.js",
"node script/gen-libc++-filenames.js",
"node script/gen-siso-revision.js"
],
".github/workflows/pipeline-segment-electron-build.yml": [
"node script/copy-pipeline-segment-publish.js"
]
},
"resolutions": {
"dbus-native/xml2js": "0.5.0",
"minimist@npm:~0.0.1": "0.2.4",
"put": "npm:@nornagon/put@0.0.8",
"get-intrinsic": "^1.3.0",
"js-yaml@npm:4.1.0": "4.3.1",
"markdown-it@npm:14.1.0": "14.3.0",
"serialize-javascript@npm:^6.0.2": "^7.0.5"
},
"packageManager": "yarn@4.18.0",
"workspaces": [
".github/workflows",
"script/pgo",
"spec",
"spec/fixtures/native-addon/*"
],
"dependenciesMeta": {
"@sentry/cli": {
"built": true
}
}
}