Skip to content

Commit 1c8810a

Browse files
committed
replace assert with with
1 parent 3edf722 commit 1c8810a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

scripts/clean_font.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { rmSync } from 'fs'
22
import { rf } from './util.js'
3-
import fonts from '../fonts.json' assert { type: 'json' }
3+
import fonts from '../fonts.json' with { type: 'json' }
44

55
if (process.env.LIBRESERVICE_CDN) {
66
for (const { files } of fonts) {

scripts/clean_ime.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { rmSync, readdirSync } from 'fs'
22
import { exit } from 'process'
33
import { rf } from './util.js'
4-
import targetFiles from '../target-files.json' assert { type: 'json' }
4+
import targetFiles from '../target-files.json' with { type: 'json' }
55

66
const imeDir = 'public/ime'
77

scripts/download_font.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { writeFileSync } from 'fs'
2-
import fonts from '../fonts.json' assert { type: 'json' }
2+
import fonts from '../fonts.json' with { type: 'json' }
33
import { exit } from 'process'
44

55
fonts.forEach(async ({ files, version }) => {

scripts/install_schemas.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
GitHubDownloader
1010
} from '@libreservice/micro-plum'
1111
import { rf, utf8, ensure, md5sum } from './util.js'
12-
import packageJson from '../package.json' assert { type: 'json' }
13-
import schemas from '../schemas.json' assert { type: 'json' }
12+
import packageJson from '../package.json' with { type: 'json' }
13+
import schemas from '../schemas.json' with { type: 'json' }
1414

1515
const root = cwd()
1616
const { version } = packageJson

test/test-font.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
init,
44
callOnDownload
55
} from './util'
6-
import fonts from '../fonts.json' assert { type: 'json' }
6+
import fonts from '../fonts.json' with { type: 'json' }
77

88
async function expectFirstFont (page: Page, fontFamily: string) {
99
while (!await page.evaluate(() => document.fonts.keys().next().value));

0 commit comments

Comments
 (0)