示例工程 05-preload-and-contextbridge
05-preload-and-contextbridge/demo-01-exposure-probe/package.json
{
"name": "@tutorial/05-preload-and-contextbridge-demo-01-exposure-probe",
"private": true,
"version": "0.1.0",
"type": "commonjs",
"main": "dist/main/index.js",
"scripts": {
"build": "tsc -p tsconfig.json",
"start": "tsc -p tsconfig.json && electron dist/main/index.js",
"smoke": "tsc -p tsconfig.json && DEMO_SMOKE=1 electron dist/main/index.js --smoke"
},
"devDependencies": {
"electron": "45.5.0",
"typescript": "5.9.3"
}
}