Skip to content

Commit 858bef6

Browse files
committed
chore: fix setup
1 parent 7987d38 commit 858bef6

File tree

5 files changed

+43
-41
lines changed

5 files changed

+43
-41
lines changed

pnpm-lock.yaml

Lines changed: 9 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/example/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@
1212
"author": "Philipp Busse",
1313
"license": "MIT",
1414
"dependencies": {
15+
"@edged/http-adapter": "workspace:^1.0.0",
16+
"@edged/s3-adapter": "workspace:^1.0.0",
1517
"express": "^4.17.1",
16-
"express-sharp": "^4.2.39",
18+
"express-sharp": "workspace:*",
1719
"keyv": "^4.0.3",
1820
"pkg": "^5.3.2",
1921
"pug": "^3.0.2",
2022
"tslib": "^2.3.1"
23+
},
24+
"devDependencies": {
25+
"@edged/tsconfig": "workspace:^1.0.0"
2126
}
2227
}

services/example/src/main.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* eslint-disable toplevel/no-toplevel-side-effect */
2+
import { HttpAdapter } from '@edged/http-adapter'
3+
import { S3Adapter } from '@edged/s3-adapter'
24
import express from 'express'
3-
import { expressSharp, FsAdapter, HttpAdapter, S3Adapter } from 'express-sharp'
5+
import { expressSharp, FsAdapter } from 'express-sharp'
46
import Keyv from 'keyv'
57
import { AddressInfo } from 'net'
68
import { join } from 'path'
@@ -22,7 +24,7 @@ app.use(
2224
expressSharp({
2325
cache,
2426
imageAdapter: new HttpAdapter({
25-
prefixUrl: 'http://localhost:3000/',
27+
baseURL: 'http://localhost:3000/',
2628
}),
2729
}),
2830
)
@@ -44,7 +46,7 @@ app.use(
4446
'/lorempixel',
4547
expressSharp({
4648
cache,
47-
imageAdapter: new HttpAdapter({ prefixUrl: 'http://lorempixel.com' }),
49+
imageAdapter: new HttpAdapter({ baseURL: 'http://lorempixel.com' }),
4850
}),
4951
)
5052
app.use(
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
22
"extends": "./tsconfig.json",
3-
"exclude": [
4-
"node_modules",
5-
"**/*.test.ts",
6-
"**/vendors/**",
7-
"**/__mocks__/**",
8-
"**/test/**",
9-
"**/__tests__/**",
10-
"example/**"
3+
"exclude": ["node_modules", "dist"],
4+
"references": [
5+
{
6+
"path": "../../libs/adapters/http-adapter"
7+
},
8+
{
9+
"path": "../../libs/adapters/s3-adapter"
10+
},
11+
{
12+
"path": "../../libs/express-sharp"
13+
}
1114
]
1215
}

services/example/tsconfig.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,16 @@
55
"rootDir": "src"
66
},
77
"include": ["src/**/*", "__tests__/**/*", "example/**/*", "__mocks__/**/*"],
8-
"references": []
8+
"references": [
9+
{
10+
"path": "../../libs/adapters/http-adapter"
11+
},
12+
{
13+
"path": "../../libs/adapters/s3-adapter"
14+
},
15+
{
16+
"path": "../../libs/express-sharp"
17+
}
18+
],
19+
"exclude": ["node_modules", "dist"]
920
}

0 commit comments

Comments
 (0)