Skip to content

Commit 41d2660

Browse files
committed
Release 0.13.20
1 parent ae25190 commit 41d2660

14 files changed

Lines changed: 33 additions & 37 deletions

bin/build

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ node_modules/.bin/tsc \
1717
src/index.js
1818

1919
# Fix the generated types
20-
sedi=(-i)
21-
[ "$(uname)" == 'Darwin' ] && sedi=(-i '')
22-
sed "${sedi[@]}" \
23-
-e 's/#src\(.*\).js/#types\1.d.ts/' \
24-
-e 's/^export {/export type {/' \
25-
types/*.d.ts
20+
sed -i.bak -e 's/#src/#types/' types/*.d.ts
21+
rm types/*.bak
2622

2723
node_modules/.bin/tsc || true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pave",
33
"type": "module",
4-
"version": "0.13.19",
4+
"version": "0.13.20",
55
"author": "Casey Foster <c@sey.me>",
66
"license": "MIT",
77
"repository": {

types/cache-execute.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ export function cacheExecute({ cache, key, query }: {
55
key?: string;
66
query: Query;
77
}): any;
8-
import type { Query } from '#types/index.d.ts';
8+
import type { Query } from '#types/index.js';

types/create-client.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ export type Watcher = {
4747
onChange: (data: any) => void;
4848
query?: Query;
4949
};
50-
import type { Query } from '#types/index.d.ts';
50+
import type { Query } from '#types/index.js';

types/execute.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export function execute({ context, object, path, query, schema, type, value }: {
77
type: Type;
88
value?: any;
99
}): Promise<any>;
10-
import type { Query } from '#types/index.d.ts';
11-
import type { Schema } from '#types/index.d.ts';
12-
import type { Type } from '#types/index.d.ts';
10+
import type { Query } from '#types/index.js';
11+
import type { Schema } from '#types/index.js';
12+
import type { Type } from '#types/index.js';

types/get-query-cost.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export function getQueryCost<Context = any>({ context, path, query, schema, type
55
schema: Schema<string, {}, any>;
66
type: Type;
77
}): any;
8-
import type { Query } from '#types/index.d.ts';
9-
import type { Schema } from '#types/index.d.ts';
10-
import type { Type } from '#types/index.d.ts';
8+
import type { Query } from '#types/index.js';
9+
import type { Schema } from '#types/index.js';
10+
import type { Type } from '#types/index.js';

types/index.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
export type { Context } from "#types/context.d.ts";
2-
export type { createClient } from "#types/create-client.d.ts";
3-
export type { execute } from "#types/execute.d.ts";
4-
export type { getQueryCost } from "#types/get-query-cost.d.ts";
5-
export type { injectType } from "#types/inject-type.d.ts";
6-
export type { levenshtein } from "#types/levenshtein.d.ts";
7-
export type { mergeRefs } from "#types/merge-refs.d.ts";
8-
export type { PaveError } from "#types/pave-error.d.ts";
9-
export type { validateQuery } from "#types/validate-query.d.ts";
10-
export type { validateSchema } from "#types/validate-schema.d.ts";
11-
export type { validateValue } from "#types/validate-value.d.ts";
1+
export { Context } from "#types/context.js";
2+
export { createClient } from "#types/create-client.js";
3+
export { execute } from "#types/execute.js";
4+
export { getQueryCost } from "#types/get-query-cost.js";
5+
export { injectType } from "#types/inject-type.js";
6+
export { levenshtein } from "#types/levenshtein.js";
7+
export { mergeRefs } from "#types/merge-refs.js";
8+
export { PaveError } from "#types/pave-error.js";
9+
export { validateQuery } from "#types/validate-query.js";
10+
export { validateSchema } from "#types/validate-schema.js";
11+
export { validateValue } from "#types/validate-value.js";
1212
export type Query<T = any> = {
1313
_?: string;
1414
$?: any;

types/inject-type.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export function injectType<T extends Query>(query: T): T;
2-
import type { Query } from '#types/index.d.ts';
2+
import type { Query } from '#types/index.js';

types/normalize-key.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ export function normalizeKey({ alias, query: { _, $ } }: {
22
alias: string;
33
query: Query;
44
}): string;
5-
import type { Query } from '#types/index.d.ts';
5+
import type { Query } from '#types/index.js';

types/normalize-root.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export function normalizeRoot({ query: { $ } }: {
22
query: Query;
33
}): string;
4-
import type { Query } from '#types/index.d.ts';
4+
import type { Query } from '#types/index.js';

0 commit comments

Comments
 (0)