Skip to content

Commit

Permalink
Update package jsons
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalumickas committed Oct 23, 2024
1 parent 2a6ccc1 commit 8ae3cd8
Show file tree
Hide file tree
Showing 19 changed files with 267 additions and 158 deletions.
4 changes: 2 additions & 2 deletions docs/pages/adapters/drizzle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

Make sure you have installed and configured [Drizzle ORM](https://orm.drizzle.team) before using this adapter.

Install package
Install adapter package for PostgreSQL and `dataloader`

```sh npm2yarn
npm i @uplo/adapter-drizzle
npm i @uplo/adapter-drizzle-pg dataloader
```

Add Drizzle adapter to Uplo
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uplo/monorepo",
"version": "0.0.0",
"version": "0.1.0",
"main": "index.js",
"author": "Justas Palumickas",
"license": "MIT",
Expand All @@ -20,17 +20,17 @@
"version:patch": "lerna version patch --force-publish",
"version:minor": "lerna version minor --force-publish"
},
"dependencies": {
"@changesets/cli": "^2.27.9",
"prettier": "^3.3.3",
"tsup": "^8.3.0",
"typescript": "^5.6.3"
},
"engines": {
"node": ">=18"
},
"packageManager": "pnpm@8.15.4+sha256.cea6d0bdf2de3a0549582da3983c70c92ffc577ff4410cbf190817ddc35137c2",
"devDependencies": {
"lerna": "^8.1.8"
"@changesets/cli": "^2.27.9",
"lerna": "^8.1.8",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"tsup": "^8.3.0",
"typescript": "^5.6.3",
"vitest": "^2.1.3"
}
}
5 changes: 3 additions & 2 deletions packages/adapter-drizzle-pg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand All @@ -34,8 +36,7 @@
"devDependencies": {
"@uplo/server": "workspace:^",
"dataloader": "^2.2.2",
"drizzle-orm": "^0.35.3",
"prettier": "^3.3.3"
"drizzle-orm": "^0.35.3"
},
"engines": {
"node": ">=18"
Expand Down
7 changes: 4 additions & 3 deletions packages/adapter-prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand All @@ -26,17 +28,16 @@
},
"peerDependencies": {
"@prisma/client": ">=2.19.0",
"@uplo/node": "workspace:^",
"@uplo/server": "workspace:^",
"dataloader": ">=2.0.0"
},
"dependencies": {
"@uplo/types": "workspace:^"
},
"devDependencies": {
"@prisma/client": "^5.21.1",
"@uplo/node": "workspace:^",
"@uplo/server": "workspace:^",
"dataloader": "^2.2.2",
"prettier": "^3.3.3",
"prisma": "^5.21.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-prisma/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
ID,
AttachmentData,
} from '@uplo/types';
import { BlobNotFoundError } from '@uplo/node';
import { BlobNotFoundError } from '@uplo/server';
import { initFindAttachmentsLoader } from './loaders/findAttachments';

class PrismaAdapter implements Adapter {
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-prisma/src/loaders/findAttachments.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PrismaClient } from '@prisma/client';
import DataLoader from 'dataloader';
import { ID, AttachmentData } from '@uplo/types';
import type { ID, AttachmentData } from '@uplo/types';

type FindAttachmentsRecordData = {
recordId: ID;
Expand Down
3 changes: 2 additions & 1 deletion packages/analyzer-image-blurhash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand All @@ -28,7 +30,6 @@
},
"devDependencies": {
"@uplo/analyzer": "workspace:^",
"prettier": "^3.3.3",
"sharp": "^0.33.5"
},
"engines": {
Expand Down
3 changes: 2 additions & 1 deletion packages/analyzer-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand All @@ -28,7 +30,6 @@
},
"devDependencies": {
"@uplo/analyzer": "workspace:^",
"prettier": "^3.3.3",
"sharp": "^0.33.5"
},
"keywords": [
Expand Down
5 changes: 3 additions & 2 deletions packages/analyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand All @@ -25,8 +27,7 @@
},
"devDependencies": {
"@types/node": "^22.7.9",
"@uplo/node": "workspace:^",
"prettier": "^3.3.3"
"@uplo/node": "workspace:^"
},
"peerDependencies": {
"@uplo/node": "workspace:^"
Expand Down
5 changes: 3 additions & 2 deletions packages/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand All @@ -25,8 +27,7 @@
},
"devDependencies": {
"@uplo/node": "workspace:^",
"fastify": "^4.28.1",
"prettier": "^3.3.3"
"fastify": "^4.28.1"
},
"engines": {
"node": ">=18"
Expand Down
2 changes: 2 additions & 0 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand All @@ -30,7 +32,6 @@
"@types/mime": "^3.0.4",
"@types/react": "^18.3.12",
"@types/spark-md5": "^3.0.4",
"prettier": "^3.3.3",
"react": "^18.2.0"
},
"engines": {
Expand Down
4 changes: 1 addition & 3 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
},
"devDependencies": {
"@types/mime": "^3.0.4",
"@types/node": "^22.7.9",
"prettier": "^3.3.3",
"vitest": "^2.1.3"
"@types/node": "^22.7.9"
},
"engines": {
"node": ">=18"
Expand Down
5 changes: 2 additions & 3 deletions packages/service-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand All @@ -24,8 +26,5 @@
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"prettier": "^3.3.3"
}
}
5 changes: 3 additions & 2 deletions packages/service-gcs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand All @@ -26,8 +28,7 @@
"@uplo/utils": "workspace:^"
},
"devDependencies": {
"@types/node": "^22.7.9",
"prettier": "^3.3.3"
"@types/node": "^22.7.9"
},
"engines": {
"node": ">=18"
Expand Down
2 changes: 2 additions & 0 deletions packages/service-s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand All @@ -23,8 +25,7 @@
"@uplo/utils": "workspace:^"
},
"devDependencies": {
"@types/node": "^22.7.9",
"prettier": "^3.3.3"
"@types/node": "^22.7.9"
},
"engines": {
"node": ">=18"
Expand Down
7 changes: 3 additions & 4 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"worker": "./dist/browser.js",
"browser": "./dist/browser.js",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"sideEffects": false,
"publishConfig": {
"access": "public"
},
Expand All @@ -29,10 +31,7 @@
},
"devDependencies": {
"@tinyhttp/content-disposition": "~2.2.2",
"@types/node": "^22.7.9",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"vitest": "^2.1.3"
"@types/node": "^22.7.9"
},
"engines": {
"node": ">=18"
Expand Down
Loading

0 comments on commit 8ae3cd8

Please sign in to comment.