Skip to content

Commit eab74d8

Browse files
committed
chore: add release scripts
1 parent f5513bd commit eab74d8

2 files changed

Lines changed: 1065 additions & 22 deletions

File tree

plugin/package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
{
22
"name": "@hawtio/ai-plugin",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "Hawtio AI plugin",
55
"main": "./build/remoteEntry.js",
66
"license": "Apache-2.0",
7+
"files": [
8+
"build/static/**/*",
9+
"build/remoteEntry.js"
10+
],
711
"scripts": {
812
"start": "webpack serve --mode development",
913
"build": "webpack --mode production",
1014
"test": "jest --passWithNoTests",
1115
"format:check": "yarn prettier --check .",
1216
"format:fix": "yarn prettier --write .",
13-
"replace-version": "replace __PACKAGE_VERSION_PLACEHOLDER__ $npm_package_version ./build/static/js -r --include=\"*.js\""
17+
"replace-version": "replace __PACKAGE_VERSION_PLACEHOLDER__ $npm_package_version ./build/static/js -r --include=\"*.js\"",
18+
"release": "commit-and-tag-version",
19+
"prepack": "yarn build && yarn replace-version"
1420
},
1521
"dependencies": {
1622
"@hawtio/react": "^2.0.0",
@@ -36,6 +42,7 @@
3642
"@types/react": "^18.3.23",
3743
"@types/react-dom": "^18.3.7",
3844
"@types/react-router-dom": "^5.3.3",
45+
"commit-and-tag-version": "^12.7.1",
3946
"copy-webpack-plugin": "^14.0.0",
4047
"css-loader": "^7.1.4",
4148
"cz-conventional-changelog": "^3.3.0",

0 commit comments

Comments
 (0)