vite-plugin-istanbul
Advanced tools
Comparing version 5.0.0 to 6.0.0
@@ -19,2 +19,2 @@ import { Plugin } from 'vite'; | ||
export { IstanbulPluginOptions, istanbulPlugin as default }; | ||
export { type IstanbulPluginOptions, istanbulPlugin as default }; |
{ | ||
"name": "vite-plugin-istanbul", | ||
"version": "5.0.0", | ||
"version": "6.0.0", | ||
"author": "iFaxity (christian@faxity.se)", | ||
@@ -22,3 +22,6 @@ "license": "MIT", | ||
"build": "unbuild", | ||
"prepublishOnly": "npm run build" | ||
"prettier": "prettier --check .", | ||
"format": "prettier --write .", | ||
"prepublishOnly": "npm run build", | ||
"prepare": "husky" | ||
}, | ||
@@ -42,18 +45,25 @@ "homepage": "https://github.com/ifaxity/vite-plugin-istanbul", | ||
"@istanbuljs/load-nyc-config": "^1.1.0", | ||
"espree": "^9.6.1", | ||
"istanbul-lib-instrument": "^5.1.0", | ||
"espree": "^10.0.1", | ||
"istanbul-lib-instrument": "^6.0.2", | ||
"picocolors": "^1.0.0", | ||
"source-map": "^0.7.4", | ||
"test-exclude": "^6.0.0" | ||
}, | ||
"peerDependencies": { | ||
"vite": ">=2.9.1 <= 5" | ||
"vite": ">=4 <=6" | ||
}, | ||
"devDependencies": { | ||
"@semantic-release/changelog": "^6.0.1", | ||
"@commitlint/cli": "^19.0.3", | ||
"@commitlint/config-conventional": "^19.0.3", | ||
"@ianvs/prettier-plugin-sort-imports": "^4.1.1", | ||
"@semantic-release/changelog": "^6.0.3", | ||
"@semantic-release/git": "^10.0.1", | ||
"@types/node": "^20.4.2", | ||
"@types/ws": "^8.5.5", | ||
"typescript": "^5.1.6", | ||
"unbuild": "^1.2.1" | ||
"@types/node": "^20.11.24", | ||
"@types/ws": "^8.5.10", | ||
"husky": "^9.0.11", | ||
"lint-staged": "^15.2.2", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.3.3", | ||
"unbuild": "^2.0.0" | ||
} | ||
} |
@@ -34,13 +34,14 @@ vite-plugin-istanbul | ||
#### Parameters | ||
* `opts {IstanbulPluginOptions}` - Object of optional options to pass to the plugin. | ||
* `opts.cwd {string}` - Optional string of the current working directory, used for the include/exclude patterns. Defaults to `process.cwd()`. | ||
* `opts.include {string|string[]}` - Optional string or array of strings of glob patterns to include. | ||
* `opts.exclude {string|string[]}` - Optional string or array of strings of glob patterns to exclude. | ||
* `opts.extension {string|string[]}` - Optional string or array of strings of extensions to include (dot prefixed like .js or .ts). By default this is set to `['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx', '.vue']`. | ||
* `opts.requireEnv {boolean}` - Optional boolean to require the environment variable (defaults to **VITE_COVERAGE**) to equal `true` in order to instrument the code. Otherwise it will instrument even if env variable is not set. However if `requireEnv` is not set the instrumentation will stop if the environment variable is equal to `false`. | ||
* `opts.cypress {boolean}` - Optional boolean to change the environment variable to **CYPRESS_COVERAGE** instead of **VITE_COVERAGE**. For ease of use with `@cypress/code-coverage``. | ||
* `opts.checkProd {boolean}` - Optional boolean to enforce the plugin to skip instrumentation for production environments. Looks at Vite's **isProduction** key from the `ResolvedConfig`. | ||
* `opts.forceBuildInstrument {boolean}` - Optional boolean to enforce the plugin to add instrumentation in build mode. Defaults to false. | ||
* `opts.nycrcPath {string}` - Path to specific nyc config to use instead of automatically searching for a nycconfig. This parameter is just passed down to `@istanbuljs/load-nyc-config`. | ||
- `opts {IstanbulPluginOptions}` - Object of optional options to pass to the plugin. | ||
- `opts.cwd {string}` - Optional string of the current working directory, used for the include/exclude patterns. Defaults to `process.cwd()`. | ||
- `opts.include {string|string[]}` - Optional string or array of strings of glob patterns to include. | ||
- `opts.exclude {string|string[]}` - Optional string or array of strings of glob patterns to exclude. | ||
- `opts.extension {string|string[]}` - Optional string or array of strings of extensions to include (dot prefixed like .js or .ts). By default this is set to `['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx', '.vue']`. | ||
- `opts.requireEnv {boolean}` - Optional boolean to require the environment variable (defaults to **VITE_COVERAGE**) to equal `true` in order to instrument the code. Otherwise it will instrument even if env variable is not set. However if `requireEnv` is not set the instrumentation will stop if the environment variable is equal to `false`. | ||
- `opts.cypress {boolean}` - Optional boolean to change the environment variable to **CYPRESS_COVERAGE** instead of **VITE_COVERAGE**. For ease of use with `@cypress/code-coverage``. | ||
- `opts.checkProd {boolean}` - Optional boolean to enforce the plugin to skip instrumentation for production environments. Looks at Vite's **isProduction** key from the `ResolvedConfig`. | ||
- `opts.forceBuildInstrument {boolean}` - Optional boolean to enforce the plugin to add instrumentation in build mode. Defaults to false. | ||
- `opts.nycrcPath {string}` - Path to specific nyc config to use instead of automatically searching for a nycconfig. This parameter is just passed down to `@istanbuljs/load-nyc-config`. | ||
Notes | ||
@@ -71,3 +72,3 @@ -------------------------- | ||
exclude: ['node_modules', 'test/'], | ||
extension: [ '.js', '.ts', '.vue' ], | ||
extension: ['.js', '.ts', '.vue'], | ||
requireEnv: true, | ||
@@ -74,0 +75,0 @@ }), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8
82
20622
7
12
393
1
+ Addedsource-map@^0.7.4
+ Addedeslint-visitor-keys@4.0.0(transitive)
+ Addedespree@10.1.0(transitive)
+ Addedistanbul-lib-instrument@6.0.2(transitive)
+ Addedsemver@7.6.2(transitive)
+ Addedsource-map@0.7.4(transitive)
- Removedeslint-visitor-keys@3.4.3(transitive)
- Removedespree@9.6.1(transitive)
- Removedistanbul-lib-instrument@5.2.1(transitive)
Updatedespree@^10.0.1