Skip to content

Commit 794ed5b

Browse files
committed
chore: publish @remix-run/router
1 parent 3468a06 commit 794ed5b

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

scripts/publish.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ async function ensureBuildVersion(packageName, version) {
4949
function publishBuild(packageName, tag) {
5050
let buildDir = path.join(rootDir, "build", "node_modules", packageName);
5151
console.log();
52-
console.log(` npm publish ${buildDir} --tag ${tag}`);
52+
console.log(` npm publish ${buildDir} --tag ${tag} --access public`);
5353
console.log();
54-
execSync(`npm publish ${buildDir} --tag ${tag}`, { stdio: "inherit" });
54+
execSync(`npm publish ${buildDir} --tag ${tag} --access public`, {
55+
stdio: "inherit",
56+
});
5557
}
5658

5759
/**
@@ -83,7 +85,8 @@ async function run() {
8385
await ensureBuildVersion("react-router-dom", version);
8486
await ensureBuildVersion("react-router-dom-v5-compat", version);
8587
await ensureBuildVersion("react-router-native", version);
86-
await ensureBuildVersion("@remix-run/router", version);
88+
// FIXME: @remix-run/router is versioned differently and isn't being
89+
// validated here
8790

8891
// 4. Publish to npm
8992
publishBuild("react-router", tag);

scripts/version.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// FIXME: @remix-run/router isn't being automatically versioned
12
const path = require("path");
23
const { execSync } = require("child_process");
34
const fsp = require("fs/promises");
@@ -175,6 +176,11 @@ async function run() {
175176
execSync(`git commit --all --message="Version ${version}"`);
176177
execSync(`git tag -a -m "Version ${version}" v${version}`);
177178
console.log(chalk.green(` Committed and tagged version ${version}`));
179+
console.log(
180+
chalk.red(
181+
` 🚨 @remix-run/router isn't handled by this script, do it manually!`
182+
)
183+
);
178184
} catch (error) {
179185
console.log();
180186
console.error(chalk.red(` ${error.message}`));

0 commit comments

Comments
 (0)