mirror of
https://github.com/alex8088/electron-vite.git
synced 2026-11-02 22:56:58 +08:00
Add a *?raw module declaration to electron-vite/node so raw file imports in the main and preload processes are typed as string. Keep runtime behavior unchanged. Add an isolated consumer fixture to pnpm typecheck. Verify that raw imports are strings and reject Buffer assignments so an accidental any declaration cannot pass the regression check. Fixes #893.
109 lines
2.6 KiB
JSON
109 lines
2.6 KiB
JSON
{
|
|
"name": "electron-vite",
|
|
"version": "6.0.0",
|
|
"description": "Electron build tooling based on Vite",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./node": {
|
|
"types": "./node.d.ts"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"bin": {
|
|
"electron-vite": "bin/electron-vite.js"
|
|
},
|
|
"files": [
|
|
"bin",
|
|
"dist",
|
|
"node.d.ts"
|
|
],
|
|
"engines": {
|
|
"node": "^20.19.0 || >=22.12.0"
|
|
},
|
|
"packageManager": "pnpm@10.12.4",
|
|
"author": "Alex Wei<https://github.com/alex8088>",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/alex8088/electron-vite.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/alex8088/electron-vite/issues"
|
|
},
|
|
"homepage": "https://electron-vite.org",
|
|
"keywords": [
|
|
"electron",
|
|
"vite",
|
|
"cli",
|
|
"plugin"
|
|
],
|
|
"scripts": {
|
|
"format": "prettier --write .",
|
|
"lint": "eslint --cache .",
|
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tests/types/tsconfig.json",
|
|
"build": "pnpm run lint && rollup -c rollup.config.ts --configPlugin typescript"
|
|
},
|
|
"simple-git-hooks": {
|
|
"pre-commit": "npx lint-staged",
|
|
"commit-msg": "node scripts/verifyCommit.js $1"
|
|
},
|
|
"lint-staged": {
|
|
"*.js": [
|
|
"prettier --write"
|
|
],
|
|
"*.ts?(x)": [
|
|
"eslint",
|
|
"prettier --parser=typescript --write"
|
|
]
|
|
},
|
|
"peerDependencies": {
|
|
"@swc/core": "^1.0.0",
|
|
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@swc/core": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@rollup/plugin-json": "^6.1.0",
|
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
"@swc/core": "^1.16.2",
|
|
"@types/babel__core": "^7.20.5",
|
|
"@types/node": "^22.20.4",
|
|
"eslint": "^10.11.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-prettier": "^5.5.6",
|
|
"globals": "^17.12.0",
|
|
"lint-staged": "^17.5.1",
|
|
"prettier": "^3.9.9",
|
|
"rollup": "^4.63.5",
|
|
"rollup-plugin-dts": "^6.5.1",
|
|
"rollup-plugin-rm": "^1.0.2",
|
|
"simple-git-hooks": "^2.14.0",
|
|
"tslib": "^2.8.1",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.70.1",
|
|
"vite": "^8.3.1"
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "^7.29.7",
|
|
"@babel/plugin-transform-arrow-functions": "^7.29.7",
|
|
"cac": "^7.0.0",
|
|
"magic-string": "^1.4.2",
|
|
"picocolors": "^1.1.1",
|
|
"rolldown": "~1.2.10"
|
|
},
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"@swc/core",
|
|
"simple-git-hooks"
|
|
]
|
|
}
|
|
}
|