Skip to content

Commit

Permalink
Do not include js files in TS compilation
Browse files Browse the repository at this point in the history
problem:
in compilation tsc removes blank lines from the file
this causes problem in debugging and mapping with IDEs

microsoft/TypeScript#843

Signed-off-by: Pranam Lashkari <[email protected]>
Change-Id: Ie2df89ba09597a34aca9221bf082b1f2df3c7d07
  • Loading branch information
lpranam committed Jun 1, 2021
1 parent c983a65 commit 4eba3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loleaflet/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ $(DIST_FOLDER)/welcome/%.html: $(srcdir)/welcome/%.html
fi

tscompile.done: $(LOLEAFLET_JS_SRC) $(LOLEAFLET_TS_SRC)
$(builddir)/node_modules/typescript/bin/tsc --typeRoots $(builddir)/node_modules/@types --outDir $(DIST_FOLDER)/src --rootDir $(srcdir)/src --allowJs true --checkJs false --project $(srcdir)/tsconfig.json
$(builddir)/node_modules/typescript/bin/tsc --typeRoots $(builddir)/node_modules/@types --outDir $(DIST_FOLDER)/src --rootDir $(srcdir)/src --checkJs false --project $(srcdir)/tsconfig.json
@touch $@

$(LOLEAFLET_TS_JS_DST): tscompile.done
Expand Down

0 comments on commit 4eba3fd

Please sign in to comment.