Skip to content

Commit aa0d856

Browse files
Georgi2704Ruben van Leeuwen
authored andcommitted
Dev server speed improved, attempt to fully fix hot reloading
1 parent dfd44e9 commit aa0d856

File tree

7 files changed

+82
-130
lines changed

7 files changed

+82
-130
lines changed

.changeset/new-hoops-sell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@orchestrator-ui/orchestrator-ui-components': patch
3+
---
4+
5+
Hot reloading attempt fix

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@turbo/gen": "^2.5.2",
2222
"husky": "^9.0.11",
2323
"prettier": "^2.8.8",
24-
"turbo": "^2.2.3"
24+
"turbo": "^2.6.1"
2525
},
2626
"name": "orchestrator-core-ui",
2727
"workspaces": [

packages/orchestrator-ui-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"build": "npm run generate-version && tsup src/index.ts",
3232
"tsc": "tsc --noEmit",
3333
"lint": "eslint",
34-
"dev": "npm run build -- --watch"
34+
"dev": "tsup --watch"
3535
},
3636
"dependencies": {
3737
"@ag-ui/client": "0.0.39",
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
import { useState } from 'react';
2-
31
import { OrchestratorConfig } from '@/types';
42

53
export const useOrchestratorConfig = (
64
initialOrchestratorConfig: OrchestratorConfig,
75
) => {
8-
const [orchestratorConfig] = useState(initialOrchestratorConfig);
9-
10-
return {
11-
orchestratorConfig,
12-
};
6+
return { orchestratorConfig: initialOrchestratorConfig };
137
};

packages/orchestrator-ui-components/tsconfig.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
"extends": "@orchestrator-ui/tsconfig/base.json",
33
"compilerOptions": {
44
"strictNullChecks": true,
5-
"rootDir": "./src",
6-
"outDir": "./dist",
75
"baseUrl": ".",
86
"paths": {
97
"@/*": ["./src/*"]
10-
}
8+
},
9+
"noEmit": true
1110
},
12-
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
11+
"include": ["src", "./src/**/*.ts", "./src/**/*.tsx"],
1312
"exclude": [
1413
"node_modules",
1514
"**/*.stories.ts",
Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import { defineConfig } from 'tsup';
22

3-
export default defineConfig({
4-
target: 'es2020',
5-
format: ['esm'],
6-
splitting: false,
3+
export default defineConfig((opts) => ({
4+
entry: ['src/index.ts'],
75
sourcemap: true,
8-
dts: true,
9-
tsconfig: 'tsconfig.build.json',
10-
});
6+
splitting: false,
7+
clean: !opts.watch,
8+
dts: !opts.watch,
9+
outDir: 'dist',
10+
format: ['esm'],
11+
platform: 'node',
12+
target: 'es2022',
13+
skipNodeModulesBundle: true,
14+
}));

0 commit comments

Comments
 (0)