Skip to content

Commit

Permalink
fix(repo): use relative paths in source
Browse files Browse the repository at this point in the history
fixes #114
  • Loading branch information
jwulf committed Apr 7, 2024
1 parent 980f64b commit 2b89dc3
Show file tree
Hide file tree
Showing 24 changed files with 54 additions and 235 deletions.
163 changes: 1 addition & 162 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 3 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "npm run clean && npm run compile && shx mkdir dist/proto && shx cp src/proto/zeebe.proto dist/proto/",
"clean": "rm -rf ./dist && rm -f ./tsconfig.tsbuildinfo",
"compile": "tspc --project tsconfig.json",
"compile": "tsc --project tsconfig.json",
"docs": "rm -rf ./docs && typedoc",
"test": "CAMUNDA_UNIT_TEST=true jest --detectOpenHandles --testPathIgnorePatterns integration --testPathIgnorePatterns local-integration --testPathIgnorePatterns disconnection --testPathIgnorePatterns multitenancy --testPathIgnorePatterns __tests__/config",
"test:integration": "jest --runInBand --testPathIgnorePatterns disconnection --testPathIgnorePatterns __tests__/config --testPathIgnorePatterns multitenancy --detectOpenHandles --verbose true -u",
Expand Down Expand Up @@ -54,19 +54,6 @@
}
]
},
"moduleNameMapper": {
"^lib$": "<rootDir>/src/lib",
"^oauth/(.*)$": "<rootDir>/src/oauth/$1",
"^operate/(.*)$": "<rootDir>/src/operate/$1",
"^operate$": "<rootDir>/src/operate",
"^utils$": "<rootDir>/src/utils",
"^oauth$": "<rootDir>/src/oauth",
"^tasklist$": "<rootDir>/src/tasklist",
"^optimize$": "<rootDir>/src/optimize",
"^modeler$": "<rootDir>/src/modeler",
"^admin$": "<rootDir>/src/admin",
"^zeebe$": "<rootDir>/src/zeebe"
},
"preset": "ts-jest",
"testEnvironment": "node",
"testPathIgnorePatterns": [
Expand Down Expand Up @@ -115,12 +102,10 @@
"shx": "^0.3.4",
"ts-jest": "^29.1.1",
"tsconfig-paths": "^4.2.0",
"ts-patch": "^3.1.2",
"typedoc": "^0.25.9",
"typedoc-plugin-include-example": "^1.2.0",
"typedoc-plugin-missing-exports": "^2.2.0",
"typescript": "^5.3.3",
"typescript-transform-paths": "^3.4.7"
"typescript": "^5.3.3"
},
"dependencies": {
"@grpc/grpc-js": "1.9.7",
Expand All @@ -142,4 +127,4 @@
"typed-duration": "^1.0.12",
"uuid": "^7.0.3"
}
}
}
4 changes: 2 additions & 2 deletions src/admin/lib/AdminApiClient.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import d from 'debug'
import got from 'got'

import {
CamundaEnvironmentConfigurator,
CamundaPlatform8Configuration,
Expand All @@ -8,8 +9,7 @@ import {
RequireConfiguration,
constructOAuthProvider,
createUserAgentString,
} from 'lib'

} from '../../lib'
import { IOAuthProvider } from '../../oauth'

import * as Dto from './AdminDto'
Expand Down
16 changes: 8 additions & 8 deletions src/c8/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { AdminApiClient } from 'admin'
import { AdminApiClient } from '../admin'
import {
CamundaEnvironmentConfigurator,
CamundaPlatform8Configuration,
DeepPartial,
} from 'lib'
import { ModelerApiClient } from 'modeler'
import { OAuthProvider } from 'oauth'
import { OperateApiClient } from 'operate'
import { OptimizeApiClient } from 'optimize'
import { TasklistApiClient } from 'tasklist'
import { ZeebeGrpcClient } from 'zeebe'
} from '../lib'
import { ModelerApiClient } from '../modeler'
import { OAuthProvider } from '../oauth'
import { OperateApiClient } from '../operate'
import { OptimizeApiClient } from '../optimize'
import { TasklistApiClient } from '../tasklist'
import { ZeebeGrpcClient } from '../zeebe'

