1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Rename *.d.ts to *.d.mts. Close #17241

Add a type test for legacy.

- https://www.typescriptlang.org/docs/handbook/modules/reference.html#file-extension-substitution
This commit is contained in:
Takashi Tamura 2023-11-10 17:27:04 +09:00
parent 1b88aad0db
commit 61ed77cfb4
10 changed files with 41 additions and 12 deletions

View file

@ -1846,11 +1846,11 @@ gulp.task(
return merge([
packageJson().pipe(gulp.dest(TYPESTEST_DIR)),
gulp
.src([
GENERIC_DIR + "build/pdf.mjs",
GENERIC_DIR + "build/pdf.worker.mjs",
])
.pipe(gulp.dest(TYPESTEST_DIR + "build/")),
.src("external/dist/**/*", {
base: "external/dist",
removeBOM: false,
})
.pipe(gulp.dest(TYPESTEST_DIR)),
gulp
.src(TYPES_DIR + "**/*", { base: TYPES_DIR })
.pipe(gulp.dest(TYPESTEST_DIR + "types/")),