UNPKG

@crxjs/vite-plugin

Version:
126 lines (125 loc) 4.22 kB
{ "name": "@crxjs/vite-plugin", "version": "1.0.14", "description": "Build Chrome Extensions with this Vite plugin.", "keywords": [ "rollup-plugin", "vite-plugin", "chrome", "chrome-extension", "extension", "webext", "webextension", "browser", "browser-extension" ], "homepage": "https://github.com/crxjs/rollup-plugin-chrome-extension", "bugs": { "url": "https://github.com/crxjs/rollup-plugin-chrome-extension/issues" }, "repository": { "type": "git", "url": "https://github.com/crxjs/rollup-plugin-chrome-extension.git" }, "license": "MIT", "author": "Jack and Amy Steam <jacksteamdev@gmail.com>", "exports": { ".": { "require": "./dist/index.cjs", "import": "./dist/index.mjs", "types": "./dist/index.d.ts" }, "./*": "./*" }, "main": "dist/index.cjs", "module": "dist/index.mjs", "types": "dist/index.d.ts", "files": [ "dist", "types", "manifest.schema.json", "schema", "client.d.ts" ], "scripts": { "build": "run-s build:clean build:js", "build:clean": "rimraf dist", "build:js": "rollup -c rollup.config.ts --configPlugin esbuild", "dev:js": "npm run build:js -- -w", "dev:lint": "tsc --noEmit --watch", "lint": "run-s lint:eslint lint:types", "lint:eslint": "eslint \"{src,test}/**/*.ts\"", "lint:types": "tsc --noEmit", "test": "run-s test:units test:update:*", "test:ci:e2e:build": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /mv3/\\) -t build", "test:ci:e2e:serve": "npm run test:ci:e2e:serve:cmd || npm run test:ci:e2e:serve:cmd", "test:ci:e2e:serve:cmd": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /mv3/\\) -t serve", "test:ci:mv3:build": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /e2e/\\) --updateSnapshot build", "test:ci:mv3:serve": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /e2e/\\) --updateSnapshot serve", "test:units": "jest src", "test:update:build": "jest build -u", "test:update:serve": "jest serve -u" }, "dependencies": { "@rollup/pluginutils": "^4.1.2", "@webcomponents/custom-elements": "^1.5.0", "acorn-walk": "^8.2.0", "cheerio": "^1.0.0-rc.10", "connect-injector": "^0.4.4", "debug": "^4.3.3", "es-module-lexer": "^0.10.0", "fast-glob": "^3.2.11", "fs-extra": "^10.0.1", "jsesc": "^3.0.2", "magic-string": "^0.26.0", "picocolors": "^1.0.0", "react-refresh": "^0.13.0", "rollup": "^2.70.2" }, "devDependencies": { "@extend-chrome/messages": "1.2.2", "@extend-chrome/storage": "1.5.0", "@rollup/plugin-alias": "3.1.9", "@rollup/plugin-commonjs": "21.1.0", "@rollup/plugin-node-resolve": "13.2.0", "@types/acorn": "4.0.6", "@types/chrome": "0.0.190", "@types/debug": "4.1.7", "@types/fs-extra": "9.0.13", "@types/jest": "27.5.2", "@types/jest-image-snapshot": "4.3.1", "@types/jsesc": "3.0.1", "@types/node": "17.0.18", "@types/react": "17.0.44", "@types/react-dom": "17.0.17", "@typescript-eslint/eslint-plugin": "5.27.1", "@typescript-eslint/parser": "5.27.1", "@vitejs/plugin-react": "1.3.2", "@vitejs/plugin-vue": "2.3.3", "esbuild": "0.14.43", "esbuild-runner": "2.2.1", "eslint": "8.17.0", "jest": "27.5.1", "jest-image-snapshot": "5.1.0", "playwright-chromium": "1.21.1", "react": "17.0.2", "react-dom": "17.0.2", "rimraf": "3.0.2", "rollup-plugin-dts": "^4.2.0", "rollup-plugin-esbuild": "4.9.1", "rxjs": "7.5.5", "typescript": "^4.6.4", "vite": "^2.9.5", "vite-plugin-inspect": "0.5.0", "vue": "3.2.36" }, "peerDependencies": { "vite": "^2.9.0" }, "optionalDependencies": { "@vitejs/plugin-react": ">=1.2.0" }, "engines": { "node": ">=14" } }