@chauvet/connect-base-profiles 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1) hide show
  1. package/package.json +2 -2
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@chauvet/connect-base-profiles",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
5
  "main": "dist/baseProfiles.js",
6
6
  "types": "dist/baseProfiles.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
- "bump:version": "bash -c 'if [ -z \"$1\" ]; then echo \"❌ Please provide a version: npm run bump:version -- 1.5.0\"; exit 1; else npm version --no-git-tag-version \"$1\"; fi' -",
9
+ "bump:version": "bash -c 'v=\"$1\"; if [[ ! \"$v\" =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then echo \"❌ Invalid format. Use: npm run bump:version - 1.3.0\"; exit 1; fi; npm version --no-git-tag-version \"$v\"'",
10
10
  "bump:patch": "npm version patch --no-git-tag-version",
11
11
  "bump:minor": "npm version minor --no-git-tag-version",
12
12
  "bump:major": "npm version major --no-git-tag-version",