Don't use deprecated "lerna publish --require-scripts" (#10558) [skip ci]
This commit is contained in:
parent
d234ff6572
commit
2254542010
2
Makefile
2
Makefile
@ -193,7 +193,7 @@ new-version:
|
|||||||
|
|
||||||
# NOTE: Run make new-version first
|
# NOTE: Run make new-version first
|
||||||
publish: prepublish
|
publish: prepublish
|
||||||
yarn lerna publish from-git --require-scripts
|
yarn lerna publish from-git
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
|
|
||||||
publish-ci: prepublish
|
publish-ci: prepublish
|
||||||
|
|||||||
@ -8,6 +8,10 @@
|
|||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"prepublishOnly": "cp dist/polyfill.min.js browser.js",
|
||||||
|
"postpublish": "rm browser.js"
|
||||||
|
},
|
||||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-polyfill",
|
"repository": "https://github.com/babel/babel/tree/master/packages/babel-polyfill",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@ -1,8 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
const fs = require("fs");
|
|
||||||
const path = require("path");
|
|
||||||
|
|
||||||
try {
|
|
||||||
fs.unlinkSync(path.join(__dirname, "../browser.js"));
|
|
||||||
} catch (err) {}
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
const fs = require("fs");
|
|
||||||
const path = require("path");
|
|
||||||
|
|
||||||
function relative(loc) {
|
|
||||||
return path.join(__dirname, "..", loc);
|
|
||||||
}
|
|
||||||
|
|
||||||
fs.writeFileSync(
|
|
||||||
relative("browser.js"),
|
|
||||||
fs.readFileSync(relative("dist/polyfill.min.js"))
|
|
||||||
);
|
|
||||||
@ -8,6 +8,9 @@
|
|||||||
"babel-preset-env.min.js",
|
"babel-preset-env.min.js",
|
||||||
"src"
|
"src"
|
||||||
],
|
],
|
||||||
|
"scripts": {
|
||||||
|
"prepublishOnly": "cd ../.. && make prepublish-build-preset-env-standalone"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-proposal-dynamic-import": "^7.5.0",
|
"@babel/plugin-proposal-dynamic-import": "^7.5.0",
|
||||||
"@babel/plugin-proposal-json-strings": "^7.0.0",
|
"@babel/plugin-proposal-json-strings": "^7.0.0",
|
||||||
|
|||||||
@ -1,11 +0,0 @@
|
|||||||
// This file is executed by lerna before publishing,
|
|
||||||
// @babel/preset-env-standalone so that it has the
|
|
||||||
// new version and not the old one.
|
|
||||||
|
|
||||||
require("child_process").execSync(
|
|
||||||
"make prepublish-build-preset-env-standalone",
|
|
||||||
{
|
|
||||||
cwd: require("path").resolve(__dirname, "../../.."),
|
|
||||||
stdio: "inherit",
|
|
||||||
}
|
|
||||||
);
|
|
||||||
@ -8,6 +8,9 @@
|
|||||||
"babel.min.js",
|
"babel.min.js",
|
||||||
"src"
|
"src"
|
||||||
],
|
],
|
||||||
|
"scripts": {
|
||||||
|
"prepublishOnly": "cd ../.. && make prepublish-build-standalone"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.6.4",
|
"@babel/core": "^7.6.4",
|
||||||
"@babel/helper-plugin-utils": "^7.0.0",
|
"@babel/helper-plugin-utils": "^7.0.0",
|
||||||
|
|||||||
@ -1,7 +0,0 @@
|
|||||||
// This file is executed by lerna before publishing @babel/standalone,
|
|
||||||
// so that it has the new version and not the old one.
|
|
||||||
|
|
||||||
require("child_process").execSync("make prepublish-build-standalone", {
|
|
||||||
cwd: require("path").resolve(__dirname, "../../.."),
|
|
||||||
stdio: "inherit",
|
|
||||||
});
|
|
||||||
Loading…
x
Reference in New Issue
Block a user