Skip to content

Commit 3ebf879

Browse files
committed
chore: use plugin version instead of package.json
1 parent 3a24747 commit 3ebf879

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "j7-dev/wp-react-plugin",
3-
"version": "1.19.0",
3+
"version": "1.19.1",
44
"description": "This is a boilerplate for creating a WordPress plugin with React, Tailwind, Ant Design, TypeScript, Zod, MSW, React Router v6, React Query v4, SCSS and Vite.",
55
"type": "wordpress-plugin",
66
"license": "GPL-2.0-only",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wp-react-plugin",
33
"private": true,
4-
"version": "1.19.0",
4+
"version": "1.19.1",
55
"type": "module",
66
"scripts": {
77
"bootstrap": "npm install && composer install --no-interaction",

release/.release-it.cjs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,11 @@ module.exports = {
4646
},
4747
plugins: {
4848
'@release-it/bumper': {
49-
out: [
50-
{
51-
file: 'plugin.php',
52-
type: 'text/php',
53-
},
54-
{
55-
file: 'composer.json',
56-
type: 'text/json',
57-
},
58-
],
49+
in: {
50+
file: 'plugin.php',
51+
type: 'text/php',
52+
},
53+
out: ['composer.json', 'package.json'],
5954
},
6055
},
6156
}

release/zip.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ const archive = archiver('zip', {
2020
})
2121

2222
output.on('close', function () {
23-
console.log(`壓縮文件的總大小: ${archive.pointer() / 1024 / 1024} MB`)
23+
console.log(
24+
`壓縮文件的總大小: ${Math.round((archive.pointer() * 100) / 1024 / 1024) / 100} MB`,
25+
)
2426
})
2527

2628
// 監聽錯誤事件

0 commit comments

Comments
 (0)