mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
Avoid trailing zeroes in Babel 9 generated version (#18078)
This commit is contained in:
+1
-1
@@ -237,7 +237,7 @@ export default function (api: ConfigAPI) {
|
||||
if (!process.env.IS_PUBLISH || env === "standalone") {
|
||||
if (bool(process.env.BABEL_9_BREAKING)) {
|
||||
// Match packages/babel-core/src/index.ts
|
||||
return packageJson.version + "999999999";
|
||||
return packageJson.version.replace(/0*$/, "999999999");
|
||||
}
|
||||
return packageJson.version;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export const version = process.env.BABEL_9_BREAKING
|
||||
? PACKAGE_JSON.version + "999999999"
|
||||
? PACKAGE_JSON.version.replace(/0*$/, "999999999")
|
||||
: PACKAGE_JSON.version;
|
||||
|
||||
export { default as File } from "./transformation/file/file.ts";
|
||||
|
||||
Reference in New Issue
Block a user