babel-plugin-transform-lhs-constants
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "babel-plugin-transform-lhs-constants", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "The Babel plugin to move constant values to the left-hand side of binary nodes", | ||
@@ -11,3 +11,3 @@ "main": "dist/index.cjs", | ||
"build": "rollup -c", | ||
"test": "node --experimental-vm-modules node_modules/.bin/jest" | ||
"test": "NODE_NO_WARNINGS=1 node --experimental-loader ts-node/esm --test test/*.spec.ts" | ||
}, | ||
@@ -19,12 +19,13 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@babel/core": "^7.24.4", | ||
"@babel/preset-typescript": "^7.24.1", | ||
"@babel/types": "^7.24.0", | ||
"@evilmartians/lefthook": "^1.6.5", | ||
"@evilmartians/lefthook": "^1.6.8", | ||
"@rollup/plugin-babel": "^6.0.4", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@types/babel__helper-plugin-utils": "^7.10.3", | ||
"@types/jest": "^29.5.12", | ||
"jest": "^29.7.0", | ||
"rollup": "^4.12.1", | ||
"typescript": "^5.4.2" | ||
"@types/node": "^20.12.4", | ||
"rollup": "^4.14.0", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.4.3" | ||
}, | ||
@@ -31,0 +32,0 @@ "files": [ |
@@ -7,2 +7,4 @@ # babel-plugin-transform-lhs-constants | ||
## Example | ||
```diff | ||
@@ -15,9 +17,24 @@ - typeof foo === "string" | ||
Using npm: | ||
```bash | ||
npm i babel-plugin-transform-lhs-constants -D | ||
# or | ||
npm i -D babel-plugin-transform-lhs-constants | ||
``` | ||
or using yarn: | ||
```bash | ||
yarn add babel-plugin-transform-lhs-constants -D | ||
``` | ||
## Usage | ||
With a configuration file [`babel.config.json`](https://babel.dev/docs/config-files#project-wide-configuration) | ||
```json | ||
{ | ||
"plugins": ["babel-plugin-transform-lhs-constants"] | ||
} | ||
``` | ||
## License | ||
[MIT](./LICENSE) |
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
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
4021
25
39
11