File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,11 @@ async function ensureBuildVersion(packageName, version) {
49
49
function publishBuild ( packageName , tag ) {
50
50
let buildDir = path . join ( rootDir , "build" , "node_modules" , packageName ) ;
51
51
console . log ( ) ;
52
- console . log ( ` npm publish ${ buildDir } --tag ${ tag } ` ) ;
52
+ console . log ( ` npm publish ${ buildDir } --tag ${ tag } --access public ` ) ;
53
53
console . log ( ) ;
54
- execSync ( `npm publish ${ buildDir } --tag ${ tag } ` , { stdio : "inherit" } ) ;
54
+ execSync ( `npm publish ${ buildDir } --tag ${ tag } --access public` , {
55
+ stdio : "inherit" ,
56
+ } ) ;
55
57
}
56
58
57
59
/**
@@ -83,7 +85,8 @@ async function run() {
83
85
await ensureBuildVersion ( "react-router-dom" , version ) ;
84
86
await ensureBuildVersion ( "react-router-dom-v5-compat" , version ) ;
85
87
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
87
90
88
91
// 4. Publish to npm
89
92
publishBuild ( "react-router" , tag ) ;
Original file line number Diff line number Diff line change
1
+ // FIXME: @remix -run/router isn't being automatically versioned
1
2
const path = require ( "path" ) ;
2
3
const { execSync } = require ( "child_process" ) ;
3
4
const fsp = require ( "fs/promises" ) ;
@@ -175,6 +176,11 @@ async function run() {
175
176
execSync ( `git commit --all --message="Version ${ version } "` ) ;
176
177
execSync ( `git tag -a -m "Version ${ version } " v${ version } ` ) ;
177
178
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
+ ) ;
178
184
} catch ( error ) {
179
185
console . log ( ) ;
180
186
console . error ( chalk . red ( ` ${ error . message } ` ) ) ;
You can’t perform that action at this time.
0 commit comments