[compiler:publish] Rename publish script
ghstack-source-id: 1cccc91b5d0e69240b2f4f539c60eab0f156e15f Pull Request resolved: https://github.com/facebook/react/pull/29148
Lauren Tan committed
May 17, 2024 at 14:55 UTC
e7673e496c1f85e948e153855707d52f3603392a
2 files changed
+4
-4
compiler/package.json
+1
-1
@@ -27,7 +27,7 @@
27
"snap": "yarn workspace babel-plugin-react-compiler run snap",
28
"snap:build": "yarn workspace snap run build",
29
"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",
30
- "npm:publish": "node scripts/publish"
30
+ "npm:publish": "node scripts/release/publish-manual"
31
},
32
"dependencies": {},
33
"devDependencies": {
compiler/scripts/release/publish-manual.js
renamed
+3
-3
@@ -130,7 +130,7 @@ async function main() {
130
spinner.start(`Running npm pack --dry-run\n`);
131
try {
132
await spawnHelper("npm", ["pack", "--dry-run"], {
133
- cwd: path.resolve(__dirname, `../packages/${pkgName}`),
133
+ cwd: path.resolve(__dirname, `../../packages/${pkgName}`),
134
stdio: "inherit",
135
});
136
} catch (e) {
@@ -154,7 +154,7 @@ async function main() {
154
const dateString = await getDateStringForCommit(commit);
155
156
for (const pkgName of pkgNames) {
157
- const pkgDir = path.resolve(__dirname, `../packages/${pkgName}`);
157
+ const pkgDir = path.resolve(__dirname, `../../packages/${pkgName}`);
158
const { hash } = await hashElement(pkgDir, {
159
encoding: "hex",
160
files: { exclude: [".DS_Store"] },
@@ -195,7 +195,7 @@ async function main() {
195
}
196
197
for (const pkgName of pkgNames) {
198
- const pkgDir = path.resolve(__dirname, `../packages/${pkgName}`);
198
+ const pkgDir = path.resolve(__dirname, `../../packages/${pkgName}`);
199
console.log(`\n========== ${pkgName} ==========\n`);
200
spinner.start(`Publishing ${pkgName} to npm\n`);
201