dojo / dojo/cli-build-widget

Dojo build widget command only output the last one widget when widgets that in different folders has the same name

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6
Forks
17
PR merge metrics
No merged PRs in 30d

Description

## bug

In https://github.com/xiaohulu/cli-build-widget-demo, there are two widgets with the same name but place at different folders, like below:

![image](https://user-images.githubusercontent.com/624517/72133953-a9461780-33bd-11ea-8277-5982406cd564.png)

The two widgets are all config at `.dojorc`

```text
{
"build-widget": {
"widgets": [
"src/a/MyWidget.tsx",
"src/b/MyWidget.tsx"
]
}
}
```

Then run `dojo build widget --mode dist --target lib`, the build result only contains `output/dist/b/MyWidget.*`, not contains `/a/MyWidget.*` files.

![image](https://user-images.githubusercontent.com/624517/72134225-6cc6eb80-33be-11ea-94ad-19142bf45fdb.png)

The code place at https://github.com/xiaohulu/cli-build-widget-demo.

Version: 6.0.2

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.