Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(tools): import() requires file:// on windows (#9373)

forehalo67be1fb47fdc
diff --git a/.prettierignore b/.prettierignore
index d883ecd156..57fc1bbe92 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -5,6 +5,7 @@
.vscode
.yarnrc.yml
.docker
+**/.storybook
# compiled output
.coverage
@@ -33,5 +34,3 @@ packages/frontend/graphql/src/graphql/index.ts
packages/frontend/graphql/src/schema.ts
packages/frontend/apps/android/App/app/build/**
blocksuite/tests-legacy/snapshots
-**/.storybook
-**/.coverage
diff --git a/oxlint.json b/oxlint.json
index 03a44c32b4..2581df0e7a 100644
--- a/oxlint.json
+++ b/oxlint.json
@@ -12,6 +12,7 @@
".vscode",
".yarnrc.yml",
".docker",
+ "**/.storybook",
".coverage",
".nx/**",
"target",
@@ -33,8 +34,7 @@
"packages/frontend/graphql/src/graphql/index.ts",
"packages/frontend/graphql/src/schema.ts",
"packages/frontend/apps/android/App/app/build/**",
- "blocksuite/tests-legacy/snapshots",
- "**/.storybook"
+ "blocksuite/tests-legacy/snapshots"
],
"rules": {
"import/named": "allow",
diff --git a/tools/cli/src/bundle.ts b/tools/cli/src/bundle.ts
index e0a0f349e4..b41cf8b52f 100644
--- a/tools/cli/src/bundle.ts
+++ b/tools/cli/src/bundle.ts
@@ -58,7 +58,7 @@ export class BundleCommand extends PackageCommand {
.join('webpack.config.ts');
if (overrideConfigPath.isFile()) {
- const override = await import(overrideConfigPath.value);
+ const override = await import(overrideConfigPath.toFileUrl().toString());
configOverride = override.config ?? override.default;
}