create-monolayer-app 0.2.1 → 0.2.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-monolayer-app",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "CLI to scaffold a new Monolayer application",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,27 @@
1
+ import path from "node:path";
2
+ import { cwd } from "node:process";
3
+
4
+ import { defineConfig, TSFileMigrationProvider } from "kysely-ctl";
5
+ import { Migrator } from "kysely/migration";
6
+
7
+ import { db } from "./../lib/db/client.js";
8
+
9
+ export default defineConfig({
10
+ // @ts-expect-error type mismatch
11
+ kysely: db,
12
+ migrations: {
13
+ migrator: () =>
14
+ new Migrator({
15
+ disableTransactions: true,
16
+ // @ts-expect-error type mismatch
17
+ db,
18
+ provider: new TSFileMigrationProvider({
19
+ migrationFolder: path.join(cwd(), "./lib/db/migrations"),
20
+ filesystemCaching: false,
21
+ }),
22
+ }),
23
+ },
24
+ seeds: {
25
+ seedFolder: "seeds",
26
+ },
27
+ });