Skip to content

Commit

Permalink
Formatted files, updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtiomTr committed Aug 25, 2024
1 parent 38dd2e7 commit e2495b4
Show file tree
Hide file tree
Showing 8 changed files with 2,174 additions and 875 deletions.
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "rchat",
"version": "0.0.0",
"private": true,
"packageManager": "[email protected]",
"scripts": {
"build": "turbo run build",
"bump": "changeset version && pnpm i --lockfile-only",
Expand All @@ -12,20 +11,19 @@
"release": "pnpm build && changeset tag && pnpm publish -r"
},
"devDependencies": {
"@changesets/cli": "^2.26.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.0",
"@types/jest": "^29.2.0",
"clean-publish": "^4.0.1",
"danger": "^11.2.4",
"@changesets/cli": "^2.27.7",
"@types/jest": "^29.5.12",
"clean-publish": "^5.0.0",
"danger": "^12.3.3",
"prettier": "^3.3.3",
"syncpack": "^8.2.4",
"syncpack": "^12.4.0",
"turbo": "^2.0.14",
"typescript": "^5.0.4"
"typescript": "^5.5.4"
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
},
"packageManager": "[email protected]"
}
4 changes: 2 additions & 2 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"scripts": {
"build": "aqu build && rimraf ./prepared-package && clean-publish",
"lint": "eslint **/*.{ts,tsx}",
"postpublish": "rimraf ./prepared-package",
"prepublishOnly": "pnpm build",
"lint": "eslint **/*.{ts,tsx}"
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@rchat/shared": "workspace:*"
Expand Down
5 changes: 4 additions & 1 deletion packages/client/src/ChatClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export class ChatClient<TMessage> extends CustomEventTarget<ChatClientEventMap<T

public constructor(url: string, api: ChatAPI<TMessage>);
public constructor(socket: ChatClientSocket<TMessage>, api: ChatAPI<TMessage>);
public constructor(urlOrSocket: string | ChatClientSocket<TMessage>, private readonly api: ChatAPI<TMessage>) {
public constructor(
urlOrSocket: string | ChatClientSocket<TMessage>,
private readonly api: ChatAPI<TMessage>,
) {
super();
if (typeof urlOrSocket === 'string') {
this.socket = io(urlOrSocket);
Expand Down
8 changes: 4 additions & 4 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
"directory": "prepared-package"
},
"scripts": {
"build": "tsc && rimraf ./prepared-package && clean-publish",
"build-storybook": "build-storybook",
"lint": "eslint **/*.{ts,tsx}",
"lint:fix": "eslint . --fix",
"postpublish": "rimraf ./prepared-package",
"prepublishOnly": "pnpm build",
"release": "np",
"size": "size-limit",
"size:why": "size-limit --why",
"storybook": "start-storybook -p 6006",
"test": "jest",
"test:coverage": "pnpm run test --silent --ci --coverage --coverageReporters=\"text\" --coverageReporters=\"text-summary\"",
"test:watch": "pnpm run test --passWithNoTests --watch",
"build": "tsc && rimraf ./prepared-package && clean-publish",
"postpublish": "rimraf ./prepared-package",
"prepublishOnly": "pnpm build"
"test:watch": "pnpm run test --passWithNoTests --watch"
},
"dependencies": {
"@sirse-dev/safe-context": "^0.3.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"directory": "prepared-package"
},
"scripts": {
"test": "jest",
"test:coverage": "pnpm run test --coverage",
"test:watch": "pnpm run test --watch",
"build": "aqu build && rimraf ./prepared-package && clean-publish",
"lint": "eslint **/*.{ts,tsx}",
"postpublish": "rimraf ./prepared-package",
"prepublishOnly": "pnpm build",
"lint": "eslint **/*.{ts,tsx}"
"test": "jest",
"test:coverage": "pnpm run test --coverage",
"test:watch": "pnpm run test --watch"
},
"dependencies": {
"@isaacs/ttlcache": "^1.2.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
},
"scripts": {
"build": "aqu build && rimraf ./prepared-package && clean-publish",
"lint": "eslint **/*.{ts,tsx}",
"postpublish": "rimraf ./prepared-package",
"prepublishOnly": "pnpm build",
"lint": "eslint **/*.{ts,tsx}"
"prepublishOnly": "pnpm build"
},
"devDependencies": {
"@babel/core": "^7.18.2",
Expand Down
8 changes: 4 additions & 4 deletions packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"directory": "prepared-package"
},
"scripts": {
"build": "aqu build && rimraf ./prepared-package && clean-publish",
"build-storybook": "build-storybook",
"lint": "eslint **/*.{ts,tsx}",
"lint:fix": "eslint . --fix",
"postpublish": "rimraf ./prepared-package",
"prepublishOnly": "pnpm build",
"release": "np",
"start": "nodemon ./dist/index.js",
"storybook": "start-storybook -p 6006",
"test": "aqu test --passWithNoTests",
"test:watch": "aqu test --passWithNoTests --watch",
"build": "aqu build && rimraf ./prepared-package && clean-publish",
"postpublish": "rimraf ./prepared-package",
"prepublishOnly": "pnpm build"
"test:watch": "aqu test --passWithNoTests --watch"
},
"dependencies": {
"aqu": "^0.4.3",
Expand Down
Loading

0 comments on commit e2495b4

Please sign in to comment.