Open
Description
Version
3.2.1
Reproduction link
https://github.com/bodograumann/vue-cli-generator-api-entry-file-bug.git
Node and OS info
Node v8.12.0 / npm 6.4.1 / Linux 4.17.19-gentoo
Steps to reproduce
git clone https://github.com/bodograumann/vue-cli-generator-api-entry-file-bug.git
vue create --preset ./vue-cli-generator-api-entry-file-bug test
What is expected?
The output contains GeneratorAPI.entryFile
before and after @vue/cli-plugin-typescript
is installed. First that is src/main.js
and later src/main.ts
. So it should say:
π Invoking generators...
src/main.js
π¦ Installing additional dependencies...
added 24 packages from 22 contributors, updated 2 packages, moved 5 packages and audited 13467 packages in 9.837s
found 0 vulnerabilities
β Running completion hooks...src/main.ts
What is actually happening?
Both times src/main.js
is returned, because the first value is cached. If the first call to GeneratorAPI.entryFile
is removed though, the remaining call will return the correct value src/main.ts
.