toriya 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +3 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toriya",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/index.js CHANGED
@@ -203,14 +203,9 @@ async function main() {
203
203
  error("Please specify a component name");
204
204
  }
205
205
  const components = process.argv.slice(3);
206
- if (components.length === 0 && arg) {
207
- await add(cwd, arg);
208
- } else {
209
- // Serial execution to avoid race conditions on dependencies
210
- await add(cwd, arg);
211
- for (const c of components) {
212
- await add(cwd, c);
213
- }
206
+ // Serial execution to avoid race conditions on dependencies
207
+ for (const c of components) {
208
+ await add(cwd, c);
214
209
  }
215
210
  break;
216
211
  case "list":