Skip to content

Commit 451f3d2

Browse files
authored
feat: make globby includes dot files (#5537)
https://cli.vuejs.org/dev-guide/plugin-dev.html#filename-edge-cases Although in this passage, it is suggested that we should change ".env" to "_env" to solve the problem of uploading npm packages. But there will also be such a demand, the files in `generator/template` are dynamically pulled from the git repository at runtime, and there may be `.env` files in the repository, so this pr can solve the problem here
1 parent dc4c455 commit 451f3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class GeneratorAPI {
283283
this._injectFileMiddleware(async (files) => {
284284
const data = this._resolveData(additionalData)
285285
const globby = require('globby')
286-
const _files = await globby(['**/*'], { cwd: source })
286+
const _files = await globby(['**/*'], { cwd: source, dot: true })
287287
for (const rawPath of _files) {
288288
const targetPath = rawPath.split('/').map(filename => {
289289
// dotfiles are ignored when published to npm, therefore in templates

0 commit comments

Comments
 (0)