mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-24 03:26:31 +03:00
fix: migrate to standard import attributes (#8803)
This commit is contained in:
parent
c32b29a293
commit
c0f6a60a66
@ -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,
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user