Skip to content

Commit

Permalink
add runtime version check
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Oct 17, 2021
1 parent 53e6875 commit f6cad37
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Makefile
Expand Up @@ -189,8 +189,10 @@ new-version-checklist:
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
@echo "!!!!!! !!!!!!"
@echo "!!!!!! Set packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/package.json"
@echo "!!!!!! @babel/core peerDependencies to latest published version"
@echo "!!!!!! packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/src/index.ts"
@echo "!!!!!! replace "api.assertVersion()" to the latest published version"
@echo "!!!!!! packages/babel-preset-env/src/available-plugins.ts:"
@echo "!!!!!! replace minVersion["bugfix/transform-v8-spread-parameters-in-optional-chaining"] to the latest published version
@echo "!!!!!! !!!!!!"
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
@echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Expand Down
Expand Up @@ -26,7 +26,7 @@
"@babel/helper-plugin-utils": "workspace:^7.14.5"
},
"peerDependencies": {
"@babel/core": "^7.15.0"
"@babel/core": "^7.0.0"
},
"devDependencies": {
"@babel/core": "workspace:*",
Expand Down
Expand Up @@ -4,7 +4,7 @@ import type { Visitor } from "@babel/traverse";
import { shouldTransform } from "./util";

export default declare(api => {
api.assertVersion(7);
api.assertVersion("^7.15.0");

return {
name: "plugin-bugfix-safari-id-destructuring-collision-in-function-expression",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-preset-env/src/available-plugins.ts
Expand Up @@ -150,6 +150,7 @@ export default {
};

export const minVersions = {
"bugfix/transform-v8-spread-parameters-in-optional-chaining": "7.15.0",
"proposal-class-static-block": "7.12.0",
"proposal-private-property-in-object": "7.10.0",
};
2 changes: 1 addition & 1 deletion yarn.lock
Expand Up @@ -1038,7 +1038,7 @@ __metadata:
"@babel/helper-plugin-utils": "workspace:^7.14.5"
"@babel/traverse": "workspace:*"
peerDependencies:
"@babel/core": ^7.15.0
"@babel/core": ^7.0.0
languageName: unknown
linkType: soft

Expand Down

0 comments on commit f6cad37

Please sign in to comment.