Skip to content

Commit 9f27c75

Browse files
committed
- fix home-v2 build
1 parent 8b855b6 commit 9f27c75

File tree

12 files changed

+724
-1070
lines changed

12 files changed

+724
-1070
lines changed

.windsurfrules

Whitespace-only changes.

apps/home-v2

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"devDependencies": {
112112
"@types/node": "^22.0.0",
113113
"npm-run-all": "^4.1.5",
114+
"tsup": "^8.3.5",
114115
"turbo": "^2.3.0",
115116
"typescript": "5.5.4"
116117
},

packages/backend/common/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"@types/yargs-parser": "^21",
7575
"npm-run-all": "^4.1.5",
7676
"ts-patch": "^3.2.1",
77+
"tsup": "^8.3.5",
7778
"typescript": "^5.6.3"
7879
}
7980
}
File renamed without changes.

packages/backend/common/src/markdown/examples/content-compressed.md

Lines changed: 0 additions & 354 deletions
This file was deleted.

packages/backend/common/src/markdown/examples/content.md

Lines changed: 0 additions & 704 deletions
This file was deleted.

packages/backend/common/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
],
55
"compilerOptions": {
66
"composite": true,
7+
"incremental": true,
78
"rootDir": "src",
89
"outDir": "dist",
910
"tsBuildInfoFile": "dist/.tsbuildinfo",
@@ -19,9 +20,5 @@
1920
"include": [
2021
"./src/**/*",
2122
"./src/**/*.json"
22-
],
23-
"references": [
24-
{
25-
}
2623
]
2724
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { defineConfig } from "tsup"
2+
3+
const isDev = process.env["NODE_ENV"] === "development"
4+
5+
export default defineConfig({
6+
clean: isDev ? false : true,
7+
minify: !isDev,
8+
sourcemap: isDev,
9+
splitting: false,
10+
treeshake: !isDev,
11+
format: ["cjs", "esm"],
12+
13+
dts: {
14+
compilerOptions: {
15+
composite: false,
16+
experimentalDecorators: true,
17+
emitDecoratorMetadata: true,
18+
// --experimentalDecorators --emitDecoratorMetadata
19+
},
20+
},
21+
22+
entry: ["src/**/*"],
23+
})

packages/frontend/react/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"scripts": {
1111
"clean": "rimraf dist",
12-
"build": "copyfiles -u1 src/**/*.{css,svg} dist && tsc -b",
12+
"build": "yarn clean && ts-patch install -s && copyfiles -u1 src/**/*.{css,svg} dist && tsc -b",
1313
"prepublishOnly": "yarn build"
1414
},
1515
"files": [
@@ -96,10 +96,11 @@
9696
"prisma": "*",
9797
"react-responsive-masonry": "^2.3.0",
9898
"react-scroll-to-bottom": "^4.2.0",
99+
"rimraf": "^6.0.1",
99100
"tailwindcss": "^3.4.7",
100-
"ts-patch": "^3.2.1",
101+
"ts-patch": "^3.3.0",
101102
"typescript": "*",
102-
"typescript-transform-paths": "^3.5.2",
103+
"typescript-transform-paths": "^3.5.5",
103104
"vite": "^5.4.2"
104105
}
105106
}

0 commit comments

Comments
 (0)