Skip to content

Commit

Permalink
fix(SLB-354): use plain tsc instead of tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Aug 13, 2024
1 parent 98ccbf1 commit f8f0a62
Show file tree
Hide file tree
Showing 4 changed files with 359 additions and 91 deletions.
7 changes: 3 additions & 4 deletions packages/npm/@amazeelabs/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"version": "1.1.1",
"description": "",
"type": "module",
"types": "./dist/client.d.ts",
"types": "./dist/src/client.d.ts",
"private": false,
"sideEffects": false,
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"react-server": "./dist/server.js",
"default": "./dist/client.js"
"react-server": "./dist/src/server.js",
"default": "./dist/src/client.js"
}
},
"scripts": {
Expand Down Expand Up @@ -55,7 +55,6 @@
"serve": "^14.2.1",
"start-server-and-test": "2.0.3",
"ts-expect": "^1.3.0",
"tsup": "^8.0.1",
"typescript": "5.4.5",
"vite": "^5.3.5",
"vitest": "1.5.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/npm/@amazeelabs/image/src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { imageDimensionsFromData } from 'image-dimensions';
import { cache, PropsWithChildren } from 'react';
import sharp from 'sharp';

import { ImageSettings as ClientImageSettings } from './client.js';
import {
calculateFocusExtraction,
defaultImageSettings,
Expand Down Expand Up @@ -138,7 +139,7 @@ export function ImageSettings({
...settings
}: PropsWithChildren<Partial<ImageSettingsType>>) {
setSettings({ ...defaultImageSettings, ...settings });
return <>{children}</>;
return <ClientImageSettings {...settings}>{children}</ClientImageSettings>;
}

export async function Image({
Expand Down
4 changes: 2 additions & 2 deletions packages/npm/@amazeelabs/image/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"resolveJsonModule": true,
"isolatedModules": true,
"declaration": true,
"declarationDir": "build",
"outDir": "build",
"declarationDir": "dist",
"outDir": "dist",
"types": ["react/experimental"],
"jsx": "react-jsx"
},
Expand Down
Loading

0 comments on commit f8f0a62

Please sign in to comment.