@crxjs/vite-plugin 1.0.14 → 2.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crxjs/vite-plugin",
3
- "version": "1.0.14",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "Build Chrome Extensions with this Vite plugin.",
5
5
  "keywords": [
6
6
  "rollup-plugin",
@@ -29,7 +29,10 @@
29
29
  "import": "./dist/index.mjs",
30
30
  "types": "./dist/index.d.ts"
31
31
  },
32
- "./*": "./*"
32
+ "./*": "./*",
33
+ "./client": {
34
+ "types": "./client.d.ts"
35
+ }
33
36
  },
34
37
  "main": "dist/index.cjs",
35
38
  "module": "dist/index.mjs",
@@ -42,6 +45,7 @@
42
45
  "client.d.ts"
43
46
  ],
44
47
  "scripts": {
48
+ "format": "prettier -w -c ../../.prettierrc.yaml",
45
49
  "build": "run-s build:clean build:js",
46
50
  "build:clean": "rimraf dist",
47
51
  "build:js": "rollup -c rollup.config.ts --configPlugin esbuild",
@@ -50,15 +54,12 @@
50
54
  "lint": "run-s lint:eslint lint:types",
51
55
  "lint:eslint": "eslint \"{src,test}/**/*.ts\"",
52
56
  "lint:types": "tsc --noEmit",
53
- "test": "run-s test:units test:update:*",
54
- "test:ci:e2e:build": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /mv3/\\) -t build",
55
- "test:ci:e2e:serve": "npm run test:ci:e2e:serve:cmd || npm run test:ci:e2e:serve:cmd",
56
- "test:ci:e2e:serve:cmd": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /mv3/\\) -t serve",
57
- "test:ci:mv3:build": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /e2e/\\) --updateSnapshot build",
58
- "test:ci:mv3:serve": "node --expose-gc ./node_modules/jest/bin/jest.js --logHeapUsage --runInBand --forceExit --testPathIgnorePatterns=\\(/node_modules/ /templates/ /e2e/\\) --updateSnapshot serve",
59
- "test:units": "jest src",
60
- "test:update:build": "jest build -u",
61
- "test:update:serve": "jest serve -u"
57
+ "test": "vitest --mode unit",
58
+ "test:e2e": "vitest --mode e2e",
59
+ "test:run": "run-s test:run:*",
60
+ "test:run:out": "vitest --run --mode out",
61
+ "test:run:e2e": "vitest --run --mode e2e",
62
+ "test:update": "run-s \"test:run:out --update\" \"test:run:e2e --update\""
62
63
  },
63
64
  "dependencies": {
64
65
  "@rollup/pluginutils": "^4.1.2",
@@ -70,56 +71,53 @@
70
71
  "es-module-lexer": "^0.10.0",
71
72
  "fast-glob": "^3.2.11",
72
73
  "fs-extra": "^10.0.1",
74
+ "get-port": "^6.1.2",
73
75
  "jsesc": "^3.0.2",
74
76
  "magic-string": "^0.26.0",
75
77
  "picocolors": "^1.0.0",
76
78
  "react-refresh": "^0.13.0",
77
- "rollup": "^2.70.2"
79
+ "rollup": "2.78.1"
78
80
  },
79
81
  "devDependencies": {
80
82
  "@extend-chrome/messages": "1.2.2",
81
83
  "@extend-chrome/storage": "1.5.0",
82
84
  "@rollup/plugin-alias": "3.1.9",
83
85
  "@rollup/plugin-commonjs": "21.1.0",
86
+ "@rollup/plugin-json": "^4.1.0",
84
87
  "@rollup/plugin-node-resolve": "13.2.0",
88
+ "@sveltejs/vite-plugin-svelte": "1.0.9",
85
89
  "@types/acorn": "4.0.6",
86
- "@types/chrome": "0.0.190",
90
+ "@types/chrome": "0.0.198",
87
91
  "@types/debug": "4.1.7",
88
92
  "@types/fs-extra": "9.0.13",
89
- "@types/jest": "27.5.2",
90
- "@types/jest-image-snapshot": "4.3.1",
93
+ "@types/jest-image-snapshot": "^5.1.0",
91
94
  "@types/jsesc": "3.0.1",
92
95
  "@types/node": "17.0.18",
93
- "@types/react": "17.0.44",
96
+ "@types/react": "17.0.50",
94
97
  "@types/react-dom": "17.0.17",
95
98
  "@typescript-eslint/eslint-plugin": "5.27.1",
96
99
  "@typescript-eslint/parser": "5.27.1",
97
- "@vitejs/plugin-react": "1.3.2",
98
- "@vitejs/plugin-vue": "2.3.3",
99
- "esbuild": "0.14.43",
100
- "esbuild-runner": "2.2.1",
100
+ "@vitejs/plugin-react": "^2.1.0",
101
+ "@vitejs/plugin-vue": "3.1.2",
102
+ "chokidar": "^3.5.3",
103
+ "esbuild": "0.15.12",
104
+ "esbuild-runner": "2.2.2",
101
105
  "eslint": "8.17.0",
102
- "jest": "27.5.1",
103
- "jest-image-snapshot": "5.1.0",
104
- "playwright-chromium": "1.21.1",
106
+ "eslint-plugin-react": "^7.29.4",
107
+ "jest-image-snapshot": "^5.2.0",
108
+ "npm-run-all": "^4.1.5",
109
+ "playwright-chromium": "1.27.1",
105
110
  "react": "17.0.2",
106
111
  "react-dom": "17.0.2",
107
112
  "rimraf": "3.0.2",
108
113
  "rollup-plugin-dts": "^4.2.0",
109
- "rollup-plugin-esbuild": "4.9.1",
114
+ "rollup-plugin-esbuild": "4.10.1",
110
115
  "rxjs": "7.5.5",
116
+ "svelte": "^3.48.0",
111
117
  "typescript": "^4.6.4",
112
- "vite": "^2.9.5",
113
- "vite-plugin-inspect": "0.5.0",
114
- "vue": "3.2.36"
115
- },
116
- "peerDependencies": {
117
- "vite": "^2.9.0"
118
- },
119
- "optionalDependencies": {
120
- "@vitejs/plugin-react": ">=1.2.0"
121
- },
122
- "engines": {
123
- "node": ">=14"
118
+ "vite": "^3.1.7",
119
+ "vite-plugin-inspect": "0.7.5",
120
+ "vitest": "^0.23.4",
121
+ "vue": "3.2.41"
124
122
  }
125
123
  }