Skip to content

Commit e3a8c50

Browse files
committed
chore(ci): use new type assert keyword
1 parent 52e18ad commit e3a8c50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function createConfig(pkg, format) {
4242

4343
// An import assertion in a dynamic import
4444
const { default: info } = await import(normalizePath(path.resolve(__dirname, `../packages/${pkg}/package.json`)), {
45-
assert: {
45+
with: {
4646
type: 'json',
4747
},
4848
});

scripts/generate-dts.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'url';
55
import fs from 'fs-extra';
66
import { rollup } from 'rollup';
77
import dts from 'rollup-plugin-dts';
8-
import tsconfig from '../tsconfig.json' assert { type: 'json' };
8+
import tsconfig from '../tsconfig.json' with { type: 'json' };
99
import { pkgNameMap } from './config.mjs';
1010

1111
const __filename = fileURLToPath(import.meta.url);

0 commit comments

Comments
 (0)