@boltapp/bolt-app-db 0.0.12 → 0.0.14

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 { relations } from "drizzle-orm";
2
2
  import { index, integer, sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
3
3
  import { nanoid } from "nanoid";
4
- import { boltProjects } from "./project-schema";
4
+ import { boltProjects } from "./project-schema.js";
5
5
  export const boltApps = sqliteTable("bolt_apps", {
6
6
  id: text()
7
7
  .primaryKey()
@@ -1,7 +1,7 @@
1
1
  import { relations } from "drizzle-orm";
2
2
  import { index, integer, sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
3
3
  import { nanoid } from "nanoid";
4
- import { boltApps } from "./app-schema";
4
+ import { boltApps } from "./app-schema.js";
5
5
  export const boltDataStores = sqliteTable("bolt_data_stores", {
6
6
  id: text()
7
7
  .primaryKey()
@@ -1,7 +1,7 @@
1
1
  import { relations } from "drizzle-orm";
2
2
  import { index, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
3
3
  import { nanoid } from "nanoid";
4
- import { boltApps } from "./app-schema";
4
+ import { boltApps } from "./app-schema.js";
5
5
  export const boltFiles = sqliteTable("bolt_files", {
6
6
  id: text()
7
7
  .primaryKey()
@@ -1,5 +1,5 @@
1
- export * from "./app-schema";
2
- export * from "./data-store-schema";
3
- export * from "./file-schema";
4
- export * from "./project-schema";
5
- export * from "./table-schema";
1
+ export * from "./app-schema.js";
2
+ export * from "./data-store-schema.js";
3
+ export * from "./file-schema.js";
4
+ export * from "./project-schema.js";
5
+ export * from "./table-schema.js";
@@ -1,5 +1,5 @@
1
- export * from "./app-schema";
2
- export * from "./data-store-schema";
3
- export * from "./file-schema";
4
- export * from "./project-schema";
5
- export * from "./table-schema";
1
+ export * from "./app-schema.js";
2
+ export * from "./data-store-schema.js";
3
+ export * from "./file-schema.js";
4
+ export * from "./project-schema.js";
5
+ export * from "./table-schema.js";
@@ -3,7 +3,7 @@ import { ACTION_TYPES } from "@boltapp/bolt-core/data-table/table-action-schemas
3
3
  import { relations } from "drizzle-orm";
4
4
  import { index, integer, sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
5
5
  import { nanoid } from "nanoid";
6
- import { boltProjects } from "./project-schema";
6
+ import { boltProjects } from "./project-schema.js";
7
7
  export const boltTables = sqliteTable("bolt_tables", {
8
8
  id: text()
9
9
  .primaryKey()
@@ -1,7 +1,7 @@
1
1
  import { relations } from "drizzle-orm";
2
2
  import { index, jsonb, pgTable, text, timestamp, uniqueIndex } from "drizzle-orm/pg-core";
3
3
  import { nanoid } from "nanoid";
4
- import { apps } from "./schema";
4
+ import { apps } from "./schema.js";
5
5
  export const boltDataStores = pgTable("bolt_data_stores", {
6
6
  id: text("id")
7
7
  .primaryKey()
@@ -3,7 +3,7 @@ import { ACTION_TYPES } from "@boltapp/bolt-core/data-table/table-action-schemas
3
3
  import { relations } from "drizzle-orm";
4
4
  import { boolean, index, integer, jsonb, pgEnum, pgTable, serial, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
5
5
  import { nanoid } from "nanoid";
6
- import { projects } from "./schema";
6
+ import { projects } from "./schema.js";
7
7
  export const boltTableDisplayEnum = pgEnum("bolt_table_display", TABLE_VIEW_DISPLAY_TYPES);
8
8
  export const boltTableOpSourceEnum = pgEnum("bolt_table_op_source", ["client", "api", "server"]);
9
9
  export const boltTableOpTypeEnum = pgEnum("bolt_table_op_type", ACTION_TYPES);
@@ -1,7 +1,7 @@
1
1
  import { relations } from "drizzle-orm";
2
2
  import { index, integer, pgTable, text, timestamp } from "drizzle-orm/pg-core";
3
3
  import { nanoid } from "nanoid";
4
- import { apps } from "./schema";
4
+ import { apps } from "./schema.js";
5
5
  export const boltFiles = pgTable("bolt_files", {
6
6
  id: text("id")
7
7
  .primaryKey()
@@ -1,4 +1,4 @@
1
- export * from "./data-store-schemas";
2
- export * from "./data-table-schemas";
3
- export * from "./file-schemas";
4
- export * from "./schema";
1
+ export * from "./data-store-schemas.js";
2
+ export * from "./data-table-schemas.js";
3
+ export * from "./file-schemas.js";
4
+ export * from "./schema.js";
@@ -1,4 +1,4 @@
1
- export * from "./data-store-schemas";
2
- export * from "./data-table-schemas";
3
- export * from "./file-schemas";
4
- export * from "./schema";
1
+ export * from "./data-store-schemas.js";
2
+ export * from "./data-table-schemas.js";
3
+ export * from "./file-schemas.js";
4
+ export * from "./schema.js";
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * as clientSchema from "./client/schema";
2
- export * as cloudAppSchema from "./cloud-app/schema";
1
+ export * as clientSchema from "./client/schema/index.js";
2
+ export * as cloudAppSchema from "./cloud-app/schema/index.js";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * as clientSchema from "./client/schema";
2
- export * as cloudAppSchema from "./cloud-app/schema";
1
+ export * as clientSchema from "./client/schema/index.js";
2
+ export * as cloudAppSchema from "./cloud-app/schema/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boltapp/bolt-app-db",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "scripts": {
13
13
  "dev": "echo 'Add dev script here'",
14
- "build": "tsc -p tsconfig.json",
14
+ "build": "node -e \"const fs=require('fs');fs.rmSync('dist',{recursive:true,force:true});fs.rmSync('tsconfig.tsbuildinfo',{force:true});\" && tsc -p tsconfig.json && tsc-alias -p tsconfig.json --resolve-full-paths --resolve-full-extension .js && tsc-esm-fix --target=dist --ext=.js --dirnameVar=false --filenameVar=false",
15
15
  "prepack": "pnpm build",
16
16
  "test": "echo 'Add test script here'",
17
17
  "lint": "echo 'Add lint script here'",
@@ -39,7 +39,7 @@
39
39
  "./package.json": "./package.json"
40
40
  },
41
41
  "dependencies": {
42
- "@boltapp/bolt-core": "npm:@boltapp/bolt-core@0.0.11",
42
+ "@boltapp/bolt-core": "npm:@boltapp/bolt-core@0.0.13",
43
43
  "drizzle-orm": "^0.44.4",
44
44
  "nanoid": "^5.1.5"
45
45
  },
@@ -47,6 +47,7 @@
47
47
  "@workspace/eslint-config": "workspace:*",
48
48
  "@workspace/typescript-config": "workspace:*",
49
49
  "tsc-alias": "^1.8.16",
50
+ "tsc-esm-fix": "^3.1.2",
50
51
  "typescript": "^5.9.3"
51
52
  }
52
53
  }