Skip to content

Commit 05c010e

Browse files
authored
chore!: drop support of end-of-life node releases (8, 11, 13) (#6052)
1 parent 66a87f2 commit 05c010e

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

packages/@vue/cli-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@
120120
"access": "public"
121121
},
122122
"engines": {
123-
"node": ">=8"
123+
"node": "^10.12.0 || ^12.0.0 || >= 14.0.0"
124124
}
125125
}

packages/@vue/cli-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"license": "MIT",
115115
"author": "Guillaume Chau",
116116
"engines": {
117-
"node": ">=8"
117+
"node": "^10.12.0 || ^12.0.0 || >= 14.0.0"
118118
},
119119
"publishConfig": {
120120
"access": "public"

packages/@vue/cli/lib/Creator.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const {
2828
const {
2929
chalk,
3030
execa,
31-
semver,
3231

3332
log,
3433
warn,
@@ -186,15 +185,6 @@ module.exports = class Creator extends EventEmitter {
186185
})
187186
}
188187

189-
if (packageManager === 'yarn' && semver.satisfies(process.version, '8.x')) {
190-
// Vue CLI 4.x should support Node 8.x,
191-
// but some dependenices already bumped `engines` field to Node 10
192-
// and Yarn treats `engines` field too strictly
193-
await writeFileTree(context, {
194-
'.yarnrc': '# Hotfix for Node 8.x\n--install.ignore-engines true\n'
195-
})
196-
}
197-
198188
// intilaize git repository before installing deps
199189
// so that vue-cli-service can setup git hooks.
200190
const shouldInitGit = this.shouldInitGit(cliOptions)

packages/@vue/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@
6262
"yaml-front-matter": "^4.1.0"
6363
},
6464
"engines": {
65-
"node": ">=8.9"
65+
"node": "^10.12.0 || ^12.0.0 || >= 14.0.0"
6666
}
6767
}

0 commit comments

Comments
 (0)