From 8dae004ee19bdf8d5b39d3fce83310609f9653aa Mon Sep 17 00:00:00 2001 From: Aaron Moat <2937187+AaronMoat@users.noreply.github.com> Date: Tue, 10 Sep 2024 14:17:39 +1000 Subject: [PATCH] Remove 'skuba release' command --- .changeset/rotten-queens-swim.md | 16 ++ package.json | 1 - pnpm-lock.yaml | 277 +++++++++----------- src/cli/configure/dependencies/skubaDeps.ts | 1 - src/cli/configure/modules/package.test.ts | 4 +- src/cli/configure/modules/package.ts | 3 +- src/cli/release.ts | 5 - src/utils/command.ts | 1 - template/oss-npm-package/_package.json | 3 +- template/private-npm-package/_package.json | 5 +- 10 files changed, 143 insertions(+), 173 deletions(-) create mode 100644 .changeset/rotten-queens-swim.md delete mode 100644 src/cli/release.ts diff --git a/.changeset/rotten-queens-swim.md b/.changeset/rotten-queens-swim.md new file mode 100644 index 000000000..a0fedd396 --- /dev/null +++ b/.changeset/rotten-queens-swim.md @@ -0,0 +1,16 @@ +--- +'skuba': major +--- + +release: Remove command + +The `skuba release` command has been removed. If you were using it, install `semantic-release`, e.g. `pnpm i -D semantic-release` or `yarn add -D semantic-release`. +Then, replace your use of `skuba release` with `semantic-release --success false`: + +```diff +- "release": "pnpm --silent build && skuba release", ++ "release": "pnpm --silent build && semantic-release --success false", +``` + +The reason for this change is that the `skuba release` command is a very thin wrapper over semantic-release, and many SEEK projects are moving to be powered by Changesets. +This removes skuba's bundle size for consumers who do not need the package, and allows skuba to maintain a longer support for Node.js LTS versions that semantic-release has historically dropped early. diff --git a/package.json b/package.json index d81af9041..6d8620aa4 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,6 @@ "prettier": "~3.3.0", "prettier-plugin-packagejson": "^2.4.10", "read-pkg-up": "^7.0.1", - "semantic-release": "^22.0.12", "serialize-error": "^8.0.1", "simple-git": "^3.5.0", "strip-ansi": "^6.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ce79888f0..fee7b5f65 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -122,9 +122,6 @@ importers: read-pkg-up: specifier: ^7.0.1 version: 7.0.1 - semantic-release: - specifier: ^22.0.12 - version: 22.0.12(typescript@5.5.2) serialize-error: specifier: ^8.0.1 version: 8.1.0 @@ -8304,8 +8301,8 @@ snapshots: dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.598.0 - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sso-oidc': 3.598.0(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@aws-sdk/core': 3.598.0 '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) '@aws-sdk/middleware-host-header': 3.598.0 @@ -8354,8 +8351,8 @@ snapshots: dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.598.0 - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sso-oidc': 3.598.0(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@aws-sdk/core': 3.598.0 '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) '@aws-sdk/middleware-host-header': 3.598.0 @@ -8447,8 +8444,8 @@ snapshots: dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.598.0 - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sso-oidc': 3.598.0(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@aws-sdk/core': 3.598.0 '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) '@aws-sdk/middleware-host-header': 3.598.0 @@ -8539,10 +8536,10 @@ snapshots: dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.598.0 - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sso-oidc': 3.598.0(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@aws-sdk/core': 3.598.0 - '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0))(@aws-sdk/client-sts@3.598.0) '@aws-sdk/middleware-host-header': 3.598.0 '@aws-sdk/middleware-logger': 3.598.0 '@aws-sdk/middleware-recursion-detection': 3.598.0 @@ -8586,10 +8583,10 @@ snapshots: dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.598.0 - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sso-oidc': 3.598.0(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@aws-sdk/core': 3.598.0 - '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0))(@aws-sdk/client-sts@3.598.0) '@aws-sdk/middleware-host-header': 3.598.0 '@aws-sdk/middleware-logger': 3.598.0 '@aws-sdk/middleware-recursion-detection': 3.598.0 @@ -8700,8 +8697,8 @@ snapshots: dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.598.0 - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sso-oidc': 3.598.0(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@aws-sdk/core': 3.598.0 '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) '@aws-sdk/middleware-host-header': 3.598.0 @@ -8747,8 +8744,8 @@ snapshots: dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.598.0 - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sso-oidc': 3.598.0(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@aws-sdk/core': 3.598.0 '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) '@aws-sdk/middleware-host-header': 3.598.0 @@ -8789,13 +8786,13 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sso-oidc@3.598.0': + '@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0)': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@aws-sdk/core': 3.598.0 - '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0))(@aws-sdk/client-sts@3.598.0) '@aws-sdk/middleware-host-header': 3.598.0 '@aws-sdk/middleware-logger': 3.598.0 '@aws-sdk/middleware-recursion-detection': 3.598.0 @@ -8832,6 +8829,7 @@ snapshots: '@smithy/util-utf8': 3.0.0 tslib: 2.6.3 transitivePeerDependencies: + - '@aws-sdk/client-sts' - aws-crt '@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0)': @@ -8840,7 +8838,7 @@ snapshots: '@aws-crypto/sha256-js': 5.2.0 '@aws-sdk/client-sts': 3.600.0 '@aws-sdk/core': 3.598.0 - '@aws-sdk/credential-provider-node': 3.600.0(@aws-sdk/client-sso-oidc@3.600.0)(@aws-sdk/client-sts@3.600.0) + '@aws-sdk/credential-provider-node': 3.600.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0))(@aws-sdk/client-sts@3.600.0) '@aws-sdk/middleware-host-header': 3.598.0 '@aws-sdk/middleware-logger': 3.598.0 '@aws-sdk/middleware-recursion-detection': 3.598.0 @@ -8923,13 +8921,13 @@ snapshots: transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sts@3.598.0(@aws-sdk/client-sso-oidc@3.598.0)': + '@aws-sdk/client-sts@3.598.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.598.0 + '@aws-sdk/client-sso-oidc': 3.598.0(@aws-sdk/client-sts@3.598.0) '@aws-sdk/core': 3.598.0 - '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0))(@aws-sdk/client-sts@3.598.0) '@aws-sdk/middleware-host-header': 3.598.0 '@aws-sdk/middleware-logger': 3.598.0 '@aws-sdk/middleware-recursion-detection': 3.598.0 @@ -8966,7 +8964,6 @@ snapshots: '@smithy/util-utf8': 3.0.0 tslib: 2.6.3 transitivePeerDependencies: - - '@aws-sdk/client-sso-oidc' - aws-crt '@aws-sdk/client-sts@3.600.0': @@ -8975,7 +8972,7 @@ snapshots: '@aws-crypto/sha256-js': 5.2.0 '@aws-sdk/client-sso-oidc': 3.600.0(@aws-sdk/client-sts@3.600.0) '@aws-sdk/core': 3.598.0 - '@aws-sdk/credential-provider-node': 3.600.0(@aws-sdk/client-sso-oidc@3.600.0)(@aws-sdk/client-sts@3.600.0) + '@aws-sdk/credential-provider-node': 3.600.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0))(@aws-sdk/client-sts@3.600.0) '@aws-sdk/middleware-host-header': 3.598.0 '@aws-sdk/middleware-logger': 3.598.0 '@aws-sdk/middleware-recursion-detection': 3.598.0 @@ -9053,13 +9050,31 @@ snapshots: '@smithy/util-stream': 3.0.3 tslib: 2.6.3 + '@aws-sdk/credential-provider-ini@3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0))(@aws-sdk/client-sts@3.598.0)': + dependencies: + '@aws-sdk/client-sts': 3.598.0 + '@aws-sdk/credential-provider-env': 3.598.0 + '@aws-sdk/credential-provider-http': 3.598.0 + '@aws-sdk/credential-provider-process': 3.598.0 + '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0)) + '@aws-sdk/credential-provider-web-identity': 3.598.0(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/types': 3.598.0 + '@smithy/credential-provider-imds': 3.1.1 + '@smithy/property-provider': 3.1.1 + '@smithy/shared-ini-file-loader': 3.1.1 + '@smithy/types': 3.1.0 + tslib: 2.6.3 + transitivePeerDependencies: + - '@aws-sdk/client-sso-oidc' + - aws-crt + '@aws-sdk/credential-provider-ini@3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0)': dependencies: - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@aws-sdk/credential-provider-env': 3.598.0 '@aws-sdk/credential-provider-http': 3.598.0 '@aws-sdk/credential-provider-process': 3.598.0 - '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0)) '@aws-sdk/credential-provider-web-identity': 3.598.0(@aws-sdk/client-sts@3.598.0) '@aws-sdk/types': 3.598.0 '@smithy/credential-provider-imds': 3.1.1 @@ -9071,13 +9086,31 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt + '@aws-sdk/credential-provider-ini@3.598.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0))(@aws-sdk/client-sts@3.600.0)': + dependencies: + '@aws-sdk/client-sts': 3.600.0 + '@aws-sdk/credential-provider-env': 3.598.0 + '@aws-sdk/credential-provider-http': 3.598.0 + '@aws-sdk/credential-provider-process': 3.598.0 + '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0)) + '@aws-sdk/credential-provider-web-identity': 3.598.0(@aws-sdk/client-sts@3.600.0) + '@aws-sdk/types': 3.598.0 + '@smithy/credential-provider-imds': 3.1.1 + '@smithy/property-provider': 3.1.1 + '@smithy/shared-ini-file-loader': 3.1.1 + '@smithy/types': 3.1.0 + tslib: 2.6.3 + transitivePeerDependencies: + - '@aws-sdk/client-sso-oidc' + - aws-crt + '@aws-sdk/credential-provider-ini@3.598.0(@aws-sdk/client-sso-oidc@3.600.0)(@aws-sdk/client-sts@3.600.0)': dependencies: '@aws-sdk/client-sts': 3.600.0 '@aws-sdk/credential-provider-env': 3.598.0 '@aws-sdk/credential-provider-http': 3.598.0 '@aws-sdk/credential-provider-process': 3.598.0 - '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.600.0) + '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0)) '@aws-sdk/credential-provider-web-identity': 3.598.0(@aws-sdk/client-sts@3.600.0) '@aws-sdk/types': 3.598.0 '@smithy/credential-provider-imds': 3.1.1 @@ -9089,13 +9122,32 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt + '@aws-sdk/credential-provider-node@3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0))(@aws-sdk/client-sts@3.598.0)': + dependencies: + '@aws-sdk/credential-provider-env': 3.598.0 + '@aws-sdk/credential-provider-http': 3.598.0 + '@aws-sdk/credential-provider-ini': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0))(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/credential-provider-process': 3.598.0 + '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0)) + '@aws-sdk/credential-provider-web-identity': 3.598.0(@aws-sdk/client-sts@3.598.0) + '@aws-sdk/types': 3.598.0 + '@smithy/credential-provider-imds': 3.1.1 + '@smithy/property-provider': 3.1.1 + '@smithy/shared-ini-file-loader': 3.1.1 + '@smithy/types': 3.1.0 + tslib: 2.6.3 + transitivePeerDependencies: + - '@aws-sdk/client-sso-oidc' + - '@aws-sdk/client-sts' + - aws-crt + '@aws-sdk/credential-provider-node@3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0)': dependencies: '@aws-sdk/credential-provider-env': 3.598.0 '@aws-sdk/credential-provider-http': 3.598.0 '@aws-sdk/credential-provider-ini': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) '@aws-sdk/credential-provider-process': 3.598.0 - '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0)) '@aws-sdk/credential-provider-web-identity': 3.598.0(@aws-sdk/client-sts@3.598.0) '@aws-sdk/types': 3.598.0 '@smithy/credential-provider-imds': 3.1.1 @@ -9108,13 +9160,32 @@ snapshots: - '@aws-sdk/client-sts' - aws-crt + '@aws-sdk/credential-provider-node@3.600.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0))(@aws-sdk/client-sts@3.600.0)': + dependencies: + '@aws-sdk/credential-provider-env': 3.598.0 + '@aws-sdk/credential-provider-http': 3.598.0 + '@aws-sdk/credential-provider-ini': 3.598.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0))(@aws-sdk/client-sts@3.600.0) + '@aws-sdk/credential-provider-process': 3.598.0 + '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0)) + '@aws-sdk/credential-provider-web-identity': 3.598.0(@aws-sdk/client-sts@3.600.0) + '@aws-sdk/types': 3.598.0 + '@smithy/credential-provider-imds': 3.1.1 + '@smithy/property-provider': 3.1.1 + '@smithy/shared-ini-file-loader': 3.1.1 + '@smithy/types': 3.1.0 + tslib: 2.6.3 + transitivePeerDependencies: + - '@aws-sdk/client-sso-oidc' + - '@aws-sdk/client-sts' + - aws-crt + '@aws-sdk/credential-provider-node@3.600.0(@aws-sdk/client-sso-oidc@3.600.0)(@aws-sdk/client-sts@3.600.0)': dependencies: '@aws-sdk/credential-provider-env': 3.598.0 '@aws-sdk/credential-provider-http': 3.598.0 '@aws-sdk/credential-provider-ini': 3.598.0(@aws-sdk/client-sso-oidc@3.600.0)(@aws-sdk/client-sts@3.600.0) '@aws-sdk/credential-provider-process': 3.598.0 - '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.600.0) + '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0)) '@aws-sdk/credential-provider-web-identity': 3.598.0(@aws-sdk/client-sts@3.600.0) '@aws-sdk/types': 3.598.0 '@smithy/credential-provider-imds': 3.1.1 @@ -9135,10 +9206,10 @@ snapshots: '@smithy/types': 3.1.0 tslib: 2.6.3 - '@aws-sdk/credential-provider-sso@3.598.0(@aws-sdk/client-sso-oidc@3.598.0)': + '@aws-sdk/credential-provider-sso@3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0))': dependencies: '@aws-sdk/client-sso': 3.598.0 - '@aws-sdk/token-providers': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/token-providers': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0)) '@aws-sdk/types': 3.598.0 '@smithy/property-provider': 3.1.1 '@smithy/shared-ini-file-loader': 3.1.1 @@ -9148,10 +9219,10 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt - '@aws-sdk/credential-provider-sso@3.598.0(@aws-sdk/client-sso-oidc@3.600.0)': + '@aws-sdk/credential-provider-sso@3.598.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0))': dependencies: '@aws-sdk/client-sso': 3.598.0 - '@aws-sdk/token-providers': 3.598.0(@aws-sdk/client-sso-oidc@3.600.0) + '@aws-sdk/token-providers': 3.598.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0)) '@aws-sdk/types': 3.598.0 '@smithy/property-provider': 3.1.1 '@smithy/shared-ini-file-loader': 3.1.1 @@ -9163,7 +9234,7 @@ snapshots: '@aws-sdk/credential-provider-web-identity@3.598.0(@aws-sdk/client-sts@3.598.0)': dependencies: - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@aws-sdk/types': 3.598.0 '@smithy/property-provider': 3.1.1 '@smithy/types': 3.1.0 @@ -9181,14 +9252,14 @@ snapshots: dependencies: '@aws-sdk/client-cognito-identity': 3.598.0 '@aws-sdk/client-sso': 3.598.0 - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@aws-sdk/credential-provider-cognito-identity': 3.598.0 '@aws-sdk/credential-provider-env': 3.598.0 '@aws-sdk/credential-provider-http': 3.598.0 '@aws-sdk/credential-provider-ini': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) '@aws-sdk/credential-provider-node': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0)(@aws-sdk/client-sts@3.598.0) '@aws-sdk/credential-provider-process': 3.598.0 - '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/credential-provider-sso': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0)) '@aws-sdk/credential-provider-web-identity': 3.598.0(@aws-sdk/client-sts@3.598.0) '@aws-sdk/types': 3.598.0 '@smithy/credential-provider-imds': 3.1.1 @@ -9314,16 +9385,16 @@ snapshots: '@smithy/types': 3.1.0 tslib: 2.6.3 - '@aws-sdk/token-providers@3.598.0(@aws-sdk/client-sso-oidc@3.598.0)': + '@aws-sdk/token-providers@3.598.0(@aws-sdk/client-sso-oidc@3.598.0(@aws-sdk/client-sts@3.598.0))': dependencies: - '@aws-sdk/client-sso-oidc': 3.598.0 + '@aws-sdk/client-sso-oidc': 3.598.0(@aws-sdk/client-sts@3.598.0) '@aws-sdk/types': 3.598.0 '@smithy/property-provider': 3.1.1 '@smithy/shared-ini-file-loader': 3.1.1 '@smithy/types': 3.1.0 tslib: 2.6.3 - '@aws-sdk/token-providers@3.598.0(@aws-sdk/client-sso-oidc@3.600.0)': + '@aws-sdk/token-providers@3.598.0(@aws-sdk/client-sso-oidc@3.600.0(@aws-sdk/client-sts@3.600.0))': dependencies: '@aws-sdk/client-sso-oidc': 3.600.0(@aws-sdk/client-sts@3.600.0) '@aws-sdk/types': 3.598.0 @@ -11008,19 +11079,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@semantic-release/commit-analyzer@11.1.0(semantic-release@22.0.12(typescript@5.5.2))': - dependencies: - conventional-changelog-angular: 7.0.0 - conventional-commits-filter: 4.0.0 - conventional-commits-parser: 5.0.0 - debug: 4.3.5(supports-color@8.1.1) - import-from-esm: 1.3.4 - lodash-es: 4.17.21 - micromatch: 4.0.7 - semantic-release: 22.0.12(typescript@5.5.2) - transitivePeerDependencies: - - supports-color - '@semantic-release/error@4.0.0': {} '@semantic-release/github@9.2.6(semantic-release@22.0.12(typescript@5.4.5))': @@ -11045,28 +11103,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@semantic-release/github@9.2.6(semantic-release@22.0.12(typescript@5.5.2))': - dependencies: - '@octokit/core': 5.2.0 - '@octokit/plugin-paginate-rest': 9.2.1(@octokit/core@5.2.0) - '@octokit/plugin-retry': 6.0.1(@octokit/core@5.2.0) - '@octokit/plugin-throttling': 8.2.0(@octokit/core@5.2.0) - '@semantic-release/error': 4.0.0 - aggregate-error: 5.0.0 - debug: 4.3.5(supports-color@8.1.1) - dir-glob: 3.0.1 - globby: 14.0.1 - http-proxy-agent: 7.0.2 - https-proxy-agent: 7.0.4 - issue-parser: 6.0.0 - lodash-es: 4.17.21 - mime: 4.0.3 - p-filter: 4.1.0 - semantic-release: 22.0.12(typescript@5.5.2) - url-join: 5.0.0 - transitivePeerDependencies: - - supports-color - '@semantic-release/npm@11.0.3(semantic-release@22.0.12(typescript@5.4.5))': dependencies: '@semantic-release/error': 4.0.0 @@ -11084,23 +11120,6 @@ snapshots: semver: 7.6.3 tempy: 3.1.0 - '@semantic-release/npm@11.0.3(semantic-release@22.0.12(typescript@5.5.2))': - dependencies: - '@semantic-release/error': 4.0.0 - aggregate-error: 5.0.0 - execa: 8.0.1 - fs-extra: 11.2.0 - lodash-es: 4.17.21 - nerf-dart: 1.0.0 - normalize-url: 8.0.1 - npm: 10.8.1 - rc: 1.2.8 - read-pkg: 9.0.1 - registry-auth-token: 5.0.2 - semantic-release: 22.0.12(typescript@5.5.2) - semver: 7.6.3 - tempy: 3.1.0 - '@semantic-release/release-notes-generator@12.1.0(semantic-release@22.0.12(typescript@5.4.5))': dependencies: conventional-changelog-angular: 7.0.0 @@ -11117,26 +11136,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@semantic-release/release-notes-generator@12.1.0(semantic-release@22.0.12(typescript@5.5.2))': - dependencies: - conventional-changelog-angular: 7.0.0 - conventional-changelog-writer: 7.0.1 - conventional-commits-filter: 4.0.0 - conventional-commits-parser: 5.0.0 - debug: 4.3.5(supports-color@8.1.1) - get-stream: 7.0.1 - import-from-esm: 1.3.4 - into-stream: 7.0.0 - lodash-es: 4.17.21 - read-pkg-up: 11.0.0 - semantic-release: 22.0.12(typescript@5.5.2) - transitivePeerDependencies: - - supports-color - '@serverless/dashboard-plugin@7.2.3(encoding@0.1.13)(supports-color@8.1.1)': dependencies: '@aws-sdk/client-cloudformation': 3.600.0 - '@aws-sdk/client-sts': 3.598.0(@aws-sdk/client-sso-oidc@3.598.0) + '@aws-sdk/client-sts': 3.598.0 '@serverless/event-mocks': 1.1.1 '@serverless/platform-client': 4.5.1(supports-color@8.1.1) '@serverless/utils': 6.15.0(encoding@0.1.13) @@ -13026,15 +13029,6 @@ snapshots: optionalDependencies: typescript: 5.4.5 - cosmiconfig@8.3.6(typescript@5.5.2): - dependencies: - import-fresh: 3.3.0 - js-yaml: 4.1.0 - parse-json: 5.2.0 - path-type: 4.0.0 - optionalDependencies: - typescript: 5.5.2 - cpu-features@0.0.10: dependencies: buildcheck: 0.0.6 @@ -13727,7 +13721,7 @@ snapshots: eslint-config-prettier: 8.10.0(eslint@9.10.0) eslint-import-resolver-typescript: 3.5.5(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint@9.10.0))(eslint@9.10.0) eslint-plugin-cypress: 3.3.0(eslint@9.10.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-import-resolver-typescript@3.5.5)(eslint@9.10.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint@9.10.0))(eslint@9.10.0))(eslint@9.10.0) eslint-plugin-jest: 27.9.0(@typescript-eslint/eslint-plugin@7.14.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint@9.10.0)(typescript@5.6.2))(eslint@9.10.0)(jest@29.7.0(@types/node@20.14.5)(ts-node@10.9.2(@types/node@20.14.5)(typescript@5.5.2)))(typescript@5.6.2) eslint-plugin-react: 7.34.2(eslint@9.10.0) eslint-plugin-react-hooks: 4.6.2(eslint@9.10.0) @@ -13788,7 +13782,7 @@ snapshots: enhanced-resolve: 5.17.1 eslint: 9.10.0 eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint@9.10.0))(eslint@9.10.0))(eslint@9.10.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-import-resolver-typescript@3.5.5)(eslint@9.10.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint@9.10.0))(eslint@9.10.0))(eslint@9.10.0) get-tsconfig: 4.7.5 globby: 13.2.2 is-core-module: 2.13.1 @@ -13859,7 +13853,7 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-import-resolver-typescript@3.5.5)(eslint@9.10.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.14.1(eslint@9.10.0)(typescript@5.6.2))(eslint@9.10.0))(eslint@9.10.0))(eslint@9.10.0): dependencies: array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 @@ -17565,41 +17559,6 @@ snapshots: - supports-color - typescript - semantic-release@22.0.12(typescript@5.5.2): - dependencies: - '@semantic-release/commit-analyzer': 11.1.0(semantic-release@22.0.12(typescript@5.5.2)) - '@semantic-release/error': 4.0.0 - '@semantic-release/github': 9.2.6(semantic-release@22.0.12(typescript@5.5.2)) - '@semantic-release/npm': 11.0.3(semantic-release@22.0.12(typescript@5.5.2)) - '@semantic-release/release-notes-generator': 12.1.0(semantic-release@22.0.12(typescript@5.5.2)) - aggregate-error: 5.0.0 - cosmiconfig: 8.3.6(typescript@5.5.2) - debug: 4.3.5(supports-color@8.1.1) - env-ci: 10.0.0 - execa: 8.0.1 - figures: 6.1.0 - find-versions: 5.1.0 - get-stream: 6.0.1 - git-log-parser: 1.2.0 - hook-std: 3.0.0 - hosted-git-info: 7.0.2 - import-from-esm: 1.3.4 - lodash-es: 4.17.21 - marked: 9.1.6 - marked-terminal: 6.2.0(marked@9.1.6) - micromatch: 4.0.7 - p-each-series: 3.0.0 - p-reduce: 3.0.0 - read-pkg-up: 11.0.0 - resolve-from: 5.0.0 - semver: 7.6.3 - semver-diff: 4.0.0 - signale: 1.4.0 - yargs: 17.7.2 - transitivePeerDependencies: - - supports-color - - typescript - semver-diff@4.0.0: dependencies: semver: 7.6.3 diff --git a/src/cli/configure/dependencies/skubaDeps.ts b/src/cli/configure/dependencies/skubaDeps.ts index d849cdc96..e066ef9d0 100644 --- a/src/cli/configure/dependencies/skubaDeps.ts +++ b/src/cli/configure/dependencies/skubaDeps.ts @@ -16,7 +16,6 @@ const DEV_DEPENDENCIES = [ 'eslint', 'jest', 'prettier', - 'semantic-release', 'ts-jest', 'ts-node', 'tsconfig-seek', diff --git a/src/cli/configure/modules/package.test.ts b/src/cli/configure/modules/package.test.ts index a12a7f3f4..f192cb7e1 100644 --- a/src/cli/configure/modules/package.test.ts +++ b/src/cli/configure/modules/package.test.ts @@ -66,7 +66,7 @@ describe('packageModule', () => { build: 'skuba build-package', format: 'skuba format', lint: 'skuba lint', - release: 'skuba release', + release: 'semantic-release --success false', test: 'skuba test --coverage', 'test:watch': 'skuba test --watch', }, @@ -203,7 +203,7 @@ describe('packageModule', () => { build: 'skuba build-package', format: 'skuba format', lint: 'skuba lint', - release: 'yarn -s build && skuba release', + release: 'yarn -s build && semantic-release --success false', start: 'my-custom-script', test: 'skuba test --coverage', 'test:watch': 'skuba test --watch', diff --git a/src/cli/configure/modules/package.ts b/src/cli/configure/modules/package.ts index 71463c639..51cd6d1ac 100644 --- a/src/cli/configure/modules/package.ts +++ b/src/cli/configure/modules/package.ts @@ -88,13 +88,14 @@ export const packageModule = async ({ outputData.scripts.release = [ outputData.scripts.prepublish, outputData.scripts.prerelease, - outputData.scripts.release ?? 'skuba release', + outputData.scripts.release ?? 'semantic-release --success false', ] .filter((script): script is string => typeof script === 'string') .map((script) => script .replace(/^smt build$/, `${packageManager.runSilent} build`) .replace(/^smt /, 'skuba ') + .replace(/skuba release/, 'semantic-release --success false') .trim(), ) .filter(Boolean) diff --git a/src/cli/release.ts b/src/cli/release.ts deleted file mode 100644 index 58bb87690..000000000 --- a/src/cli/release.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { exec } from '../utils/exec'; - -export const release = async () => { - await exec('semantic-release', '--success', 'false'); -}; diff --git a/src/utils/command.ts b/src/utils/command.ts index b46bb3d8a..af1c6ccf5 100644 --- a/src/utils/command.ts +++ b/src/utils/command.ts @@ -21,7 +21,6 @@ export const COMMAND_LIST = [ 'lint', 'migrate', 'node', - 'release', 'start', 'test', 'version', diff --git a/template/oss-npm-package/_package.json b/template/oss-npm-package/_package.json index e82d960d0..39fd33ca1 100644 --- a/template/oss-npm-package/_package.json +++ b/template/oss-npm-package/_package.json @@ -22,7 +22,7 @@ "commit": "cz", "format": "skuba format", "lint": "skuba lint", - "release": "pnpm --silent build && skuba release", + "release": "pnpm --silent build && semantic-release --success false", "test": "skuba test", "test:ci": "skuba test --coverage", "test:watch": "skuba test --watch" @@ -36,6 +36,7 @@ "devDependencies": { "@types/node": "^18.19.8", "commitizen": "^4.2.4", + "semantic-release": "^24.1.0", "skuba": "*" }, "packageManager": "pnpm@8.9.0", diff --git a/template/private-npm-package/_package.json b/template/private-npm-package/_package.json index 28b173f7d..795fa5dea 100644 --- a/template/private-npm-package/_package.json +++ b/template/private-npm-package/_package.json @@ -22,7 +22,7 @@ "commit": "cz", "format": "skuba format", "lint": "skuba lint", - "release": "pnpm --silent build && skuba release", + "release": "pnpm --silent build && semantic-release --success false", "test": "skuba test --coverage", "test:ci": "pnpm --silent test", "test:watch": "skuba test --watch" @@ -36,10 +36,11 @@ "devDependencies": { "@types/node": "^18.19.8", "commitizen": "^4.2.4", + "semantic-release": "^24.1.0", "skuba": "*" }, "packageManager": "pnpm@8.15.1", "engines": { - "node": ">=18.12" + "node": ">=20.8.1" } }