Skip to content

Commit

Permalink
Expose package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 3, 2020
1 parent b4c981e commit cf95c47
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const t = require("@babel/types");

const transformRuntime = require("../");

const runtimeVersion = require("../../babel-runtime/package.json").version;
const runtimeVersion = require("@babel/runtime/package.json").version;
const corejs3Definitions = require("../lib/runtime-corejs3-definitions").default();

function outputFile(filePath, data) {
Expand Down Expand Up @@ -137,6 +137,7 @@ function writeHelperExports(runtimeName, helperSubExports) {
const exports = {
...helperSubExports,
"./regenerator": "./regenerator/index.js",
"./package.json": "./package.json",
};
const pkgDirname = getRuntimeRoot(runtimeName);
const pkgJsonPath = require.resolve(`${pkgDirname}/package.json`);
Expand Down

0 comments on commit cf95c47

Please sign in to comment.