Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svelte-kit package #1499

Merged
merged 14 commits into from
May 24, 2021
Prev Previous commit
Next Next commit
improve error message
  • Loading branch information
Rich-Harris committed May 21, 2021
commit 3e66d9d74ab26cdc8e5d25ba5363fe5567751e87
3 changes: 2 additions & 1 deletion packages/kit/src/core/make_package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export async function make_package(config, cwd = process.cwd()) {
: source;
} else if (ext === '.ts' && !file.endsWith('.d.ts')) {
// TODO transpile TS file and emit types
throw new Error('TODO transpile TS and emit types');
// also, we want to emit types from JSDoc annotations in .js files
throw new Error('svelte-kit package does not yet support TypeScript');
} else {
out_file = file;
out_contents = source;
Expand Down