UNPKG

universal-build-plugin-version-check-test

Version:

一个支持多种前端构建工具的通用插件框架,包括 Vite、Webpack、Rollup 等,提供版本检查、构建优化等功能

101 lines (100 loc) 2.76 kB
{ "name": "universal-build-plugin-version-check-test", "version": "1.0.0", "description": "一个支持多种前端构建工具的通用插件框架,包括 Vite、Webpack、Rollup 等,提供版本检查、构建优化等功能", "main": "dist/index.cjs.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "files": [ "dist", "README.md", "LICENSE" ], "scripts": { "build": "vite build && tsc --emitDeclarationOnly --outDir dist", "build:watch": "rollup -c -w", "dev": "rollup -c -w", "test": "jest --passWithNoTests", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "lint": "eslint src --ext .ts,.tsx", "lint:fix": "eslint src --ext .ts,.tsx --fix", "format": "prettier --write \"src/**/*.{ts,tsx,json,md}\"", "type-check": "tsc --noEmit", "clean:version": "node -e \"const fs = require('fs'); try { fs.unlinkSync('version.json'); console.log('Version file cleaned'); } catch(e) { console.log('No version file to clean'); }\"", "prepare": "npm run build", "prepublishOnly": "npm run test && npm run build" }, "keywords": [ "vite", "webpack", "rollup", "plugin", "build-tool", "universal", "typescript", "version-check", "构建工具", "插件", "版本检查", "前端构建", "bundler", "build-plugin", "frontend", "javascript", "nodejs" ], "author": "Your Name <your.email@example.com>", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/yourusername/versionCheck.git" }, "bugs": { "url": "https://github.com/yourusername/versionCheck/issues" }, "homepage": "https://github.com/yourusername/versionCheck#readme", "devDependencies": { "@types/jest": "^29.5.5", "@types/node": "^20.19.9", "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", "eslint": "^8.49.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.0", "jest": "^29.7.0", "prettier": "^3.0.3", "rollup": "^3.29.2", "rollup-plugin-dts": "^6.0.2", "rollup-plugin-typescript2": "^0.35.0", "ts-jest": "^29.1.1", "typescript": "^5.9.2" }, "peerDependencies": { "rollup": ">=3.0.0", "vite": "^7.1.1", "webpack": ">=5.0.0" }, "peerDependenciesMeta": { "vite": { "optional": true }, "webpack": { "optional": true }, "rollup": { "optional": true } }, "engines": { "node": ">=16.0.0" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "funding": { "type": "github", "url": "https://github.com/sponsors/yourusername" } }