fix(prisma): ensure prisma doesnt end up in client-side bundles@@ -1,5 +1,5 @@
{
- "_generatedAtUnix": 1668091423088,
+ "_generatedAtUnix": 1668094158826,
"_hashAlgorithm": "sha1",
"_version": 2,
"islands": {
@@ -16,7 +16,7 @@
"pathSourceMap": "./public/.islands/InstantRouterIndicator.bundle.js.map"
},
"PullRequestSourceSelect": {
- "hash": "7639a6f9840bd79911c72c89687f7cd541ca6940",
+ "hash": "bb55a17fb22301a6b68f6fdde02d2d5e4964d5fa",
"pathSource": "./app/islands/PullRequestSourceSelect.tsx",
"pathBundle": "./public/.islands/PullRequestSourceSelect.bundle.js",
"pathSourceMap": "./public/.islands/PullRequestSourceSelect.bundle.js.map"
@@ -58,7 +58,7 @@
"pathSourceMap": "./public/.islands/RepositoryHero.bundle.js.map"
},
"RepositoryInitialSetup": {
- "hash": "8ac1ef808e4d5c92290f7f917654f9668e06902e",
+ "hash": "40f07bcdbd7272ab23645ecaec16883fccb8a194",
"pathSource": "./app/islands/RepositoryInitialSetup.tsx",
"pathBundle": "./public/.islands/RepositoryInitialSetup.bundle.js",
"pathSourceMap": "./public/.islands/RepositoryInitialSetup.bundle.js.map"
@@ -110,7 +110,7 @@
"pathSource": "./app/views/repository/RepositoryCompareView.tsx"
},
"RepositoryCreateView": {
- "hash": "83da3d43e76d51e0615ac1d3e22a27df9c43c584",
+ "hash": "8e132740bf20835739cb136423026814d96a1133",
"pathSource": "./app/views/repository/RepositoryCreateView.tsx"
},
"RepositoryDetailsView": {
@@ -122,7 +122,7 @@
"pathSource": "./app/views/repository/RepositoryExploreView.tsx"
},
"RepositoryForkView": {
- "hash": "03cf6068a1eac864d44ca06a5bd729427ed73e6f",
+ "hash": "e1a0823de0e5ba83b2a2a75e920b2350872025e2",
"pathSource": "./app/views/repository/RepositoryForkView.tsx"
},
"RepositoryShowObjectView": {
@@ -3,7 +3,7 @@ import type { ReactIsland } from "@ethicdevs/react-monolith";
// 3rd-party
import React, { useCallback, useEffect, useMemo, useState } from "react";
// generated via script[generate:prisma]
-import { Organization } from "@prisma/client";
+import type { Organization } from "@prisma/client";
// app
import { RepositoryWithParentAndForkedFromRepos } from "../types";
@@ -4,7 +4,7 @@ import type { ReactIsland } from "@ethicdevs/react-monolith";
import React from "react";
import styled from "styled-components";
// generated via script[generate:prisma]
-import { Repository, User } from "@prisma/client";
+import type { Repository, User } from "@prisma/client";
export interface RepositoryInitialSetupProps {
currentUser: null | User;
@@ -3,7 +3,7 @@ import type { IRouteParams } from "@ethicdevs/react-monolith";
// 3rd-party
import type { FastifySchema } from "fastify";
// generated via script[generate:prisma]
-import { ResourceVisibility } from "@prisma/client";
+import type { ResourceVisibility } from "@prisma/client";
// app
import type { AppThemeScheme } from "./types";
// app islands DTO's
@@ -516,7 +516,7 @@ export const AppRoutesSchemas: Record<AppRoute, undefined | FastifySchema> = {
},
repo_visibility: {
type: "string",
- enum: Object.values(ResourceVisibility),
+ enum: ["PUBLIC", "UNLISTED", "PRIVATE"],
},
repo_website_url: {
type: "string",
@@ -591,7 +591,7 @@ export const AppRoutesSchemas: Record<AppRoute, undefined | FastifySchema> = {
},
target_repo_visibility: {
type: "string",
- enum: Object.values(ResourceVisibility),
+ enum: ["PUBLIC", "UNLISTED", "PRIVATE"],
},
},
},
@@ -3,7 +3,7 @@ import type { ReactView } from "@ethicdevs/react-monolith";
// 3rd-party
import React from "react";
// generated via script[generate:prisma]
-import { Organization } from "@prisma/client";
+import type { Organization } from "@prisma/client";
// app
import type { CommonProps } from "../../types";
import { AppRoute } from "../../routes.defs";
@@ -3,7 +3,7 @@ import type { ReactView } from "@ethicdevs/react-monolith";
// 3rd-party
import React from "react";
// generated via script[generate:prisma]
-import { Organization, ResourceVisibility } from "@prisma/client";
+import type { Organization, ResourceVisibility } from "@prisma/client";
// app
import type { CommonProps, RepositoryWithForkedFromRepo } from "../../types";
import { AppRoute } from "../../routes.defs";