fix: migrate to standard import attributes (#8803)

This commit is contained in:
Brooooooklyn 2024-11-13 08:52:05 +00:00
parent c32b29a293
commit c0f6a60a66
No known key found for this signature in database
GPG Key ID: 30B1140CE1C07C99
4 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import { resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import pkg from '../../../package.json' assert { type: 'json' };
import pkg from '../../../package.json' with { type: 'json' };
import {
AFFINE_ENV,
AFFiNEConfig,

View File

@ -2,7 +2,7 @@ const semver = await import('semver').catch(
() => import('../packages/backend/server/node_modules/semver/index.js')
);
import packageJson from '../package.json' assert { type: 'json' };
import packageJson from '../package.json' with { type: 'json' };
const { engines } = packageJson;

View File

@ -13,7 +13,7 @@ import {
import chalk from 'chalk';
import { ProxyAgent, setGlobalDispatcher } from 'undici';
import corePackage from '../../packages/frontend/core/package.json' assert { type: 'json' };
import corePackage from '../../packages/frontend/core/package.json' with { type: 'json' };
const clipboard = new Clipboard();

View File

@ -1,6 +1,6 @@
import type { BUILD_CONFIG_TYPE } from '@affine/env/global';
import packageJson from '../../package.json' assert { type: 'json' };
import packageJson from '../../package.json' with { type: 'json' };
import type { BuildFlags } from '../config';
export function getBuildConfig(buildFlags: BuildFlags): BUILD_CONFIG_TYPE {