Skip to content

Commit

Permalink
fix: migrate to standard import attributes (#8803)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Nov 13, 2024
1 parent c32b29a commit c0f6a60
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/backend/server/src/fundamentals/config/default.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion tools/bump-blocksuite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion tools/cli/src/webpack/runtime-config.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit c0f6a60

Please sign in to comment.