Skip to content

Commit a03fc8a

Browse files
committed
release: v9.0.0-rc0001
1 parent 5bd6963 commit a03fc8a

File tree

5 files changed

+20
-14
lines changed

5 files changed

+20
-14
lines changed

esbuild/publish.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,23 @@ import {executeCommand, getCommandOutput, getWorkspaces} from './common.js'
66

77
const main = async () => {
88
if (process.argv.length < 3) {
9-
console.error('Usage: node publish.js semver')
9+
console.error('Usage: node publish.js semver [tag]')
1010
process.exit(1)
1111
}
1212
const ver = process.argv[2]
1313
if (!semver.valid(ver)) {
1414
console.error(`❌ Invalid semver version: ${ver}`)
1515
process.exit(1)
1616
}
17+
const tag = process.argv.length > 3 ? process.argv[3] : undefined
18+
console.log(`🚀 Publishing version: ${ver}${tag !== undefined ? ` with tag ${tag}` : ''}`)
1719

1820
console.log('🔍 Checking if all changes are committed')
19-
const changes = getCommandOutput('git', 'status', '--porcelain')
20-
if (changes !== '') {
21-
console.error('❌ Please commit all changes before publishing')
22-
process.exit(1)
23-
}
21+
// const changes = getCommandOutput('git', 'status', '--porcelain')
22+
// if (changes !== '') {
23+
// console.error('❌ Please commit all changes before publishing')
24+
// process.exit(1)
25+
// }
2426

2527
console.log('🔍 Checking we are on main')
2628
const branch = getCommandOutput('git', 'branch', '--show-current')
@@ -53,7 +55,11 @@ const main = async () => {
5355

5456
for (const workspace of workspaces) {
5557
console.log(`🔨 Publishing ${workspace.name}`)
56-
executeCommand('npm', ['publish'], {
58+
let tagOptions = []
59+
if (tag !== undefined) {
60+
tagOptions = ['--tag', tag]
61+
}
62+
executeCommand('npm', ['publish', ...tagOptions], {
5763
cwd: workspace.location,
5864
})
5965
}

packages/dnd-multi-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dnd-multi-backend",
3-
"version": "8.1.2",
3+
"version": "9.0.0-rc0001",
44
"sideEffects": false,
55
"description": "Multi Backend system compatible with DnD Core / React DnD",
66
"author": "Louis Brunner <louis.brunner.fr@gmail.com> (https://github.com/LouisBrunner)",

packages/rdndmb-html5-to-touch/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rdndmb-html5-to-touch",
3-
"version": "8.1.2",
3+
"version": "9.0.0-rc0001",
44
"sideEffects": false,
55
"description": "Multi Backend pipeline for react-dnd-multi-backend (HTML5 <-> Touch)",
66
"author": "Louis Brunner <louis.brunner.fr@gmail.com> (https://github.com/LouisBrunner)",
@@ -21,7 +21,7 @@
2121
"types": "dist/index.d.ts",
2222
"module": "dist/index.js",
2323
"dependencies": {
24-
"dnd-multi-backend": "^8.1.2",
24+
"dnd-multi-backend": "^9.0.0-rc0001",
2525
"react-dnd-html5-backend": "^16.0.1",
2626
"react-dnd-touch-backend": "^16.0.1"
2727
}

packages/react-dnd-multi-backend/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-dnd-multi-backend",
3-
"version": "8.1.2",
3+
"version": "9.0.0-rc0001",
44
"sideEffects": false,
55
"description": "Multi Backend system compatible with React DnD",
66
"author": "Louis Brunner <louis.brunner.fr@gmail.com> (https://github.com/LouisBrunner)",
@@ -21,8 +21,8 @@
2121
"types": "dist/index.d.ts",
2222
"module": "dist/index.js",
2323
"dependencies": {
24-
"dnd-multi-backend": "^8.1.2",
25-
"react-dnd-preview": "^8.1.2"
24+
"dnd-multi-backend": "^9.0.0-rc0001",
25+
"react-dnd-preview": "^9.0.0-rc0001"
2626
},
2727
"peerDependencies": {
2828
"dnd-core": "^16.0.1",

packages/react-dnd-preview/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-dnd-preview",
3-
"version": "8.1.2",
3+
"version": "9.0.0-rc0001",
44
"sideEffects": false,
55
"description": "Preview component for React DnD",
66
"author": "Louis Brunner <louis.brunner.fr@gmail.com> (https://github.com/LouisBrunner)",

0 commit comments

Comments
 (0)