Skip to content

Commit d34938d

Browse files
committed
update imports to js so it actually resolves
1 parent 900d4fc commit d34938d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/lib/command-form/command-form.svelte.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { isHttpError } from '@sveltejs/kit';
33
import { invalidate, invalidateAll } from '$app/navigation';
44
import type { StandardSchemaV1 } from '@standard-schema/spec';
55
import type { HttpError } from '@sveltejs/kit';
6-
import { transformIssues } from '../helpers/transform-issues.ts';
7-
import type { CommandFormErrors, CommandFormOptions } from '../types/command-form.types.ts';
8-
import { SchemaValidationError, standardValidate, type SchemaIssues } from '../helpers/standard-validate.ts';
6+
import { transformIssues } from '../helpers/transform-issues.js';
7+
import type { CommandFormErrors, CommandFormOptions } from '../types/command-form.types.js';
8+
import { SchemaValidationError, standardValidate, type SchemaIssues } from '../helpers/standard-validate.js';
99

1010
type SchemaData<Schema extends StandardSchemaV1> = StandardSchemaV1.InferOutput<Schema>;
1111

src/lib/helpers/transform-issues.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { StandardSchemaV1 } from '@standard-schema/spec';
2-
import type { RemoteFunctionIssue } from '../types/command-form.types.ts';
2+
import type { RemoteFunctionIssue } from '../types/command-form.types.js';
33

44
function transformIssues(
55
issues?: ReadonlyArray<StandardSchemaV1.Issue>

src/lib/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export { CommandForm } from './command-form/command-form.svelte.ts';
2-
export type { CommandFormOptions, CommandFormErrors, RemoteCommand, RemoteFunctionIssue } from './types/command-form.types.ts';
3-
export { normalizeFiles } from './command-form/normalize-files.ts';
4-
export { standardValidate, SchemaValidationError } from './helpers/standard-validate.ts';
5-
export type { SchemaIssues } from './helpers/standard-validate.ts';
6-
export { transformIssues } from './helpers/transform-issues.ts';
1+
export { CommandForm } from './command-form/command-form.svelte.js';
2+
export type { CommandFormOptions, CommandFormErrors, RemoteCommand, RemoteFunctionIssue } from './types/command-form.types.js';
3+
export { normalizeFiles } from './command-form/normalize-files.js';
4+
export { standardValidate, SchemaValidationError } from './helpers/standard-validate.js';
5+
export type { SchemaIssues } from './helpers/standard-validate.js';
6+
export { transformIssues } from './helpers/transform-issues.js';

0 commit comments

Comments
 (0)