Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"fast-glob": "^3.3.3",
"fs-extra": "^11.3.6",
"rslog": "^2.1.3",
"typescript": "^6.0.3"
"typescript": "^7.0.2"
Comment thread
chenjiahan marked this conversation as resolved.
},
"packageManager": "pnpm@11.9.0",
"publishConfig": {
Expand Down
231 changes: 216 additions & 15 deletions pnpm-lock.yaml

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

4 changes: 4 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
allowBuilds:
core-js: false

minimumReleaseAgeExclude:
- typescript
- '@typescript/*'
4 changes: 2 additions & 2 deletions src/prebundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
pkgNameToAtTypes,
} from './helper.js';
import type { ParsedTask } from './types.js';
import { dts } from 'rollup-plugin-dts';
import { rollup, type InputOptions, type OutputOptions } from 'rollup';
import { minify } from 'terser';
import { format } from 'prettier';
Expand Down Expand Up @@ -133,6 +132,7 @@ async function emitDts(task: ParsedTask, externals: Record<string, string>) {
}

try {
const { dts } = await import('rollup-plugin-dts');
const inputConfig: InputOptions = {
input,
external: [
Expand Down Expand Up @@ -162,7 +162,6 @@ async function emitDts(task: ParsedTask, externals: Record<string, string>) {
// Avoid extra work
checkJs: false,
// Ensure we can parse the latest code
// @ts-expect-error rollup-plugin-dts accepts task target values.
target: task.target,
},
}),
Expand All @@ -181,6 +180,7 @@ async function emitDts(task: ParsedTask, externals: Record<string, string>) {
} catch (error) {
logger.error(`rollup-plugin-dts failed: ${task.depName}`);
logger.error(error);
outputDefaultDts();
}
}

Expand Down
Loading