Skip to content

Commit 38e4fc0

Browse files
author
Eric Wendelin
committed
Make sure to include direct dependencies in distributed js.
1 parent 1c38bf7 commit 38e4fc0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ minified := $(sources:%.js=%.min.js)
66
source_map := $(sources:%.js=%.js.map)
77
specs := $(wildcard spec/*-spec.js)
88
build_files := build/jshint.xml
9+
direct_dependencies := node_modules/stackframe/dist/stackframe.min.js
910
coveralls := node_modules/coveralls/bin/coveralls.js
1011

1112
build/jshint.xml: $(sources) $(specs)
@@ -24,9 +25,9 @@ test-ci: $(build_files)
2425
clean:
2526
rm -fr build coverage dist *.log
2627

27-
dist: $(build_files) $(sources)
28+
dist: $(build_files) $(sources) $(direct_dependencies)
2829
mkdir $@
29-
uglifyjs2 $(sources) -o $(minified) --source-map $(source_map)
30+
uglifyjs2 $(direct_dependencies) $(sources) -o $(minified) --source-map $(source_map)
3031
mv $(minified) $(source_map) $@
3132
cp $(sources) $@
3233

dist/error-stack-parser.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/error-stack-parser.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)