Skip to content

Commit 82ceb65

Browse files
committed
fix makefile, always resolve .out to process.cwd()
1 parent 6e0ded9 commit 82ceb65

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ NODE ?= node
33
SRC = $(shell find lib -name "*.js")
44
BUILD = $(subst lib,build,$(SRC))
55

6-
build:
7-
@mkdir -p build/remotes
8-
@$(MAKE) $(BUILD)
6+
build: $(BUILD)
97

108
build/%.js: lib/%.js
9+
@mkdir -p build/remotes
1110
@$(BIN)regenerator --include-runtime $< > $@
1211

1312
clean:

lib/remotes/local.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ function Local(options) {
2222

2323
options = options || {}
2424

25-
this.out = resolve(options.root || process.cwd(), options.out || options.dir || 'components')
25+
this.out = resolve(options.out
26+
|| options.dir
27+
|| 'components')
2628
debug('checking local components at %s', this.out);
2729

2830
Remote.call(this, options)

0 commit comments

Comments
 (0)