@adbayb/stack 2.34.0 → 2.35.0

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 (2) hide show
  1. package/dist/index.js +17 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -195,8 +195,12 @@ const createBuildCommand = (program)=>{
195
195
  const checkChangelog = async ()=>{
196
196
  try {
197
197
  return await helpers.exec("changeset status --since=origin/main");
198
- } catch (error) {
199
- throw createError("changeset", error);
198
+ } catch {
199
+ throw createError("changeset", [
200
+ "Some packages have been changed but no changelogs were found.",
201
+ "Run `pnpm stack release --log` to log your change(s).",
202
+ "If the change doesn't require a changelog, you can run `pnpm stack release --empty-log`."
203
+ ].join("\n"));
200
204
  }
201
205
  };
202
206
 
@@ -463,7 +467,7 @@ const PRESERVE_FILES = [
463
467
  "node_modules"
464
468
  ];
465
469
 
466
- var version = "2.34.0";
470
+ var version = "2.35.0";
467
471
 
468
472
  const createCreateCommand = (program)=>{
469
473
  program.command({
@@ -729,6 +733,10 @@ const createReleaseCommand = (program)=>{
729
733
  description: "Add a new changelog entry",
730
734
  key: "log",
731
735
  name: "log"
736
+ }).option({
737
+ description: "Add an empty changelog entry",
738
+ key: "emptyLog",
739
+ name: "empty-log"
732
740
  }).option({
733
741
  description: "Bump the package(s) version",
734
742
  key: "tag",
@@ -743,6 +751,12 @@ const createReleaseCommand = (program)=>{
743
751
  await changeset("changeset");
744
752
  },
745
753
  skip: ifNotEqualTo("log")
754
+ }).task({
755
+ async handler () {
756
+ helpers.message("New empty changelog entry\n");
757
+ await changeset("changeset --empty");
758
+ },
759
+ skip: ifNotEqualTo("emptyLog")
746
760
  }).task({
747
761
  async handler () {
748
762
  helpers.message("Bumping the package(s) version\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adbayb/stack",
3
- "version": "2.34.0",
3
+ "version": "2.35.0",
4
4
  "description": "My opinionated JavaScript-based toolchain",
5
5
  "keywords": [
6
6
  "stack",
@@ -47,7 +47,7 @@
47
47
  "@eslint/compat": "^2.1.0",
48
48
  "@stylistic/eslint-plugin": "^5.10.0",
49
49
  "@vitest/eslint-plugin": "^1.6.17",
50
- "eslint": "^10.3.0",
50
+ "eslint": "^10.4.0",
51
51
  "eslint-config-prettier": "^10.1.8",
52
52
  "eslint-import-resolver-typescript": "^4.4.4",
53
53
  "eslint-plugin-depend": "^1.5.0",
@@ -64,7 +64,7 @@
64
64
  "prettier": "^3.8.3",
65
65
  "prettier-plugin-packagejson": "^3.0.2",
66
66
  "termost": "^1.9.0",
67
- "turbo": "^2.9.12",
67
+ "turbo": "^2.9.14",
68
68
  "typescript": "^6.0.3",
69
69
  "typescript-eslint": "^8.59.3"
70
70
  },