/**
* A single point of configuration for all Camunda Platform 8 clients.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ClientConstructor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IOAuthProvider } from 'oauth'
import { IOAuthProvider } from '../oauth'

import { CamundaPlatform8Configuration, DeepPartial } from './Configuration'

Expand Down
2 changes: 1 addition & 1 deletion src/lib/ConstructOAuthProvider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NullAuthProvider, OAuthProvider } from 'oauth'
import { NullAuthProvider, OAuthProvider } from '../oauth'

import { CamundaPlatform8Configuration } from './Configuration'

Expand Down
2 changes: 1 addition & 1 deletion src/lib/RequireConfiguration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CamundaEnvironmentVariable } from 'lib'
import { CamundaEnvironmentVariable } from '../lib'

export function RequireConfiguration<T>(
config: T | undefined,
Expand Down
5 changes: 3 additions & 2 deletions src/modeler/lib/ModelerAPIClient.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import d from 'debug'
import got, { Response } from 'got'

import {
CamundaEnvironmentConfigurator,
CamundaPlatform8Configuration,
DeepPartial,
GetCertificateAuthority,
constructOAuthProvider,
createUserAgentString,
} from 'lib'
import { IOAuthProvider } from 'oauth'
} from '../../lib'
import { IOAuthProvider } from '../../oauth'

import * as Dto from './ModelerDto'

Expand Down
3 changes: 2 additions & 1 deletion src/oauth/lib/NullAuthProvider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import debug from 'debug'
import { IOAuthProvider } from 'oauth'

import { IOAuthProvider } from '..'

import { TokenGrantAudienceType } from './IOAuthProvider'

Expand Down
6 changes: 3 additions & 3 deletions src/oauth/lib/OAuthProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import https from 'https'
import * as os from 'os'

import { debug } from 'debug'
import fetch from 'node-fetch'

import {
CamundaEnvironmentConfigurator,
CamundaPlatform8Configuration,
DeepPartial,
GetCertificateAuthority,
RequireConfiguration,
createUserAgentString,
} from 'lib'
import fetch from 'node-fetch'

} from '../../lib'
import { IOAuthProvider, Token, TokenError } from '../index'

import { TokenGrantAudienceType } from './IOAuthProvider'
Expand Down
5 changes: 3 additions & 2 deletions src/operate/lib/OperateApiClient.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { debug as d } from 'debug'
import got from 'got'

import {
CamundaEnvironmentConfigurator,
CamundaPlatform8Configuration,
Expand All @@ -10,8 +11,8 @@ import {
createUserAgentString,
losslessParse,
losslessStringify,
} from 'lib'
import { IOAuthProvider } from 'oauth'
} from '../../lib'
import { IOAuthProvider } from '../../oauth'

import {
ChangeStatus,
Expand Down
3 changes: 2 additions & 1 deletion src/operate/lib/OperateDto.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ChildDto, Int64String, LosslessDto } from 'lib'
import { LosslessNumber } from 'lossless-json'

import { ChildDto, Int64String, LosslessDto } from '../../lib'

export class DecisionDefinition extends LosslessDto {
id!: string
@Int64String
Expand Down
2 changes: 1 addition & 1 deletion src/operate/lib/TestableOperateApiClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ClientConstructor } from 'lib'
import { ClientConstructor } from '../../lib'

import { OperateApiClient } from './OperateApiClient'
import { Query } from './OperateDto'
Expand Down
3 changes: 2 additions & 1 deletion src/operate/lib/parseSearchResults.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { losslessParse } from 'lib'
import { parse, stringify } from 'lossless-json'

import { losslessParse } from '../../lib'

import { SearchResults } from './OperateDto'

export function parseSearchResults<T>(
Expand Down
Loading

0 comments on commit 2b89dc3

Please sign in to comment.