[compiler:publish] Rename publish script

ghstack-source-id: 1cccc91b5d0e69240b2f4f539c60eab0f156e15f
Pull Request resolved: https://github.com/facebook/react/pull/29148
This commit is contained in:
Lauren Tan
2024-05-17 15:07:04 -07:00
parent d3383a82f5
commit e43404df43
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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`);