automate-release 2.1.3 → 2.1.6

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.
package/bin/colors.js ADDED
@@ -0,0 +1,15 @@
1
+ 'use strict'
2
+
3
+ const { styleText } = require('node:util')
4
+
5
+ const gray = str => styleText('gray', str)
6
+
7
+ const white = str => styleText('white', str)
8
+
9
+ const green = str => styleText('green', str)
10
+
11
+ const red = str => styleText('red', str)
12
+
13
+ const yellow = str => styleText('yellow', str)
14
+
15
+ module.exports = { gray, white, green, red, yellow }
package/bin/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  'use strict'
4
4
 
5
- const { red } = require('picocolors')
5
+ const { red } = require('./colors')
6
6
  const fs = require('fs-extra')
7
7
  const path = require('path')
8
8
 
package/bin/init.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  'use strict'
4
4
 
5
- const { white, red, gray } = require('picocolors')
5
+ const { white, red, gray } = require('./colors')
6
6
  const { get, forEach, set } = require('lodash')
7
7
  const jsonFuture = require('json-future')
8
8
  const link = require('terminal-link')
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "automate-release",
3
3
  "description": "No more manual work in your software releases.",
4
4
  "homepage": "https://github.com/kikobeats/automate-release",
5
- "version": "2.1.3",
5
+ "version": "2.1.6",
6
6
  "main": "index.js",
7
7
  "bin": {
8
8
  "automate-release": "bin/index.js"
@@ -45,7 +45,6 @@
45
45
  "lodash": "~4.17.19",
46
46
  "meow": "~9.0.0",
47
47
  "nanospinner": "~1.2.2",
48
- "picocolors": "~1.1.0",
49
48
  "terminal-link": "~2.1.1",
50
49
  "tinyspawn": "~1.5.5",
51
50
  "update-notifier": "~5.1.0"
@@ -71,11 +70,11 @@
71
70
  "bin"
72
71
  ],
73
72
  "scripts": {
74
- "contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
73
+ "contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
75
74
  "lint": "standard",
76
- "postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
77
- "pretest": "npm run lint",
78
- "release": "pnpm run release:version && pnpm run release:changelog && pnpm run release:commit && pnpm run release:tag",
75
+ "postrelease": "pnpm release:tags && pnpm release:github && (ci-publish || pnpm publish --access=public)",
76
+ "pretest": "pnpm lint",
77
+ "release": "pnpm release:version && pnpm release:changelog && pnpm release:commit && pnpm release:tag",
79
78
  "release:changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s",
80
79
  "release:commit": "git add package.json CHANGELOG.md && git commit -m \"chore(release): $(node -p \"require('./package.json').version\")\"",
81
80
  "release:github": "github-generate-release",