Skip to content

chore!: drop support of end-of-life node releases (8, 11, 13) #6052

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@
"access": "public"
},
"engines": {
"node": ">=8"
"node": "^10.12.0 || ^12.0.0 || >= 14.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/@vue/cli-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"license": "MIT",
"author": "Guillaume Chau",
"engines": {
"node": ">=8"
"node": "^10.12.0 || ^12.0.0 || >= 14.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
10 changes: 0 additions & 10 deletions packages/@vue/cli/lib/Creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const {
const {
chalk,
execa,
semver,

log,
warn,
Expand Down Expand Up @@ -186,15 +185,6 @@ module.exports = class Creator extends EventEmitter {
})
}

if (packageManager === 'yarn' && semver.satisfies(process.version, '8.x')) {
// Vue CLI 4.x should support Node 8.x,
// but some dependenices already bumped `engines` field to Node 10
// and Yarn treats `engines` field too strictly
await writeFileTree(context, {
'.yarnrc': '# Hotfix for Node 8.x\n--install.ignore-engines true\n'
})
}

// intilaize git repository before installing deps
// so that vue-cli-service can setup git hooks.
const shouldInitGit = this.shouldInitGit(cliOptions)
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
"yaml-front-matter": "^3.4.1"
},
"engines": {
"node": ">=8.9"
"node": "^10.12.0 || ^12.0.0 || >= 14.0.0"
}
}