Use Yarn 2 (#11962)
* chore: use yarn 2 * chore: remove redundant yarn locks * chore: remove publishEslintPkg * chore: remove redundant make bootstrap * Update .yarnrc.yml Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com> * chore: use workspace protocol for eslint packages in the root Co-Authored-By: merceyz <merceyz@users.noreply.github.com> * chore: pin caniuse-lite versions Testcases in packages/babel-preset-env/test/fixtures/debug/browserslists-defaults-not-ie depends on specific caniuse-lite versions. We pinned the version here so we don't have to deal with fixture different in e2e-tests where all deps will be updated and tested. * chore: resolve yarn install warnings * chore: update yarn cache path on circle/travis * chore: add yarn deduplicate plugin * chore: deduplicate lock files * chore: move devDependencies to leaf packages * chore: remove @yarnpkg/plugin-constraints * chore: remove unused dedupe options * test: fix unwanted self reference * chore: remove output-file-sync dependency * chore: update browserify to 16.5.2 Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
"./src/get-runtime-path/index.js": "./src/get-runtime-path/browser.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/helper-module-imports": "^7.10.4",
|
||||
"@babel/helper-plugin-utils": "^7.10.4",
|
||||
"@babel/helper-module-imports": "workspace:^7.10.4",
|
||||
"@babel/helper-plugin-utils": "workspace:^7.10.4",
|
||||
"resolve": "^1.8.1",
|
||||
"semver": "^5.5.1"
|
||||
},
|
||||
@@ -29,14 +29,15 @@
|
||||
"@babel/core": "^7.0.0-0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.11.0",
|
||||
"@babel/helper-plugin-test-runner": "^7.10.4",
|
||||
"@babel/helpers": "^7.10.4",
|
||||
"@babel/plugin-transform-typeof-symbol": "^7.10.4",
|
||||
"@babel/preset-env": "^7.11.0",
|
||||
"@babel/runtime": "^7.11.0",
|
||||
"@babel/runtime-corejs3": "^7.11.0",
|
||||
"@babel/template": "^7.10.4",
|
||||
"@babel/types": "^7.11.0"
|
||||
"@babel/core": "workspace:^7.11.0",
|
||||
"@babel/helper-plugin-test-runner": "workspace:^7.10.4",
|
||||
"@babel/helpers": "workspace:^7.10.4",
|
||||
"@babel/plugin-transform-typeof-symbol": "workspace:^7.10.4",
|
||||
"@babel/preset-env": "workspace:^7.11.0",
|
||||
"@babel/runtime": "workspace:^7.11.0",
|
||||
"@babel/runtime-corejs3": "workspace:^7.11.0",
|
||||
"@babel/template": "workspace:^7.10.4",
|
||||
"@babel/types": "workspace:^7.11.0",
|
||||
"make-dir": "^2.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
const path = require("path");
|
||||
const outputFile = require("output-file-sync");
|
||||
const fs = require("fs");
|
||||
const makeDirSync = require("make-dir").sync;
|
||||
const helpers = require("@babel/helpers");
|
||||
const babel = require("@babel/core");
|
||||
const template = require("@babel/template");
|
||||
@@ -13,6 +14,11 @@ const runtimeVersion = require("@babel/runtime/package.json").version;
|
||||
const corejs2Definitions = require("../lib/runtime-corejs2-definitions").default();
|
||||
const corejs3Definitions = require("../lib/runtime-corejs3-definitions").default();
|
||||
|
||||
function outputFile(filePath, data) {
|
||||
makeDirSync(path.dirname(filePath));
|
||||
fs.writeFileSync(filePath, data);
|
||||
}
|
||||
|
||||
writeHelpers("@babel/runtime");
|
||||
writeHelpers("@babel/runtime-corejs2", { corejs: 2 });
|
||||
writeHelpers("@babel/runtime-corejs3", {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
var _regeneratorRuntime = require("<CWD>/packages/babel-plugin-transform-runtime/node_modules/@babel/runtime-corejs3/regenerator");
|
||||
var _regeneratorRuntime = require("<CWD>/node_modules/@babel/runtime-corejs3/regenerator");
|
||||
|
||||
var _mapInstanceProperty = require("<CWD>/packages/babel-plugin-transform-runtime/node_modules/@babel/runtime-corejs3/core-js/instance/map");
|
||||
var _mapInstanceProperty = require("<CWD>/node_modules/@babel/runtime-corejs3/core-js/instance/map");
|
||||
|
||||
var _marked = /*#__PURE__*/_regeneratorRuntime.mark(makeIterator);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
var _regeneratorRuntime = require("<CWD>/packages/babel-plugin-transform-runtime/node_modules/@babel/runtime-corejs3/regenerator");
|
||||
var _regeneratorRuntime = require("<CWD>/node_modules/@babel/runtime-corejs3/regenerator");
|
||||
|
||||
var _mapInstanceProperty = require("<CWD>/packages/babel-plugin-transform-runtime/node_modules/@babel/runtime-corejs3/core-js-stable/instance/map");
|
||||
var _mapInstanceProperty = require("<CWD>/node_modules/@babel/runtime-corejs3/core-js-stable/instance/map");
|
||||
|
||||
var _marked = /*#__PURE__*/_regeneratorRuntime.mark(makeIterator);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user