chore(server): run TS files directly (no compilation) (#5134)
* sort of works * type fixes * added option to run old way too
This commit is contained in:
committed by
GitHub
parent
e34a44bf66
commit
4b06f42db7
@@ -1,21 +1,21 @@
|
||||
import {
|
||||
import type {
|
||||
GetStreamBranchByName,
|
||||
StoreBranch
|
||||
} from '@/modules/core/domain/branches/operations'
|
||||
import { VersionEvents } from '@/modules/core/domain/commits/events'
|
||||
import {
|
||||
import type {
|
||||
DeleteCommits,
|
||||
GetCommits,
|
||||
MoveCommitsToBranch,
|
||||
ValidateAndBatchDeleteCommits,
|
||||
ValidateAndBatchMoveCommits
|
||||
} from '@/modules/core/domain/commits/operations'
|
||||
import { GetStreams } from '@/modules/core/domain/streams/operations'
|
||||
import type { GetStreams } from '@/modules/core/domain/streams/operations'
|
||||
import {
|
||||
CommitInvalidAccessError,
|
||||
CommitBatchUpdateError
|
||||
} from '@/modules/core/errors/commit'
|
||||
import {
|
||||
import type {
|
||||
CommitsDeleteInput,
|
||||
CommitsMoveInput,
|
||||
DeleteVersionsInput,
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
} from '@/modules/core/graph/generated/graphql'
|
||||
import { Roles } from '@/modules/core/helpers/mainConstants'
|
||||
import { ensureError } from '@/modules/shared/helpers/errorHelper'
|
||||
import { EventBusEmit } from '@/modules/shared/services/eventBus'
|
||||
import type { EventBusEmit } from '@/modules/shared/services/eventBus'
|
||||
import { difference, groupBy, has, keyBy } from 'lodash-es'
|
||||
|
||||
type OldBatchInput = CommitsMoveInput | CommitsDeleteInput
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
import type {
|
||||
GetBranchById,
|
||||
GetStreamBranchByName,
|
||||
MarkCommitBranchUpdated
|
||||
} from '@/modules/core/domain/branches/operations'
|
||||
import { VersionEvents } from '@/modules/core/domain/commits/events'
|
||||
import {
|
||||
import type {
|
||||
CreateCommitByBranchId,
|
||||
CreateCommitByBranchName,
|
||||
DeleteCommit,
|
||||
@@ -18,8 +18,8 @@ import {
|
||||
UpdateCommit,
|
||||
UpdateCommitAndNotify
|
||||
} from '@/modules/core/domain/commits/operations'
|
||||
import { GetObject } from '@/modules/core/domain/objects/operations'
|
||||
import {
|
||||
import type { GetObject } from '@/modules/core/domain/objects/operations'
|
||||
import type {
|
||||
GetCommitStream,
|
||||
GetStream,
|
||||
MarkCommitStreamUpdated
|
||||
@@ -31,14 +31,14 @@ import {
|
||||
CommitReceiveError,
|
||||
CommitUpdateError
|
||||
} from '@/modules/core/errors/commit'
|
||||
import {
|
||||
import type {
|
||||
CommitReceivedInput,
|
||||
CommitUpdateInput,
|
||||
MarkReceivedVersionInput,
|
||||
UpdateVersionInput
|
||||
} from '@/modules/core/graph/generated/graphql'
|
||||
import { BranchRecord, CommitRecord } from '@/modules/core/helpers/types'
|
||||
import { EventBusEmit } from '@/modules/shared/services/eventBus'
|
||||
import type { BranchRecord, CommitRecord } from '@/modules/core/helpers/types'
|
||||
import type { EventBusEmit } from '@/modules/shared/services/eventBus'
|
||||
import { ensureError, Roles } from '@speckle/shared'
|
||||
import { has } from 'lodash-es'
|
||||
import { BranchNotFoundError } from '@/modules/core/errors/branch'
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Nullable, Optional } from '@speckle/shared'
|
||||
import {
|
||||
import type { Nullable, Optional } from '@speckle/shared'
|
||||
import type {
|
||||
ModelVersionsFilter,
|
||||
StreamCommitsArgs
|
||||
} from '@/modules/core/graph/generated/graphql'
|
||||
import { BadRequestError } from '@/modules/shared/errors'
|
||||
import {
|
||||
import type {
|
||||
GetBranchCommitsTotalCount,
|
||||
GetBranchCommitsTotalCountByName,
|
||||
GetPaginatedBranchCommits,
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
LegacyGetPaginatedStreamCommitsPage,
|
||||
PaginatedBranchCommitsParams
|
||||
} from '@/modules/core/domain/commits/operations'
|
||||
import { GetStreamBranchByName } from '@/modules/core/domain/branches/operations'
|
||||
import type { GetStreamBranchByName } from '@/modules/core/domain/branches/operations'
|
||||
import { BranchNotFoundError } from '@/modules/core/errors/branch'
|
||||
import { getAllRegisteredDbClients } from '@/modules/multiregion/utils/dbSelector'
|
||||
import { getTotalVersionCountFactory } from '@/modules/core/repositories/commits'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {
|
||||
import type {
|
||||
GetCommentsResources,
|
||||
GetViewerResourceGroups,
|
||||
GetViewerResourceItemsUngrouped,
|
||||
@@ -6,26 +6,27 @@ import {
|
||||
GetViewerResourcesForComments,
|
||||
GetViewerResourcesFromLegacyIdentifiers
|
||||
} from '@/modules/comments/domain/operations'
|
||||
import {
|
||||
import type {
|
||||
GetBranchLatestCommits,
|
||||
GetStreamBranchesByName
|
||||
} from '@/modules/core/domain/branches/operations'
|
||||
import {
|
||||
import type {
|
||||
GetAllBranchCommits,
|
||||
GetCommitsAndTheirBranchIds,
|
||||
GetSpecificBranchCommits
|
||||
} from '@/modules/core/domain/commits/operations'
|
||||
import { GetStreamObjects } from '@/modules/core/domain/objects/operations'
|
||||
import {
|
||||
import type { GetStreamObjects } from '@/modules/core/domain/objects/operations'
|
||||
import type {
|
||||
ResourceIdentifier,
|
||||
ResourceIdentifierInput,
|
||||
ResourceType,
|
||||
ViewerResourceGroup,
|
||||
ViewerResourceItem,
|
||||
ViewerUpdateTrackingTarget
|
||||
} from '@/modules/core/graph/generated/graphql'
|
||||
import { CommitRecord } from '@/modules/core/helpers/types'
|
||||
import { Optional, SpeckleViewer } from '@speckle/shared'
|
||||
import { ResourceType } from '@/modules/core/graph/generated/graphql'
|
||||
import type { CommitRecord } from '@/modules/core/helpers/types'
|
||||
import type { Optional } from '@speckle/shared'
|
||||
import { SpeckleViewer } from '@speckle/shared'
|
||||
import { flatten, keyBy, reduce, uniq, uniqWith } from 'lodash-es'
|
||||
|
||||
function isResourceItemEqual(a: ViewerResourceItem, b: ViewerResourceItem) {
|
||||
|
||||
Reference in New Issue
Block a user