Closed mrseanryan closed 1 year ago
Add support for js index file
issue = #219
a shortcut would be to try treating index.js as it were index.ts but this seems a hack
index.js
index.ts
should probably only consider .js files, if --allowJs was specified ?
--allowJs
could scan JS files for imports. but that issue actually has TypeScript inside the .js ....
question: how is the index.js actually executed, given that it contains TypeScript?
npx tsc --allowJs
works but does NOT copy over index.js
Add support for js index file
issue = #219
Supporting .js files:
a shortcut would be to try treating
index.js
as it wereindex.ts
but this seems a hackshould probably only consider .js files, if
--allowJs
was specified ?could scan JS files for imports. but that issue actually has TypeScript inside the .js ....
Building the js/ts project:
question: how is the
index.js
actually executed, given that it contains TypeScript?works but does NOT copy over
index.js