Skip to content

Commit 0dfd704

Browse files
fix: optimize repository dependencies/packages (#585)
* fix: @codeimage/prisma-models build script * feat: update ts version * chore: update solidjs and fix types * chore: update solid-use
1 parent d68f3d0 commit 0dfd704

File tree

32 files changed

+698
-460
lines changed

32 files changed

+698
-460
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ To start contributing to the project, you have to fork this repository and clone
2626
```bash
2727
git clone https://github.com/YOUR_USERNAME/codeimage.git
2828
```
29-
### pulling submodules first time
30-
```bash
31-
git submodule update --init --recursive
32-
```
29+
3330
### Installing Node.js and pnpm
3431

3532
This repository uses [pnpm](https://pnpm.io/it/) to manage multiple projects. You need to install **pnpm 7 or higher**

apps/api/tsconfig.dts.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"emitDeclarationOnly": true,
66
"declarationMap": false,
77
"outDir": "./dist",
8-
"moduleResolution": "Node16",
9-
"module": "ES2022",
8+
"moduleResolution": "NodeNext",
9+
"module": "NodeNext",
1010
"target": "ES2022"
1111
}
12-
}
12+
}

apps/api/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"allowSyntheticDefaultImports": true,
77
"sourceMap": true,
88
"moduleResolution": "NodeNext",
9-
"module": "ES2022",
9+
"module": "NodeNext",
1010
"target": "ES2022",
1111
"typeRoots": [
1212
"./src/common/domainFunctions/functions.d.ts"
@@ -15,4 +15,4 @@
1515
"include": [
1616
"./src/**/*.ts"
1717
]
18-
}
18+
}

apps/codeimage/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"prettier": "^2.8.4",
2626
"rimraf": "^3.0.2",
2727
"sass": "^1.58.3",
28-
"typescript": "^4.9.5",
28+
"typescript": "~5.3.2",
2929
"vite": "^3.2.5",
3030
"vite-plugin-pwa": "^0.14.7",
3131
"vite-plugin-solid": "^2.7.0",
@@ -104,8 +104,8 @@
104104
"rxjs": "^7.8.0",
105105
"solid-codemirror": "^2.3.0",
106106
"solid-headless": "^0.13.0",
107-
"solid-js": "^1.7.3",
108-
"solid-use": "^0.5.0",
107+
"solid-js": "^1.8.6",
108+
"solid-use": "^0.7.2",
109109
"statebuilder": "^0.4.2",
110110
"tinykeys": "^1.4.0",
111111
"workbox-precaching": "^6.5.4",

apps/codeimage/src/components/Terminal/DynamicTerminal/DynamicTerminal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {AVAILABLE_TERMINAL_THEMES} from '@core/configuration/terminal-themes';
33

44
import {children, createMemo, JSXElement, ParentComponent} from 'solid-js';
55
import {Dynamic} from 'solid-js/web';
6-
import {omitProps} from 'solid-use';
6+
import {omitProps} from 'solid-use/props';
77
import {CodeImageLogoV2} from '../../Icons/CodeImageLogoV2';
88
import * as styles from '../terminal.css';
99
import {BaseTerminalProps} from '../TerminalHost';

apps/codeimage/src/core/hooks/isMobile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
type AppMode = 'full' | 'mobile';
2-
import {useMediaQuery} from 'solid-use';
2+
import {useMediaQuery} from 'solid-use/media-query';
33

44
export function useModality(): AppMode {
55
const phone = useMediaQuery(`screen and (max-width: 768px)`);

apps/website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"node-html-parser": "^6.1.5",
1414
"rollup": "^2.79.1",
1515
"solid-start-node": "^0.2.26",
16-
"typescript": "^4.8.4",
16+
"typescript": "~5.3.2",
1717
"vite": "^3.1.8"
1818
},
1919
"sideEffects": true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"prettier": "^2.8.4",
8686
"tslib": "^2.5.0",
8787
"tsx": "^3.12.3",
88-
"typescript": "^4.9.5",
88+
"typescript": "~5.3.2",
8989
"vite": "^3.2.5",
9090
"@railway/cli": "^3.3.1"
9191
},

packages/atomic-state/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
},
3535
"peerDependencies": {
3636
"rxjs": "^7.8.0",
37-
"solid-js": "^1.6.8"
37+
"solid-js": "^1.8.6"
3838
},
3939
"devDependencies": {
4040
"@types/node": "^18.14.6",
4141
"rollup": "^2.79.1",
4242
"rollup-preset-solid": "^1.4.0",
4343
"rxjs": "^7.8.0",
44-
"solid-js": "1.6.3",
44+
"solid-js": "^1.8.6",
4545
"vite": "^3.2.5",
4646
"vite-plugin-dts": "^1.7.3",
4747
"vite-plugin-solid": "^2.6.1",

packages/atomic-state/src/createStore.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import {from as rxjsFrom, map, type Observable, Subject} from 'rxjs';
22
import {Accessor, createSignal, from, observable} from 'solid-js';
3-
import {
4-
createStore as coreCreateStore,
5-
SetStoreFunction,
6-
unwrap,
7-
} from 'solid-js/store';
3+
import {createStore as coreCreateStore, unwrap} from 'solid-js/store';
4+
import {SetStoreFunction} from './experimental/store-types';
85

96
export type StoreEvent = {
107
type: string;
@@ -41,7 +38,7 @@ export function createStore<T extends object>(initialState: T) {
4138
);
4239
const [signal, setSignal] = createSignal<symbol>();
4340

44-
const setStore = (...args: Parameters<typeof internalSetStore>) => {
41+
const setStore = (...args: Parameters<SetStoreFunction<T>>) => {
4542
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4643
const returnValue = (internalSetStore as any)(...args);
4744
setSignal(Symbol());

0 commit comments

Comments
 (0)