Skip to content

Commit 144a79a

Browse files
committed
style: fix package version in README.md and build/index.js
1 parent f26060f commit 144a79a

4 files changed

Lines changed: 205 additions & 9 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
Add the following to the `Shared / HTML Header` section :
2121
```
22-
<script type="application/javascript" src="https://unpkg.com/@digital-engine/bubble-plugin-helpers@1.0.0/build/index.js" />
22+
<script type="application/javascript" src="https://unpkg.com/@digital-engine/bubble-plugin-helpers@1.0.2/build/index.js" />
2323
```
2424

2525
### In your plugin's server side actions
@@ -29,7 +29,7 @@ Add the following to the `Shared / HTML Header` section :
2929
```
3030
{
3131
"dependencies": {
32-
"@nabellaleen/bubble-plugin-helpers": "^1.0.0"
32+
"@nabellaleen/bubble-plugin-helpers": "^1.0.2"
3333
}
3434
}
3535
```

build/index.js

Lines changed: 184 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
"prepare": "husky install && npm run build",
1414
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
1515
"commit-msg": "commitlint --edit $1",
16-
"release": "npm run build && standard-version -a -n --header \"# Changelog\n\nAll notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n\n## Versions\"",
17-
"release:dry": "standard-version --dry-run",
16+
"release": "standard-version -a --header \"# Changelog\n\nAll notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n\n## Versions\"",
17+
"bump:readme": "replace \"`npm run version:latest | tail -n -1`\" \"`npm run version:newest | tail -n -1`\" README.md",
18+
"version:latest": "standard-version --dry-run | sed -e '3!d' -e 's/.*from //g' -e 's/ to .*//g'",
19+
"version:newest": "standard-version --dry-run | sed -e '3!d' -e 's/.*to //g'",
1820
"changelog:latest": "rexreplace \"^.*?#+\\s\\[.*?\n.*?(?=\\s*#+\\s\\[)\" \"_\" -s -M -G -m -o \"CHANGELOG.md\" | tail -n +7 > CHANGELOG-LATEST.md",
1921
"trypublish": "npm publish || true"
2022
},
@@ -61,6 +63,7 @@
6163
"optimize-css-assets-webpack-plugin": "^5.0.4",
6264
"prettier": "^2.2.1",
6365
"prettier-webpack-plugin": "^1.2.0",
66+
"replace": "1.2.1",
6467
"rexreplace": "6.1.1",
6568
"standard-version": "9.1.1",
6669
"style-loader": "^2.0.0",
@@ -117,7 +120,9 @@
117120
},
118121
"standard-version": {
119122
"scripts": {
120-
"postbump": "npx replace \"`npx standard-version --dry-run | sed -e '1!d' -e 's/.*from //g' -e 's/ to .*//g'`\" \"`npx standard-version --dry-run | sed -e '1!d' -e 's/.*to //g'`\" README.md"
123+
"prerelease": "npm run bump:readme",
124+
"postbump": "npm run build",
125+
"precommit": "git add build/* README.md"
121126
}
122127
}
123128
}

0 commit comments

Comments
 (0)