Skip to content

Commit 2d0f69c

Browse files
committed
update r17 scripts
1 parent cdad5a2 commit 2d0f69c

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"build": "turbo run build tsc",
1717
"build:apps": "turbo run build --filter='@lg-apps/*'",
1818
"build:cli": "turbo run build tsc --filter=@lg-tools/cli",
19+
"build:packages": "turbo run build tsc --filter=!'@lg-apps/*'",
1920
"dev:mcp-ui": "turbo run dev --filter=@lg-apps/mcp-ui-app",
2021
"build:docs": "turbo run docs",
2122
"build:tsc": "turbo run tsc",

pnpm-workspace.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ packages:
44
- 'charts/*'
55
- 'chat/*'
66
- 'mcp-ui/*'
7-
- 'mcp-ui/micro-uis/*'
87
- 'packages/*'
98
- 'tools/*'

scripts/react17/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:18.20.8
22

33
# Set environment variables
44
ENV DEBIAN_FRONTEND=noninteractive
5-
ENV PNPM_VERSION=9.15.0
5+
ENV PNPM_VERSION=10.18.3
66

77
# Install system dependencies
88
RUN apt-get update && apt-get install -y \

scripts/react17/init.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,13 @@ async function main() {
6565
function findTsConfigFiles(dir) {
6666
/** @type {Array<string>} */
6767
const results = [];
68-
const packageDirs = ['packages', 'charts', 'chat', 'tools'];
68+
69+
// Read the root package.json to get package directories dynamically
70+
const rootPackage = JSON.parse(
71+
fs.readFileSync(ROOT_PACKAGE_JSON_PATH, 'utf-8'),
72+
);
73+
// Get package directories from lg.scopes
74+
const packageDirs = Object.values(rootPackage.lg?.scopes ?? {});
6975

7076
for (const packageDir of packageDirs) {
7177
const packagePath = path.join(dir, packageDir);

scripts/react17/test-react17.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ docker run --name "${CONTAINER_NAME}" \
100100
/bin/bash -c '
101101
set -e
102102
npx node ./scripts/react17/init.mjs
103-
pnpm run init
103+
pnpm install
104+
pnpm run build:packages
104105
pnpm run test --react17 -- --testTimeout=120000
105106
pnpm build-storybook
106107
'

0 commit comments

Comments
 (0)