Current collected state Current
Observed since 20 Oct, 22:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0x-jerry/x-release
A convenient tool that helps you to create a new release.
A tool that helps you to create a new release quickly.
pnpm i @0x-jerry/x-release -D
# or
pnpm i @0x-jerry/x-release -g
Usage:
$ x-release [new-version]
Commands:
[new-version] the tasks to run.
Example:
- x-release --patch
- x-release 0.0.1
- x-release 0.1.1 --publish false
For more info, run any command with the `--help` flag:
$ x-release --help
Options:
--patch auto-increment patch version number
--minor auto-increment minor version number
--major auto-increment major version number
--prepatch auto-increment prepatch version number
--preminor auto-increment preminor version number
--premajor auto-increment premajor version number
--prerelease auto-increment prerelease version number
--publish run npm publish, default is true
--tag <tag-tpl> new tag format, default is: "v${version}"
--commit <commit-tpl> the commit message template, default is: "chore: release v${version}"
-h, --help Display this message
-v, --version Display version number
Config file: release.conf.ts
Example config file:
import { defineConfig } from '@0x-jerry/x-release'
export default defineConfig({
/**
* run npm publish, default true
*/
publish: true,
/**
* tag template
*/
tag: '${prefix}v${version}',
/**
* commit template
*/
commit: 'chore: release ${prefix}v${version}',
/**
* run tasks after bump version
*/
tasks: [
'npm test', // run npm test
async (ctx) => {
console.log('new version is:', ctx.nextVersion)
await ctx.run(`echo "custom script, all tasks are finished!"`)
},
],
})
Package.json release
{
"release": {
"publish": true,
"tag": "${prefix}v${version}",
"commit": "chore: release ${prefix}v${version}",
"tasks": [
"npm run test",
"echo 'run custom script after bump version'",
"echo 'this should be the last script'"
]
}
}
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
cacEnvironment{
"local_name": "cac",
"alias": false,
"peer_metadata": null
} | ^6.7.12 | runtime |
debugEnvironment{
"local_name": "debug",
"alias": false,
"peer_metadata": null
} | ^4.3.3 | runtime |
execaEnvironment{
"local_name": "execa",
"alias": false,
"peer_metadata": null
} | ^5.1.1 | runtime |
semverEnvironment{
"local_name": "semver",
"alias": false,
"peer_metadata": null
} | ^7.3.5 | runtime |
esbuildEnvironment{
"local_name": "esbuild",
"alias": false,
"peer_metadata": null
} | ^0.14.9 | runtime |
promptsEnvironment{
"local_name": "prompts",
"alias": false,
"peer_metadata": null
} | ^2.4.2 | runtime |
unconfigEnvironment{
"local_name": "unconfig",
"alias": false,
"peer_metadata": null
} | ^0.2.2 | runtime |
picocolorsEnvironment{
"local_name": "picocolors",
"alias": false,
"peer_metadata": null
} | ^1.0.0 | runtime |
esbuild-registerEnvironment{
"local_name": "esbuild-register",
"alias": false,
"peer_metadata": null
} | ^3.3.1 | runtime |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^4.5.4 | development |
@types/jestEnvironment{
"local_name": "@types/jest",
"alias": false,
"peer_metadata": null
} | ^27.0.3 | development |
@types/debugEnvironment{
"local_name": "@types/debug",
"alias": false,
"peer_metadata": null
} | ^4.1.7 | development |
@types/semverEnvironment{
"local_name": "@types/semver",
"alias": false,
"peer_metadata": null
} | ^7.3.9 | development |
@types/promptsEnvironment{
"local_name": "@types/prompts",
"alias": false,
"peer_metadata": null
} | ^2.0.14 | development |
Source distribution
{
"shasum": "bbe339f6cb5b93d74aadb87a277f261d1b4a9e82",
"tarball": "https://registry.npmjs.org/@0x-jerry/x-release/-/x-release-0.1.1.tgz",
"fileCount": 32,
"integrity": "sha512-w364DtwE475EnI+3qk3eZFRWt39aTtiT3n3XEC8KurPZQfl8IXNcl1cjRYd8Oq0xPk2YHOM8Ggei/hsbDvqOCQ==",
"signatures": [
{
"sig": "MEUCIQC3ML7CqmPI7ZXQlLRm3/NoUfaPI9/pyEonWG6DiYLg8wIgKRMlFQblnCBW/4LZ/X+eNnxhZZDHQUHSptJrizgds3w=",
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
}
],
"unpackedSize": 46100,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzHuYCRA9TVsSAnZWagAAFpsP/15R+E1ZjeHXwXkRawzh\nYTJ3sPncuYVDDeU5jMS9fKuvcs4eSTdh3QfDwCkb17q+8zhJ9uov2Kde0iLg\nHI7ZF9H/SmFoqOSi/gaoGRDiDfqow8sM+poIkjUFrShQpQV02zeTYRsHgMQY\nDGIzOtH82qCPwr3A1f13m46VROAOPHFwuUhSGy84QRDoGCtJ1P3Pxpg3h7Vu\n5GM79fvykZVOR6YEa/q0i9//NcMNKTwP2XDba6dg1EDH/+LVyyL/9fhEgfDY\nZDXG144ozW0AJxVRuYbw7+R/MrOzDqa/XOtZEL1PVDSS/MYGH/vWEkcSBG6x\nj7r9JNlvKWw5KFbJkYTpoGhiTY8iZjvs9bkl5Eyx+v+aGSlFjABEKNE1jhVs\nu70Ay/w3FD6x5VZctBxgihVP8ViaMbUKwQ97yXUR2MmyAM8WIPUGAeHSqLgt\nNqWyk38uXl6Ro324NQx9EHrgVc1m4G70Z087bZcX5ahpxYRfuVku+6tDP6ZD\nNywXWxkA2o0+Paz43mZtpAvEpEuQih/48zJ5moO1NNYpCtTCvaQ/VY9WBmSG\nnc4gAi/69EKEZeGYeLDsS5vbH1l0X3mQjOmi1BtIwPClGlXM1uueWq0hrUzb\noFkYLyt+2dS2YGkw4u3FBn/VPUPiruS0K3TeC7wAHCb4mWd3efeIdqcdYW6x\nt9ln\r\n=K0dG\r\n-----END PGP SIGNATURE-----\r\n"
}Observed since 20 Oct, 22:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:01d835c713ba0a20a2885638b118f85c08e7169cda3ccfbae052d65ba5f2a228