@syncular/typegen 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { mkdir, writeFile } from 'node:fs/promises';
2
2
  import { dirname, resolve } from 'node:path';
3
3
  import { fileURLToPath, pathToFileURL } from 'node:url';
4
- import { introspectCurrentSchema } from './introspect';
4
+ import { introspectCurrentSchema } from './introspect.js';
5
5
  export function defineSyncularClient(options) {
6
6
  return {
7
7
  ...options,
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { readFile } from 'node:fs/promises';
3
3
  import { dirname, join } from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
5
- import { loadSyncularClientContract, toSyncularCodegenJson, writeSyncularCodegenJsonFromModule, } from './app-contract';
5
+ import { loadSyncularClientContract, toSyncularCodegenJson, writeSyncularCodegenJsonFromModule, } from './app-contract.js';
6
6
  async function main(argv) {
7
7
  const command = argv[0];
8
8
  if (command !== 'codegen-config') {
package/dist/generate.js CHANGED
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import { mkdir, writeFile } from 'node:fs/promises';
5
5
  import { dirname } from 'node:path';
6
- import { introspectAllVersions, introspectCurrentSchema } from './introspect';
7
- import { resolveColumnType } from './map-types';
8
- import { renderTypes } from './render';
6
+ import { introspectAllVersions, introspectCurrentSchema } from './introspect.js';
7
+ import { resolveColumnType } from './map-types.js';
8
+ import { renderTypes } from './render.js';
9
9
  /**
10
10
  * Apply type mapping to all columns in the schemas.
11
11
  * Returns the schemas with tsType filled in and any custom imports collected.
package/dist/index.js CHANGED
@@ -6,11 +6,11 @@
6
6
  * 2. Introspecting the resulting schema
7
7
  * 3. Generating TypeScript interfaces
8
8
  */
9
- export * from './app-contract';
10
- export * from './checksums';
11
- export * from './generate';
12
- export * from './introspect';
13
- export * from './map-types';
14
- export * from './render';
15
- export * from './types';
9
+ export * from './app-contract.js';
10
+ export * from './checksums.js';
11
+ export * from './generate.js';
12
+ export * from './introspect.js';
13
+ export * from './map-types.js';
14
+ export * from './render.js';
15
+ export * from './types.js';
16
16
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @syncular/typegen - Schema introspection dispatcher
3
3
  */
4
- import { introspectPostgresAllVersions, introspectPostgresCurrentSchema, } from './introspect-postgres';
5
- import { introspectSqliteAllVersions, introspectSqliteCurrentSchema, } from './introspect-sqlite';
4
+ import { introspectPostgresAllVersions, introspectPostgresCurrentSchema, } from './introspect-postgres.js';
5
+ import { introspectSqliteAllVersions, introspectSqliteCurrentSchema, } from './introspect-sqlite.js';
6
6
  export async function introspectAllVersions(migrations, dialect, filterTables) {
7
7
  if (dialect === 'postgres') {
8
8
  return introspectPostgresAllVersions(migrations, filterTables);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/typegen",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TypeScript type generator for Syncular schemas",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Benjamin Kniffler",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@electric-sql/pglite": "^0.3.15",
50
- "@syncular/migrations": "workspace:*",
50
+ "@syncular/migrations": "0.1.1",
51
51
  "better-sqlite3": "^12.8.0",
52
52
  "kysely-bun-sqlite": "^0.4.0",
53
53
  "kysely-pglite-dialect": "^1.2.0"
@@ -56,7 +56,7 @@
56
56
  "kysely": "^0.28.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@syncular/config": "workspace:*",
59
+ "@syncular/config": "0.0.0",
60
60
  "@types/better-sqlite3": "^7.6.13",
61
61
  "kysely": "*"
62
62
  },