Skip to content

Commit 42a3e74

Browse files
authored
refactor(init)!: remove --assume-fresh-project (#4649)
1 parent 4e855d4 commit 42a3e74

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

.yarn/versions/dab3d358.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
releases:
2+
"@yarnpkg/cli": major
3+
"@yarnpkg/plugin-init": major
4+
5+
declined:
6+
- "@yarnpkg/plugin-compat"
7+
- "@yarnpkg/plugin-constraints"
8+
- "@yarnpkg/plugin-dlx"
9+
- "@yarnpkg/plugin-essentials"
10+
- "@yarnpkg/plugin-interactive-tools"
11+
- "@yarnpkg/plugin-nm"
12+
- "@yarnpkg/plugin-npm-cli"
13+
- "@yarnpkg/plugin-pack"
14+
- "@yarnpkg/plugin-patch"
15+
- "@yarnpkg/plugin-pnp"
16+
- "@yarnpkg/plugin-pnpm"
17+
- "@yarnpkg/plugin-stage"
18+
- "@yarnpkg/plugin-typescript"
19+
- "@yarnpkg/plugin-version"
20+
- "@yarnpkg/plugin-workspace-tools"
21+
- "@yarnpkg/builder"
22+
- "@yarnpkg/core"
23+
- "@yarnpkg/doctor"

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Yarn now accepts sponsorships! Please give a look at our [OpenCollective](https:
2020
- Set `nmMode` to `hardlinks-local` by default.
2121
- `yarn workspaces foreach` now automatically enables the `-v,--verbose` flag in interactive terminal environments.
2222
- `yarn npm audit` no longer takes into account publish registries. Use [`npmAuditRegistry`](https://yarnpkg.com/configuration/yarnrc#npmAuditRegistry) instead.
23+
- The `--assume-fresh-project` flag of `yarn init` has been removed. Should only affect people initializing Yarn 4+ projects using a Yarn 2 binary.
2324

2425
### **API Changes**
2526

packages/plugin-init/sources/commands/init.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ export default class InitCommand extends BaseCommand {
5656
usev2 = Option.Boolean(`-2`, false, {hidden: true});
5757
yes = Option.Boolean(`-y,--yes`, {hidden: true});
5858

59-
// Deprecated; doesn't have any effect anymore, but we can't remove it for
60-
// some time as it has some risks of breaking a few special setups.
61-
// TODO: Remove it in 4.x.
62-
assumeFreshProject = Option.Boolean(`--assume-fresh-project`, false, {hidden: true});
63-
6459
async execute() {
6560
const configuration = await Configuration.find(this.context.cwd, this.context.plugins);
6661

0 commit comments

Comments
 (0)