Skip to content

Commit a7355b7

Browse files
committed
chore: Rename package to absolute-version
1 parent f035a43 commit a7355b7

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Absolute Version
22

3-
[![npm](https://img.shields.io/npm/v/@pact-foundation/absolute-version.svg)](https://www.npmjs.com/package/@pact-foundation/absolute-version)
3+
[![npm](https://img.shields.io/npm/v/absolute-version.svg)](https://www.npmjs.com/package/absolute-version)
44
[![Known Vulnerabilities](https://snyk.io/test/github/absolute-version/absolute-version-js/badge.svg?targetFile=package.json)](https://snyk.io/test/github/absolute-version/absolute-version-js?targetFile=package.json)
55
[![license](https://img.shields.io/github/license/absolute-version/absolute-version-js.svg)](https://github.com/absolute-version/absolute-version/blob/main/LICENSE)
66

@@ -44,19 +44,19 @@ Since every commit is a different version of your software, have a different ver
4444
## Installing
4545

4646
```
47-
npm install --save-dev @pact-foundation/absolute-version
47+
npm install --save-dev absolute-version
4848
```
4949

5050
### CLI
5151

5252
```
53-
npx @pact-foundation/absolute-version
53+
npx absolute-version
5454
```
5555

5656
Or alternatively:
5757

5858
```
59-
npm install --save-dev @pact-foundation/absolute-version
59+
npm install --save-dev absolute-version
6060
```
6161

6262
package.json:
@@ -70,7 +70,7 @@ scripts: {
7070
If your tags don't conform to `vX.Y.Z`, then you can pass an alternate tag glob:
7171

7272
```
73-
npx @pact-foundation/absolute-version --tagGlob '[0-9]*'
73+
npx absolute-version --tagGlob '[0-9]*'
7474
```
7575

7676
The default is `'v[0-9]*'`. The format for the glob is the same as for `--match` in `git describe`.
@@ -82,7 +82,7 @@ The default is `'v[0-9]*'`. The format for the glob is the same as for `--match`
8282
Returns the `absolute-version` as a string, using the current working directory from `process.cwd()`.
8383

8484
```
85-
import { versionFromGitTag } from '@pact-foundation/absolute-version'
85+
import { versionFromGitTag } from absolute-version'
8686
8787
const version = versionFromGitTag();
8888
```
@@ -98,7 +98,7 @@ AbsoluteVersionConfig {
9898
If your tags don't conform to `vX.Y.Z`, then you can pass an alternate glob in the options:
9999

100100
```
101-
import { versionFromGitTag } from '@pact-foundation/absolute-version'
101+
import { versionFromGitTag } from 'absolute-version'
102102
103103
const version = versionFromGitTag({
104104
tagGlob: '[0-9]*'

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@pact-foundation/absolute-version",
2+
"name": "absolute-version",
33
"version": "0.0.4",
44
"description": "Reads your git tags to generate a unique human-readable version for every git commit",
55
"main": "dist/index.js",
@@ -34,6 +34,7 @@
3434
"@types/yargs": "^17.0.2",
3535
"@typescript-eslint/eslint-plugin": "^5.25.0",
3636
"@typescript-eslint/parser": "^5.25.0",
37+
"commit-and-tag-version": "^9.5.0",
3738
"eslint": "^8.15.0",
3839
"eslint-config-airbnb-typescript-lite": "^13.0.1",
3940
"eslint-config-prettier": "^8.5.0",
@@ -43,7 +44,6 @@
4344
"jest": "^28.1.0",
4445
"prettier": "^2.2.1",
4546
"rimraf": "^3.0.2",
46-
"commit-and-tag-version": "^9.3.1",
4747
"ts-jest": "^28.0.2",
4848
"ts-node": "^9.1.1",
4949
"typescript": "^4.1.5"

0 commit comments

Comments
 (0)