Skip to content

Commit

Permalink
fix(sample): bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Dec 29, 2023
1 parent 386db99 commit 85e3914
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Config example:
"group": [
{
"cwd": ".",
"pattern": ["."],
"pattern": ["**/*"],
"extensions": ["js", "ts", "..."],
"ignore": ["dist"],
"title": "示例软件名称",
Expand Down
2 changes: 1 addition & 1 deletion packages/sample/lib/lib/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function mergeConfig(group = [{}]) {
title = '示例软件名称',
version = 'v1.0',
cwd = '.',
pattern = ['.'],
pattern = ['**/*'],
ignore = ['dist'],
extensions = [
['js', 'cjs', 'mjs', 'jsx'],
Expand Down
11 changes: 10 additions & 1 deletion packages/sample/lib/lib/picker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,17 @@ export function scan(config) {
gitignore: true,
onlyFiles: true,
dot: true,
caseSensitiveMatch: false,
expandDirectories: {
extensions: config.extensions,
},
}).then((list) => list.sort());
})
.then((list) => list.sort())
.then((list) => {
for (const item of list) {
logger.file(item);
}

return list;
});
}
2 changes: 1 addition & 1 deletion packages/sample/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bring-it/sample",
"version": "0.4.1",
"version": "0.4.2",
"description": "Generate code sample files",
"license": "MIT",
"author": {
Expand Down

0 comments on commit 85e3914

Please sign in to comment.