vite-plugin-istanbul
Advanced tools
Comparing version 5.0.0-rc.4 to 5.0.0-rc.5
{ | ||
"name": "vite-plugin-istanbul", | ||
"version": "5.0.0-rc.4", | ||
"version": "5.0.0-rc.5", | ||
"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,15 +45,22 @@ "homepage": "https://github.com/ifaxity/vite-plugin-istanbul", | ||
"@istanbuljs/load-nyc-config": "^1.1.0", | ||
"espree": "^9.6.1", | ||
"espree": "^10.0.1", | ||
"istanbul-lib-instrument": "^6.0.1", | ||
"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": "^18.6.1", | ||
"@commitlint/config-conventional": "^18.6.2", | ||
"@ianvs/prettier-plugin-sort-imports": "^4.1.1", | ||
"@semantic-release/changelog": "^6.0.3", | ||
"@semantic-release/git": "^10.0.1", | ||
"@types/node": "^20.11.17", | ||
"@types/node": "^20.11.19", | ||
"@types/ws": "^8.5.10", | ||
"husky": "^9.0.11", | ||
"lint-staged": "^15.2.2", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.3.3", | ||
@@ -57,0 +67,0 @@ "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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82
20627
7
12
393
1
+ Addedsource-map@^0.7.4
+ Addedeslint-visitor-keys@4.1.0(transitive)
+ Addedespree@10.2.0(transitive)
+ Addedsource-map@0.7.4(transitive)
- Removedeslint-visitor-keys@3.4.3(transitive)
- Removedespree@9.6.1(transitive)
Updatedespree@^10.0.1