Skip to content

Commit 205a03e

Browse files
Don't rely on CWD in makefile, and use Mocha macro
1 parent 0b2b44a commit 205a03e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
PATH := node_modules/.bin:$(PATH)
2-
SASSDOC = bin/sassdoc
3-
MOCHA = node_modules/.bin/_mocha
4-
TO5_FLAGS = --experimental
1+
PATH := $(PWD)/node_modules/.bin:$(PATH)
2+
SASSDOC := $(PWD)/bin/sassdoc
3+
MOCHA := $(PWD)/node_modules/.bin/_mocha
4+
TO5_FLAGS := --experimental
55

66
all: dist lint test
77

@@ -21,7 +21,7 @@ lint: .jshintrc
2121
test: test/data/expected.stream.json dist
2222
mocha test/annotations/*.test.js
2323
mocha test/env/*.test.js test/utils/*.test.js
24-
rm -rf sassdoc && mocha test/api/*.test.js
24+
rm -rf sassdoc && $(MOCHA) test/api/*.test.js
2525
$(SASSDOC) --parse test/data/test.scss | diff - test/data/expected.json
2626
$(SASSDOC) --parse < test/data/test.scss | diff - test/data/expected.stream.json
2727
rm -rf sassdoc && $(SASSDOC) test/data/test.scss && [ -d sassdoc ]

0 commit comments

Comments
 (0)