mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
[compiler:publish] Rename publish script
ghstack-source-id: 1cccc91b5d0e69240b2f4f539c60eab0f156e15f Pull Request resolved: https://github.com/facebook/react/pull/29148
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
"snap": "yarn workspace babel-plugin-react-compiler run snap",
|
||||
"snap:build": "yarn workspace snap run build",
|
||||
"postinstall": "perl -p -i -e 's/react\\.element/react.transitional.element/' packages/snap/node_modules/fbt/lib/FbtReactUtil.js && perl -p -i -e 's/didWarnAboutUsingAct = false;/didWarnAboutUsingAct = true;/' packages/babel-plugin-react-compiler/node_modules/react-dom/cjs/react-dom-test-utils.development.js",
|
||||
"npm:publish": "node scripts/publish"
|
||||
"npm:publish": "node scripts/release/publish-manual"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -130,7 +130,7 @@ async function main() {
|
||||
spinner.start(`Running npm pack --dry-run\n`);
|
||||
try {
|
||||
await spawnHelper("npm", ["pack", "--dry-run"], {
|
||||
cwd: path.resolve(__dirname, `../packages/${pkgName}`),
|
||||
cwd: path.resolve(__dirname, `../../packages/${pkgName}`),
|
||||
stdio: "inherit",
|
||||
});
|
||||
} catch (e) {
|
||||
@@ -154,7 +154,7 @@ async function main() {
|
||||
const dateString = await getDateStringForCommit(commit);
|
||||
|
||||
for (const pkgName of pkgNames) {
|
||||
const pkgDir = path.resolve(__dirname, `../packages/${pkgName}`);
|
||||
const pkgDir = path.resolve(__dirname, `../../packages/${pkgName}`);
|
||||
const { hash } = await hashElement(pkgDir, {
|
||||
encoding: "hex",
|
||||
files: { exclude: [".DS_Store"] },
|
||||
@@ -195,7 +195,7 @@ async function main() {
|
||||
}
|
||||
|
||||
for (const pkgName of pkgNames) {
|
||||
const pkgDir = path.resolve(__dirname, `../packages/${pkgName}`);
|
||||
const pkgDir = path.resolve(__dirname, `../../packages/${pkgName}`);
|
||||
console.log(`\n========== ${pkgName} ==========\n`);
|
||||
spinner.start(`Publishing ${pkgName} to npm\n`);
|
||||
|
||||
Reference in New Issue
Block a user