Lines 39-79json
48 "version:stamp": "node scripts/version.js stamp",
49 "version:bump-build": "node scripts/version.js bump-build",
50 "version:release": "node scripts/version.js release",
51 "version:print": "node scripts/version.js print",
52 "predev": "node scripts/version.js stamp",
53 "prestart": "node scripts/version.js stamp",
54 "predist:dir": "node scripts/version.js stamp",
55 "build:native": "xcodegen generate && xcodebuild -project MacInput.xcodeproj -scheme MacInput -configuration Debug -sdk macosx -derivedDataPath /tmp/MacInputDerived CODE_SIGNING_ALLOWED=NO build",
56 "build:native:release": "xcodegen generate && xcodebuild -project MacInput.xcodeproj -scheme MacInput -configuration Release -sdk macosx -derivedDataPath build/native CODE_SIGNING_ALLOWED=NO build",
57 "test:native": "xcodegen generate && xcodebuild -project MacInput.xcodeproj -scheme MacInputTests -configuration Debug -sdk macosx -derivedDataPath /tmp/MacInputDerived CODE_SIGNING_ALLOWED=NO test",
58 "check:js": "node --check electron/main.js && node --check electron/preload.js && node --check electron/renderer/app.js && node --check electron/shared/i18n.js && node --check electron/shared/connection-state.js && node --check electron/shared/control-protocol.js && node --check electron/shared/version.js && node --check scripts/version.js && node --check bin/typephone.js && node --check bin/install-macos-app.js && node --check bin/macos-codesign.js && node --check scripts/prepare-npm-package.js && node --test TestsJS/*.test.js",
59 "postinstall": "node bin/install-macos-app.js install",
HighInstall Time Lifecycle Scripts
Package defines install-time lifecycle scripts.
package.jsonView on unpkg · L59 MediumAmbiguous Install Lifecycle Script
Install-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkg · L59 60 "start:native": "open /tmp/MacInputDerived/Build/Products/Debug/MacInput.app",
61 "start": "electron electron/main.js",
62 "dev": "npm run build:native && electron electron/main.js",
63 "dist:dir": "npm run build:native:release && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --mac dir",
64 "prepare:npm": "node scripts/prepare-npm-package.js",
65 "prepublishOnly": "npm run prepare:npm && npm run check:js",
66 "publish:npm": "npm publish --access public"
72 "electron-builder": "^26.0.12",
76 "appId": "com.viczhang.typephone.electron",
77 "productName": "Typephone",