Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,26 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

# Special handling for Node.js 18: use Node.js 20 for tsgo dependency installation
- name: Setup Node.js 20 for dependency installation (Node 18 only)
if: steps.changes.outputs.changed == 'true' && matrix.node-version == 18
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version: 20
cache: 'pnpm'

- name: Install Dependencies
if: steps.changes.outputs.changed == 'true'
run: pnpm install

# Switch back to Node.js 18 after dependency installation
- name: Switch back to Node.js ${{ matrix.node-version }} (Node 18 only)
if: steps.changes.outputs.changed == 'true' && matrix.node-version == 18
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Type Check
if: steps.changes.outputs.changed == 'true'
run: pnpm run type-check
Expand Down Expand Up @@ -117,10 +133,26 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

# Special handling for Node.js 18: use Node.js 20 for tsgo dependency installation
- name: Setup Node.js 20 for dependency installation (Node 18 only)
if: steps.changes.outputs.changed == 'true' && matrix.node-version == 18
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version: 20
cache: 'pnpm'

- name: Install Dependencies
if: steps.changes.outputs.changed == 'true'
run: pnpm install && cd ./tests && pnpm playwright install chromium

# Switch back to Node.js 18 after dependency installation
- name: Switch back to Node.js ${{ matrix.node-version }} (Node 18 only)
if: steps.changes.outputs.changed == 'true' && matrix.node-version == 18
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Integration Test (Rstest)
if: steps.changes.outputs.changed == 'true'
run: pnpm run test:integration
Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"biomejs.biome",
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker",
"unifiedjs.vscode-mdx"
"unifiedjs.vscode-mdx",
"TypeScriptTeam.native-preview"
]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@
"fileMatch": ["**/_nav.json"],
"url": "./website/node_modules/rspress/nav-json-schema.json"
}
]
],
"typescript.experimental.useTsgo": true
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"picocolors": "1.1.1",
"prebundle": "1.4.2",
"rsbuild-plugin-publint": "^0.3.3",
"rslib": "npm:@rslib/core@0.12.4",
"rslib": "npm:@rslib/core@0.13.0",
"rslog": "^1.2.11",
"tsconfck": "3.1.6",
"typescript": "^5.9.2"
Expand Down
1 change: 1 addition & 0 deletions packages/core/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default defineConfig({
syntax: ['node 18.12.0'],
dts: {
bundle: false,
tsgo: !process.env.CI,
distPath: './dist-types',
},
},
Expand Down
1 change: 0 additions & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "@rslib/tsconfig/base",
"compilerOptions": {
"outDir": "./dist",
"baseUrl": "./",
"rootDir": "src",
"declaration": true,
"declarationDir": "./dist-types",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rslib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/node": "^22.18.1",
"fs-extra": "^11.3.1",
"rsbuild-plugin-publint": "^0.3.3",
"rslib": "npm:@rslib/core@0.12.4",
"rslib": "npm:@rslib/core@0.13.0",
"tsx": "^4.20.5",
"typescript": "^5.9.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-dts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@rslib/tsconfig": "workspace:*",
"@typescript/native-preview": "7.0.0-dev.20250907.1",
"rsbuild-plugin-publint": "^0.3.3",
"rslib": "npm:@rslib/core@0.12.4",
"rslib": "npm:@rslib/core@0.13.0",
"typescript": "^5.9.2"
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-dts/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default defineConfig({
syntax: ['node 18.12.0'],
dts: {
bundle: false,
tsgo: !process.env.CI,
},
},
],
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-dts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "@rslib/tsconfig/base",
"compilerOptions": {
"outDir": "./dist",
"baseUrl": "./",
"rootDir": "src",
"declaration": true,
"isolatedDeclarations": true,
Expand Down
32 changes: 19 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading